* [PATCH] usb: gadget: composite: fixup bad backport
@ 2017-01-12 7:41 Felipe Balbi
2017-01-12 7:57 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2017-01-12 7:41 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: stable, b-liu, Felipe Balbi
While backporting commit eaa496ffaaf19591fe471a36cef366146eeb91538, I
made a mistake and instead of extracting bits 12:11 from wMaxPacketSize,
I extracted bits 10:0. This was reported by Bin Liu recently as can be
seen at [1].
This patch is a quick fixup patch to extract the correct bits from
wMaxPacketSize.
[1] https://marc.info/?i=20170111171305.GB18730@uda027190
Cc: <stable@vger.kernel.org>
Reported-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
---
Greg, let me know if this is okay. If you prefer a revert followed by
the correct patch, I can do that. No issues.
drivers/usb/gadget/composite.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index e38b21087d26..34ee6ef642cd 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -205,7 +205,7 @@ int config_ep_by_speed(struct usb_gadget *g,
if (g->speed == USB_SPEED_HIGH && (usb_endpoint_xfer_isoc(_ep->desc) ||
usb_endpoint_xfer_int(_ep->desc)))
- _ep->mult = usb_endpoint_maxp(_ep->desc) & 0x7ff;
+ _ep->mult = (usb_endpoint_maxp(_ep->desc) & 0x1800) >> 11;
if (!want_comp_desc)
return 0;
--
2.11.0.295.gd7dffce1ce
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: gadget: composite: fixup bad backport
2017-01-12 7:41 [PATCH] usb: gadget: composite: fixup bad backport Felipe Balbi
@ 2017-01-12 7:57 ` Greg Kroah-Hartman
2017-01-12 8:06 ` Felipe Balbi
0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2017-01-12 7:57 UTC (permalink / raw)
To: Felipe Balbi; +Cc: stable, b-liu
On Thu, Jan 12, 2017 at 09:41:57AM +0200, Felipe Balbi wrote:
> While backporting commit eaa496ffaaf19591fe471a36cef366146eeb91538, I
> made a mistake and instead of extracting bits 12:11 from wMaxPacketSize,
> I extracted bits 10:0. This was reported by Bin Liu recently as can be
> seen at [1].
>
> This patch is a quick fixup patch to extract the correct bits from
> wMaxPacketSize.
>
> [1] https://marc.info/?i=20170111171305.GB18730@uda027190
>
> Cc: <stable@vger.kernel.org>
> Reported-by: Bin Liu <b-liu@ti.com>
> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
> ---
>
> Greg, let me know if this is okay. If you prefer a revert followed by
> the correct patch, I can do that. No issues.
Ah, our emails just crossed, and I had just done the revert. If you
could send a fixed up patch now, that would be great.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: gadget: composite: fixup bad backport
2017-01-12 7:57 ` Greg Kroah-Hartman
@ 2017-01-12 8:06 ` Felipe Balbi
0 siblings, 0 replies; 3+ messages in thread
From: Felipe Balbi @ 2017-01-12 8:06 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: stable, b-liu
[-- Attachment #1: Type: text/plain, Size: 980 bytes --]
Hi,
Greg Kroah-Hartman <gregkh@linuxfoundation.org> writes:
> On Thu, Jan 12, 2017 at 09:41:57AM +0200, Felipe Balbi wrote:
>> While backporting commit eaa496ffaaf19591fe471a36cef366146eeb91538, I
>> made a mistake and instead of extracting bits 12:11 from wMaxPacketSize,
>> I extracted bits 10:0. This was reported by Bin Liu recently as can be
>> seen at [1].
>>
>> This patch is a quick fixup patch to extract the correct bits from
>> wMaxPacketSize.
>>
>> [1] https://marc.info/?i=20170111171305.GB18730@uda027190
>>
>> Cc: <stable@vger.kernel.org>
>> Reported-by: Bin Liu <b-liu@ti.com>
>> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
>> ---
>>
>> Greg, let me know if this is okay. If you prefer a revert followed by
>> the correct patch, I can do that. No issues.
>
> Ah, our emails just crossed, and I had just done the revert. If you
> could send a fixed up patch now, that would be great.
Done, thanks :-)
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-12 8:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-12 7:41 [PATCH] usb: gadget: composite: fixup bad backport Felipe Balbi
2017-01-12 7:57 ` Greg Kroah-Hartman
2017-01-12 8:06 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).