Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70b27268 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Fix support for 2 serial ports over char_bridge"

parents c30ccdcc 3e065b68
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1196,6 +1196,7 @@ int gserial_init_port(int port_num, const char *name,
		no_smd_ports++;
		break;
	case USB_GADGET_XPORT_CHAR_BRIDGE:
		gserial_ports[port_num].client_port_num = no_char_bridge_ports;
		no_char_bridge_ports++;
		break;
	case USB_GADGET_XPORT_HSIC:
+1 −1
Original line number Diff line number Diff line
@@ -888,7 +888,7 @@ static void gbridge_debugfs_init(void) {}
int gbridge_setup(void *gptr, u8 no_ports)
{
	pr_debug("gptr:%pK, no_bridge_ports:%d\n", gptr, no_ports);
	if (no_ports >= num_of_instance) {
	if (no_ports > num_of_instance) {
		pr_err("More ports are requested\n");
		return -EINVAL;
	}