RE: [PATCH v3] USB: EHCI: Add Marvell Host Controller driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg,

> -----Original Message-----
> From: Greg KH [mailto:greg@xxxxxxxxx]
> Sent: 2011年12月13日 6:37
> To: Neil Zhang
> Cc: stern@xxxxxxxxxxxxxxxxxxx; balbi@xxxxxx; gregkh@xxxxxxx; Chao Xie;
> linux-usb@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH v3] USB: EHCI: Add Marvell Host Controller driver
> 
> On Mon, Dec 12, 2011 at 02:35:54PM -0800, Greg KH wrote:
> > On Mon, Dec 12, 2011 at 11:34:55AM +0800, Neil Zhang wrote:
> > > This patch adds support for EHCI compliant HSUSB Host controller
> found
> > > on Marvell Socs.
> > >
> > > It fits both OTG and SPH controller on marvell Socs, including
> > > PXA9xx/MMP2/MMP3/MGx.
> >
> > And it adds all sorts of compiler warnings to the build:
> >
> > In file included from drivers/usb/host/ehci-hcd.c:1375:0:
> > drivers/usb/host/ehci-mv.c: In function ‘mv_ehci_enable’:
> > drivers/usb/host/ehci-mv.c:63:5: warning: cast from pointer to
> integer of different size [-Wpointer-to-int-cast]
> > drivers/usb/host/ehci-mv.c: In function ‘mv_ehci_disable’:
> > drivers/usb/host/ehci-mv.c:75:5: warning: cast from pointer to
> integer of different size [-Wpointer-to-int-cast]
> > drivers/usb/host/ehci-mv.c: In function ‘mv_ehci_probe’:
> > drivers/usb/host/ehci-mv.c:237:39: warning: cast from pointer to
> integer of different size [-Wpointer-to-int-cast]
> > drivers/usb/host/ehci-mv.c:237:21: warning: cast to pointer from
> integer of different size [-Wint-to-pointer-cast]
> > drivers/usb/host/ehci-mv.c:292:23: warning: cast from pointer to
> integer of different size [-Wpointer-to-int-cast]
> > drivers/usb/host/ehci-mv.c:293:9: warning: cast from pointer to
> integer of different size [-Wpointer-to-int-cast]
> >
> > Please send a follow-on patch to fix this, and next time, be more
> > careful.
> 
> Actually, no, I'm not going to accept this, as it's obviously wrong on
> systems where an int is not the size of a pointer, which is the primary
> platform for Linux these days.
> 
> Please fix the code up before sending it again.

Ok, I'll prepare a new patch to drop cast in our platform structure first.
And all UDC EHCI and OTG driver will be modified.
Thanks.
> 
> greg k-h
��.n��������+%������w��{.n�����{���)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux