usb: gadget: Add support for multiple RmNET

Extend number of supported rmnet function instances from 1 to 3.
This is done in order to fulfill the requirement for simultaneous
connection and work of several rmnet interfaces on 9615.
Other targets are not affected.

Change-Id: Ib830da2d6b21e57b107de4c90e3018e8d45be160
Signed-off-by: Anna Perel <aperel@codeaurora.org>
diff --git a/drivers/usb/gadget/f_rmnet.c b/drivers/usb/gadget/f_rmnet.c
index 86f8a25..d846c4e 100644
--- a/drivers/usb/gadget/f_rmnet.c
+++ b/drivers/usb/gadget/f_rmnet.c
@@ -61,7 +61,7 @@
 	unsigned long			cpkts_len;
 };
 
-#define NR_RMNET_PORTS	1
+#define NR_RMNET_PORTS	3
 static unsigned int nr_rmnet_ports;
 static unsigned int no_ctrl_smd_ports;
 static unsigned int no_ctrl_hsic_ports;
@@ -334,10 +334,8 @@
 	switch (dxport) {
 	case USB_GADGET_XPORT_BAM:
 	case USB_GADGET_XPORT_BAM2BAM:
-		/* currently only one connection (idx 0)
-		   is supported */
 		ret = gbam_connect(&dev->port, port_num,
-						   dxport, 0);
+						   dxport, port_num);
 		if (ret) {
 			pr_err("%s: gbam_connect failed: err:%d\n",
 					__func__, ret);