linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] usb/gadget: at91sam9g20 fix end point max packet size
       [not found] <1305042888-19401-1-git-send-email-plagnioj@jcrosoft.com>
@ 2011-05-13 15:03 ` Jean-Christophe PLAGNIOL-VILLARD
  2011-05-13 16:20   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-05-13 15:03 UTC (permalink / raw)
  To: gregkh, linux-usb, sshtylyov; +Cc: linux-kernel, linux-arm-kernel, plagnioj

on 9g20 they are the same as the 9260

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
Resent upon Greg's request.
Based on current linux-next.
Applies cleanly on current linus' tree (2.6.39-rc7+)

BTW, can we imagine it going to mainline before .39-final in a "fixes" pull
request to Linus from a at91 tree?

 drivers/usb/gadget/at91_udc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index 9b7cdb1..41dc093 100644
--- a/drivers/usb/gadget/at91_udc.c
+++ b/drivers/usb/gadget/at91_udc.c
@@ -1767,7 +1767,7 @@ static int __init at91udc_probe(struct platform_device *pdev)
 	}
 
 	/* newer chips have more FIFO memory than rm9200 */
-	if (cpu_is_at91sam9260()) {
+	if (cpu_is_at91sam9260() || cpu_is_at91sam9g20()) {
 		udc->ep[0].maxpacket = 64;
 		udc->ep[3].maxpacket = 64;
 		udc->ep[4].maxpacket = 512;
-- 
1.7.3


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

* Re: [PATCH V2] usb/gadget: at91sam9g20 fix end point max packet size
  2011-05-13 15:03 ` [PATCH V2] usb/gadget: at91sam9g20 fix end point max packet size Jean-Christophe PLAGNIOL-VILLARD
@ 2011-05-13 16:20   ` Greg KH
  2011-05-13 16:36     ` Nicolas Ferre
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2011-05-13 16:20 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD
  Cc: linux-usb, sshtylyov, linux-kernel, linux-arm-kernel

On Fri, May 13, 2011 at 05:03:02PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> on 9g20 they are the same as the 9260
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> Resent upon Greg's request.
> Based on current linux-next.
> Applies cleanly on current linus' tree (2.6.39-rc7+)
> 
> BTW, can we imagine it going to mainline before .39-final in a "fixes" pull
> request to Linus from a at91 tree?

No, as I don't think this is a bug-fix-only-for-regression, is it?

It looks to be a "fix for new hardware" type thing, right?

And is this really the correct way to do this for the .40 kernel, which
is where I would be queueing this up for?

thanks,

greg k-h

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

* Re: [PATCH V2] usb/gadget: at91sam9g20 fix end point max packet size
  2011-05-13 16:20   ` Greg KH
@ 2011-05-13 16:36     ` Nicolas Ferre
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2011-05-13 16:36 UTC (permalink / raw)
  To: Greg KH
  Cc: Jean-Christophe PLAGNIOL-VILLARD, linux-arm-kernel, linux-usb,
	linux-kernel, sshtylyov

Le 13/05/2011 18:20, Greg KH :
> On Fri, May 13, 2011 at 05:03:02PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
>> on 9g20 they are the same as the 9260
>>
>> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
>> ---
>> Resent upon Greg's request.
>> Based on current linux-next.
>> Applies cleanly on current linus' tree (2.6.39-rc7+)
>>
>> BTW, can we imagine it going to mainline before .39-final in a "fixes" pull
>> request to Linus from a at91 tree?
> 
> No, as I don't think this is a bug-fix-only-for-regression, is it?

Not a regression, but a
oh-my-god-how-it-has-been-there-for-such-a-long-time type of bug.

> It looks to be a "fix for new hardware" type thing, right?

Hardware has been merged in kernel for a pretty long time now... But
anyway, I fully understand: this bug has been sitting in the dark for a
handful of kernel revision now, so it can wait for .40...

> And is this really the correct way to do this for the .40 kernel, which
> is where I would be queueing this up for?

Right. Let's queue it for .40.

Bye,
-- 
Nicolas Ferre


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

end of thread, other threads:[~2011-05-13 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1305042888-19401-1-git-send-email-plagnioj@jcrosoft.com>
2011-05-13 15:03 ` [PATCH V2] usb/gadget: at91sam9g20 fix end point max packet size Jean-Christophe PLAGNIOL-VILLARD
2011-05-13 16:20   ` Greg KH
2011-05-13 16:36     ` Nicolas Ferre

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).