Re: [linux-usb-devel] [PATCH] USB/gadget: PXA27x USB device support

2007-03-04 Thread Richard Purdie
On Fri, 2007-03-02 at 18:47 +0100, Rodolfo Giometti wrote: > Hello, > > here my new proposal for PXA27x USB device support. In this version I > fixed the power management support (suspend/resume). > > As already mentioned in my previous, I know this driver is quite far > from perfection but, in m

Re: [linux-usb-devel] [PATCH] usb: generic calibration support

2006-11-17 Thread Richard Purdie
On Fri, 2006-11-17 at 15:53 +0100, Holger Schurig wrote: > > I believe tslib handles this. > > The special X server "KDrive" supports tslib, this is used in > many embedded projects, e.g. by images created via > http://www.openembedded.org. But mainline X.org server, e.g. > what is in Debian un

Re: [linux-usb-devel] [PATCH] limit power budget on spitz

2006-06-08 Thread Richard Purdie
On Thu, 2006-06-08 at 14:40 -0700, David Brownell wrote: > Right. OHCI was just an example though ... there are lots of other > platform drivers for PXA. I'm not sure they all check for platform_data > before succeeding in their probe() methods. The implementations in mainline generally use all

Re: [linux-usb-devel] [PATCH] limit power budget on spitz

2006-06-08 Thread Richard Purdie
tested only so far). Cheers, Richard Only register the PXA OHCI platform device on platforms which provide the platform data. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> Index: git/arch/arm/mach-pxa/pxa27x.c === ---

Re: [linux-usb-devel] [PATCH] limit power budget on spitz

2006-06-08 Thread Richard Purdie
On Thu, 2006-06-08 at 11:26 -0700, David Brownell wrote: > On Thu, Jun 08, 2006 at 10:22:50AM +0100, Richard Purdie wrote: > > Just because the omap does it that way, doesn't mean it can't be done > > better ;-). > > Agreed that platform_data is a better approach o

Re: [linux-usb-devel] [PATCH] limit power budget on spitz

