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

Commit 10f09580 authored by Sergiy Kibrik's avatar Sergiy Kibrik Committed by Felipe Balbi
Browse files

usb: s3c2410_udc: correct reversed pullup logic



For some reason the code has always been disabling pullup
when asked to do the opposite. According to surrounding code
and gadget API this seems to be a mistake. This fix allows
UDC to be detected by host controller on recent kernels.

Signed-off-by: default avatarSergiy Kibrik <sakib@meta.ua>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 459e210c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1487,7 +1487,7 @@ static int s3c2410_udc_pullup(struct usb_gadget *gadget, int is_on)

	dprintk(DEBUG_NORMAL, "%s()\n", __func__);

	s3c2410_udc_set_pullup(udc, is_on ? 0 : 1);
	s3c2410_udc_set_pullup(udc, is_on);
	return 0;
}