All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: gadget: net2280: restore ep_cfg after defect7374 workaround
@ 2015-10-19 14:25 Mian Yousaf Kaukab
  2015-10-19 14:26 ` Felipe Balbi
  0 siblings, 1 reply; 2+ messages in thread
From: Mian Yousaf Kaukab @ 2015-10-19 14:25 UTC (permalink / raw)
  To: linux-usb, balbi; +Cc: p.jones, Mian Yousaf Kaukab, stable

Defect 7374 workaround enables all GPEP as endpoint 0. Restore
endpoint number when defect 7374 workaround is disabled. Otherwise,
check to match USB endpoint number to hardware endpoint number in
net2280_enable() fails.

Cc: <stable@vger.kernel.org> # 4.2
Reported-by: Paul Jones <p.jones@teclyn.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
---
Hi Felipe,
Is it possible to queue this for v4.3-rc?

BR,
Yousaf

 drivers/usb/gadget/udc/net2280.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c
index cf0ed42..6706aef 100644
--- a/drivers/usb/gadget/udc/net2280.c
+++ b/drivers/usb/gadget/udc/net2280.c
@@ -1913,7 +1913,7 @@ static void defect7374_disable_data_eps(struct net2280 *dev)
 
 	for (i = 1; i < 5; i++) {
 		ep = &dev->ep[i];
-		writel(0, &ep->cfg->ep_cfg);
+		writel(i, &ep->cfg->ep_cfg);
 	}
 
 	/* CSROUT, CSRIN, PCIOUT, PCIIN, STATIN, RCIN */
-- 
2.3.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] usb: gadget: net2280: restore ep_cfg after defect7374 workaround
  2015-10-19 14:25 [PATCH] usb: gadget: net2280: restore ep_cfg after defect7374 workaround Mian Yousaf Kaukab
@ 2015-10-19 14:26 ` Felipe Balbi
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2015-10-19 14:26 UTC (permalink / raw)
  To: Mian Yousaf Kaukab, linux-usb; +Cc: p.jones, Mian Yousaf Kaukab, stable

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

Mian Yousaf Kaukab <yousaf.kaukab@intel.com> writes:

> Defect 7374 workaround enables all GPEP as endpoint 0. Restore
> endpoint number when defect 7374 workaround is disabled. Otherwise,
> check to match USB endpoint number to hardware endpoint number in
> net2280_enable() fails.
>
> Cc: <stable@vger.kernel.org> # 4.2
> Reported-by: Paul Jones <p.jones@teclyn.com>
> Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
> ---
> Hi Felipe,
> Is it possible to queue this for v4.3-rc?

in testing/next now, this was simple enough and actually fixed a bug.

-- 
balbi

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-19 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 14:25 [PATCH] usb: gadget: net2280: restore ep_cfg after defect7374 workaround Mian Yousaf Kaukab
2015-10-19 14:26 ` Felipe Balbi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.