2006-06-08 Thread Richard Purdie
Hi, On Thu, 2006-06-08 at 11:02 +0200, Pavel Machek wrote: > > > + if (machine_is_spitz()) { > > > + /* Warning, not coming from any official docs. But > > > + * spitz is unable to properly power wireless card > > > + * claiming 500mA -- usb interface work but wireless >

Re: [linux-usb-devel] [PATCH] limit power budget on spitz

2006-06-08 Thread Richard Purdie
On Thu, 2006-06-08 at 10:34 +0200, Pavel Machek wrote: > diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c > index acde886..1d8b58c 100644 > --- a/drivers/usb/host/ohci-pxa27x.c > +++ b/drivers/usb/host/ohci-pxa27x.c > @@ -185,6 +185,13 @@ int usb_hcd_pxa27x_probe (const

[linux-usb-devel] Progress on the pxa27x UDC Driver + RNDIS problem

2006-01-02 Thread Richard Purdie
I've done some work on the pxa27x UDC driver which may be of interest to others. I have CDC-Ethernet running but can't get RNDIS to work (fresh pairs of eyes would be welcome). The patches: http://projects.o-hand.com/hx2750/patches/usb_add_epalloc-r1.patch provides usb_ep_autoconfig() with more

[linux-usb-devel] [patch] OHCI lh7a404 platform device conversion fixup

2005-11-14 Thread Richard Purdie
Fix an error in the OHCI lh7a404 driver after the platform device conversion. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> Index: linux-2.6.15-rc1/drivers/usb/host/ohci-lh7a404.c === --- linux-2.6.15-rc1.orig/drivers/us

[linux-usb-devel] [patch] dummy_hcd platform device conversion fixup

2005-11-12 Thread Richard Purdie
Fix an error in dummy_hcd after the platform device conversion. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> Index: linux-2.6.14/drivers/usb/gadget/dummy_hcd.c === --- linux-2.6.14.orig/drivers/usb/gadget/dummy_hcd.c2

[linux-usb-devel] [PATCH 1/2] pxa27x OHCI - Separate platform code from main driver

2005-10-30 Thread Richard Purdie
successfully run on Spitz (Sharp Zaurus SL-C3000) with the addition of an appropriate board support file. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> Signed-off-by: Nicolas Pitre <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> Index: git/drivers/usb/

[linux-usb-devel] [PATCH 2/2] Add pxa27x OHCI PM functions

2005-10-30 Thread Richard Purdie
Add power management functions for the pxa27x USB OHCI host controller. This is a totally rewritten version of the patch by Nicolas Pitre and Todd Poynor which accounts for recent USB changes. Signed-off-by: Richard Purdie Index: git/drivers/usb/host/ohci-pxa27x.c

[linux-usb-devel] [PATCH 0/1] pxa27x ohci updates

2005-10-30 Thread Richard Purdie
Two patches follow which update the pxa27x OHCI host controller driver. The first has been seen before and approved by various people but never made it to Greg. I've rediffed it against latest git after the recent merging. The second adds PM functions to the driver. Todd originally submitted a pat

[linux-usb-devel] [patch] fix pxa2xx_udc compile warnings

2005-09-14 Thread Richard Purdie
e fixes several compiler warnings. Signed-Off-By: Richard Purdie <[EMAIL PROTECTED]> Index: git/drivers/usb/gadget/pxa2xx_udc.c === --- git.orig/drivers/usb/gadget/pxa2xx_udc.c2005-09-14 10:08:27.0 +0100 +++ git/drivers/us

[linux-usb-devel] Re: [rediffed patch] USB PXA-27x OHCI Separate platform code from main driver

2005-09-13 Thread Richard Purdie
On Tue, 2005-09-13 at 12:15 -0700, David Brownell wrote: > Looks OK to me ... except for one minor point, that I'd prefer not > to see platform devices registered on boards that don't support them. > In such cases they're just a waste of memory. Wasting a KByte here > and there does start to add u

[linux-usb-devel] [rediffed patch] USB PXA-27x OHCI Separate platform code from main driver

2005-09-13 Thread Richard Purdie
successfully run on Spitz (Sharp Zaurus SL-C3000) with the addition of an appropriate board support file. Signed-Off-By: Richard Purdie <[EMAIL PROTECTED]> Signed-off-by: Nicolas Pitre <[EMAIL PROTECTED]> Index: linux-2.6.13/drivers/usb/host/o

[linux-usb-devel] [patch 2/2] USB PXA-27x OHCI Separate platform code from main driver

2005-08-25 Thread Richard Purdie
successfully run on Spitz (Sharp Zaurus SL-C3000) with the addition of an appropriate board support file. Signed-Off-By: Richard Purdie <[EMAIL PROTECTED]> Index: linux-2.6.12/drivers/usb/host/ohci-pxa27x.c === --- linux-2.6.1

[linux-usb-devel] [patch 1/2] USB PXA-27x OHCI Driver Cleanup

2005-08-25 Thread Richard Purdie
implemented. Allow the platform to select the port power mode Signed-Off-By: Richard Purdie <[EMAIL PROTECTED]> Index: linux-2.6.12/drivers/usb/host/ohci-pxa27x.c === --- linux-2.6.12.orig/drivers/usb/host/ohci-pxa27x.c2005-08-25

[linux-usb-devel] [patch] USB OHCI Consolidate NDP register handling

2005-08-25 Thread Richard Purdie
its needed. It also sets the value correctly for the ARM pxa27x architecture. Signed-Off-By: Richard Purdie <[EMAIL PROTECTED]> Index: linux-2.6.12/drivers/usb/host/ohci-dbg.c === --- linux-2.6.12.orig/drivers/usb/host/ohci

Re: [linux-usb-devel] PXA27x OHCI Driver RFC

2005-08-25 Thread Richard Purdie
On Wed, 2005-08-24 at 14:42 -0700, David Brownell wrote: > What I'd like to do is have NDP used only in ohci_hub_status() > (e.g. the workaround for those early AMD-756 chips) and have the > rest of the driver reference some field in "struct ohci_hcd" which > is initialized by OHCI "core" code -- i

Re: [linux-usb-devel] PXA27x OHCI Driver RFC

2005-08-23 Thread Richard Purdie
On Tue, 2005-08-23 at 12:43 +0200, Bernd Petrovitsch wrote: > Just C-specific ones - God knows what people will pass as argument: > > > +#ifdef CONFIG_PXA27x > > +#define OHCI_GETPORTNUM(x) ((x & RH_A_NDP) + 1) > +#define OHCI_GETPORTNUM(x) (((x) & RH_A_NDP) + 1) > > +#else > > +#define OHCI_GET

[linux-usb-devel] PXA27x OHCI Driver RFC

2005-08-23 Thread Richard Purdie
I've been experimenting with the OHCI interface on the Zaurus SL-C3000 (Spitz) and have found a few things I wouldn't mind opinions on. Firstly, the NDP register in roothub.a on the PXA270 isn't standard and the number of ports is really the value of NDP+1. The chip supports three ports and whils