* RE: [PATCH v1] USB: OTG should be linked before Host
[not found] ` <CAL411-o0k_=HN+LH4Vx07=DTPOhs6iZuDXjdo1daBHov85Etaw@mail.gmail.com>
@ 2011-11-24 7:19 ` Neil Zhang
2011-11-24 9:40 ` Felipe Balbi
0 siblings, 1 reply; 2+ messages in thread
From: Neil Zhang @ 2011-11-24 7:19 UTC (permalink / raw)
To: Peter Chen, Greg KH; +Cc: balbi, Haojian Zhuang, linux-usb, linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 3013 bytes --]
> -----Original Message-----
> From: Peter Chen [mailto:hzpeterchen@gmail.com]
> Sent: 2011å¹´11æ24æ¥ 14:06
> To: Greg KH
> Cc: Neil Zhang; balbi@ti.com; Haojian Zhuang; linux-usb@vger.kernel.org
> Subject: Re: [PATCH v1] USB: OTG should be linked before Host
>
> On Thu, Nov 24, 2011 at 12:17 AM, Greg KH <gregkh@suse.de> wrote:
> > On Wed, Nov 23, 2011 at 06:38:48PM +0800, Neil Zhang wrote:
> >> For OTG controller, the host driver will call function
> >> otg_get_transceiver to get the otg transceiver, so we need to init
> the
> >> OTG driver before HOST.
> >
> I agree with it, at freescale i.mx platform, we also need to init otg
> first, then the host
> if otg function is enabled.
>
> > How do you handle this if these drivers are built as modules?
> We require the user load module by order, and write it at UserGuide.
>
> I find at older kernel version, like 2.6.38, the otg was built firstly
> at usb module.
Actually, it was changed by the following patch.
commit 4661ffc91befc8c5ee080720120da1d53851060a
Author: Felipe Balbi <balbi@ti.com>
Date: Thu Apr 7 10:59:34 2011 +0300
usb: don't enter usb subdirectories directly
Instead, make we enter usb/ directory on all
needed cases and enter the subdirectories from
drivers/usb/Makefile.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Hi Balbi,
Do you have any concern to change it?
> >
> >> Signed-off-by: Neil Zhang <zhangwm@marvell.com>
> >> ---
> >> Â drivers/usb/Makefile | Â Â 3 ++-
> >> Â 1 files changed, 2 insertions(+), 1 deletions(-)
> >>
> >> diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
> >> index 75eca76..53a7bc0 100644
> >> --- a/drivers/usb/Makefile
> >> +++ b/drivers/usb/Makefile
> >> @@ -6,6 +6,8 @@
> >>
> >> Â obj-$(CONFIG_USB) Â Â Â Â Â Â += core/
> >>
> >> +obj-$(CONFIG_USB_OTG_UTILS) Â += otg/
> >> +
> >> Â obj-$(CONFIG_USB_DWC3) Â Â Â Â Â Â Â += dwc3/
> >>
> >> Â obj-$(CONFIG_USB_MON) Â Â Â Â Â Â Â Â += mon/
> >> @@ -51,7 +53,6 @@ obj-$(CONFIG_USB_SPEEDTOUCH) Â Â Â Â += atm/
> >>
> >> Â obj-$(CONFIG_USB_MUSB_HDRC) Â += musb/
> >> Â obj-$(CONFIG_USB_RENESAS_USBHS) Â Â Â += renesas_usbhs/
> >> -obj-$(CONFIG_USB_OTG_UTILS) Â += otg/
> >> Â obj-$(CONFIG_USB_GADGET) Â Â += gadget/
> >>
> >> Â obj-$(CONFIG_USB_COMMON) Â Â += usb-common.o
> >
> > This is a big change that I would like to get some acks by other
> people
> > before making, are you sure you didn't just break any other hardware
> > that needs the host driver initialized first?
> >
> > greg k-h
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-usb"
> in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
>
>
>
> --
> BR,
> Peter Chen
Best Regards,
Neil Zhang
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v1] USB: OTG should be linked before Host
2011-11-24 7:19 ` [PATCH v1] USB: OTG should be linked before Host Neil Zhang
@ 2011-11-24 9:40 ` Felipe Balbi
0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2011-11-24 9:40 UTC (permalink / raw)
To: Neil Zhang
Cc: Peter Chen, Greg KH, balbi, Haojian Zhuang, linux-usb, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1762 bytes --]
On Wed, Nov 23, 2011 at 11:19:44PM -0800, Neil Zhang wrote:
> > -----Original Message-----
> > From: Peter Chen [mailto:hzpeterchen@gmail.com]
> > Sent: 2011年11月24日 14:06
> > To: Greg KH
> > Cc: Neil Zhang; balbi@ti.com; Haojian Zhuang; linux-usb@vger.kernel.org
> > Subject: Re: [PATCH v1] USB: OTG should be linked before Host
> >
> > On Thu, Nov 24, 2011 at 12:17 AM, Greg KH <gregkh@suse.de> wrote:
> > > On Wed, Nov 23, 2011 at 06:38:48PM +0800, Neil Zhang wrote:
> > >> For OTG controller, the host driver will call function
> > >> otg_get_transceiver to get the otg transceiver, so we need to init
> > the
> > >> OTG driver before HOST.
> > >
> > I agree with it, at freescale i.mx platform, we also need to init otg
> > first, then the host
> > if otg function is enabled.
> >
> > > How do you handle this if these drivers are built as modules?
> > We require the user load module by order, and write it at UserGuide.
> >
> > I find at older kernel version, like 2.6.38, the otg was built firstly
> > at usb module.
>
> Actually, it was changed by the following patch.
>
> commit 4661ffc91befc8c5ee080720120da1d53851060a
> Author: Felipe Balbi <balbi@ti.com>
> Date: Thu Apr 7 10:59:34 2011 +0300
>
> usb: don't enter usb subdirectories directly
>
> Instead, make we enter usb/ directory on all
> needed cases and enter the subdirectories from
> drivers/usb/Makefile.
>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
>
> Hi Balbi,
> Do you have any concern to change it?
not from my side, we need the transceivers before the DRD controllers
can probe.
FWIW:
Acked-by: Felipe Balbi <balbi@ti.com>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-24 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1322044728-27080-1-git-send-email-zhangwm@marvell.com>
[not found] ` <20111123161759.GA27000@suse.de>
[not found] ` <CAL411-o0k_=HN+LH4Vx07=DTPOhs6iZuDXjdo1daBHov85Etaw@mail.gmail.com>
2011-11-24 7:19 ` [PATCH v1] USB: OTG should be linked before Host Neil Zhang
2011-11-24 9:40 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®