2013-09-03 21:15:59

by Dave Jones

[permalink] [raw]
Subject: Re: usb: host: Faraday fotg210-hcd driver

On Tue, Sep 03, 2013 at 06:59:12PM +0000, Linux Kernel wrote:
> Gitweb: http://git.kernel.org/linus/;a=commit;h=1dd3d123239179fad5de5dc00a6e0014a1918fde
> Commit: 1dd3d123239179fad5de5dc00a6e0014a1918fde
> Parent: 10e232c597ac757e7f8600649f7e872e86de190f
> Author: Yuan-Hsin Chen <[email protected]>
> AuthorDate: Wed Jun 19 19:53:04 2013 +0000
> Committer: Greg Kroah-Hartman <[email protected]>
> CommitDate: Wed Jul 24 16:04:53 2013 -0700
>
> usb: host: Faraday fotg210-hcd driver
>
> FOTG210 is an OTG controller which can be configured as an
> USB2.0 host. FOTG210 host is an ehci-like controller with
> some differences. First, register layout of FOTG210 is
> incompatible with EHCI. Furthermore, FOTG210 is lack of
> siTDs which means iTDs are used for both HS and FS ISO
> transfer.
>
> Signed-off-by: Yuan-Hsin Chen <[email protected]>
> Signed-off-by: Greg Kroah-Hartman <[email protected]>

> +config USB_FOTG210_HCD
> + tristate "FOTG210 HCD support"
> + depends on USB
> + default N
> + ---help---
> + Faraday FOTG210 is an OTG controller which can be configured as
> + an USB2.0 host. It is designed to meet USB2.0 EHCI specification
> + with minor modification.
> +
> + To compile this driver as a module, choose M here: the
> + module will be called fotg210-hcd.
> +

Shouldn't this depend on USB_OTG ?
Seems odd to have OTG related options presented to me when I have that unset.

Dave


2013-09-03 21:23:58

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: usb: host: Faraday fotg210-hcd driver

On Tue, Sep 03, 2013 at 05:15:44PM -0400, Dave Jones wrote:
> On Tue, Sep 03, 2013 at 06:59:12PM +0000, Linux Kernel wrote:
> > Gitweb: http://git.kernel.org/linus/;a=commit;h=1dd3d123239179fad5de5dc00a6e0014a1918fde
> > Commit: 1dd3d123239179fad5de5dc00a6e0014a1918fde
> > Parent: 10e232c597ac757e7f8600649f7e872e86de190f
> > Author: Yuan-Hsin Chen <[email protected]>
> > AuthorDate: Wed Jun 19 19:53:04 2013 +0000
> > Committer: Greg Kroah-Hartman <[email protected]>
> > CommitDate: Wed Jul 24 16:04:53 2013 -0700
> >
> > usb: host: Faraday fotg210-hcd driver
> >
> > FOTG210 is an OTG controller which can be configured as an
> > USB2.0 host. FOTG210 host is an ehci-like controller with
> > some differences. First, register layout of FOTG210 is
> > incompatible with EHCI. Furthermore, FOTG210 is lack of
> > siTDs which means iTDs are used for both HS and FS ISO
> > transfer.
> >
> > Signed-off-by: Yuan-Hsin Chen <[email protected]>
> > Signed-off-by: Greg Kroah-Hartman <[email protected]>
>
> > +config USB_FOTG210_HCD
> > + tristate "FOTG210 HCD support"
> > + depends on USB
> > + default N
> > + ---help---
> > + Faraday FOTG210 is an OTG controller which can be configured as
> > + an USB2.0 host. It is designed to meet USB2.0 EHCI specification
> > + with minor modification.
> > +
> > + To compile this driver as a module, choose M here: the
> > + module will be called fotg210-hcd.
> > +
>
> Shouldn't this depend on USB_OTG ?
> Seems odd to have OTG related options presented to me when I have that unset.

It's a USB Host controller, so it should be built if you have that
option set. The fact that it can do OTG isn't an issue here, from what
I can tell.

thanks,

greg k-h

2013-09-03 21:32:20

by Dave Jones

[permalink] [raw]
Subject: Re: usb: host: Faraday fotg210-hcd driver

On Tue, Sep 03, 2013 at 02:23:55PM -0700, Greg KH wrote:

> > > +config USB_FOTG210_HCD
> > > + tristate "FOTG210 HCD support"
> > > + depends on USB
> > > + default N
> > > + ---help---
> > > + Faraday FOTG210 is an OTG controller which can be configured as
> > > + an USB2.0 host. It is designed to meet USB2.0 EHCI specification
> > > + with minor modification.
> > > +
> > > + To compile this driver as a module, choose M here: the
> > > + module will be called fotg210-hcd.
> > > +
> >
> > Shouldn't this depend on USB_OTG ?
> > Seems odd to have OTG related options presented to me when I have that unset.
>
> It's a USB Host controller, so it should be built if you have that
> option set. The fact that it can do OTG isn't an issue here, from what
> I can tell.

Ok. It still likely needs a 'depends on $ARCH (arm?) | COMPILE_TEST' though.

Dave

PS: What happened with this driver ?

This patch landed twice in your tree, once in 1dd3d123239179fad5de5dc00a6e0014a1918fde from Yuan-Hsin Chen <[email protected]>
and then in 7d50195f6c5005d6ae7a789d9a7f0a94d104ee96 from Feng-Hsin Chiang <[email protected]>

Given the former address seems to be broken, perhaps all those mentions of it
in the faraday sources need updating ?

----- The following addresses had permanent fatal errors -----
<[email protected]>
(reason: 553 5.1.3 <[email protected]>... Check FTC account failure!<2>)

----- Transcript of session follows -----
... while talking to mailhost1.faraday-tech.com.:
>>> DATA
<<< 553 5.1.3 <[email protected]>... Check FTC account failure!<2>
550 5.1.1 <[email protected]>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

2013-09-03 21:40:13

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: usb: host: Faraday fotg210-hcd driver

On Tue, Sep 03, 2013 at 05:32:05PM -0400, Dave Jones wrote:
> On Tue, Sep 03, 2013 at 02:23:55PM -0700, Greg KH wrote:
>
> > > > +config USB_FOTG210_HCD
> > > > + tristate "FOTG210 HCD support"
> > > > + depends on USB
> > > > + default N
> > > > + ---help---
> > > > + Faraday FOTG210 is an OTG controller which can be configured as
> > > > + an USB2.0 host. It is designed to meet USB2.0 EHCI specification
> > > > + with minor modification.
> > > > +
> > > > + To compile this driver as a module, choose M here: the
> > > > + module will be called fotg210-hcd.
> > > > +
> > >
> > > Shouldn't this depend on USB_OTG ?
> > > Seems odd to have OTG related options presented to me when I have that unset.
> >
> > It's a USB Host controller, so it should be built if you have that
> > option set. The fact that it can do OTG isn't an issue here, from what
> > I can tell.
>
> Ok. It still likely needs a 'depends on $ARCH (arm?) | COMPILE_TEST' though.

Probably, yes.

> PS: What happened with this driver ?
>
> This patch landed twice in your tree, once in 1dd3d123239179fad5de5dc00a6e0014a1918fde from Yuan-Hsin Chen <[email protected]>
> and then in 7d50195f6c5005d6ae7a789d9a7f0a94d104ee96 from Feng-Hsin Chiang <[email protected]>
>
> Given the former address seems to be broken, perhaps all those mentions of it
> in the faraday sources need updating ?

I thought they had all been fixed up. The first version was dropped
because the maintainer no longer worked for the company (as you found
out), so I needed a new developer to step up and support it.

thanks,

greg k-h

2013-09-03 21:46:41

by Dave Jones

[permalink] [raw]
Subject: Re: usb: host: Faraday fotg210-hcd driver

On Tue, Sep 03, 2013 at 02:40:09PM -0700, Greg KH wrote:
> On Tue, Sep 03, 2013 at 05:32:05PM -0400, Dave Jones wrote:

> > PS: What happened with this driver ?
> >
> > This patch landed twice in your tree, once in 1dd3d123239179fad5de5dc00a6e0014a1918fde from Yuan-Hsin Chen <[email protected]>
> > and then in 7d50195f6c5005d6ae7a789d9a7f0a94d104ee96 from Feng-Hsin Chiang <[email protected]>
> >
> > Given the former address seems to be broken, perhaps all those mentions of it
> > in the faraday sources need updating ?
>
> I thought they had all been fixed up. The first version was dropped
> because the maintainer no longer worked for the company (as you found
> out), so I needed a new developer to step up and support it.

He's still mentioned in a bunch of MODULE_AUTHOR's.
While it seems sort of rude to delete mention of someones work, having a dead email
address seems bad form too. Perhaps the patch below ?

Dave

Update the MODULE_AUTHOR field of the Faraday OTG drivers to reflect
current maintainers email address.

Signed-off-by: Dave Jones <[email protected]>

diff --git a/drivers/usb/gadget/fotg210-udc.c b/drivers/usb/gadget/fotg210-udc.c
index 32db2ee..bbbfd19 100644
--- a/drivers/usb/gadget/fotg210-udc.c
+++ b/drivers/usb/gadget/fotg210-udc.c
@@ -1214,6 +1214,6 @@ static struct platform_driver fotg210_driver = {

module_platform_driver(fotg210_driver);

-MODULE_AUTHOR("Yuan-Hsin Chen <[email protected]>");
+MODULE_AUTHOR("Yuan-Hsin Chen, Feng-Hsin Chiang <[email protected]>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION(DRIVER_DESC);
diff --git a/drivers/usb/gadget/fusb300_udc.c b/drivers/usb/gadget/fusb300_udc.c
index f1dd6da..b278abe 100644
--- a/drivers/usb/gadget/fusb300_udc.c
+++ b/drivers/usb/gadget/fusb300_udc.c
@@ -22,7 +22,7 @@

MODULE_DESCRIPTION("FUSB300 USB gadget driver");
MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Yuan Hsin Chen <[email protected]>");
+MODULE_AUTHOR("Yuan-Hsin Chen, Feng-Hsin Chiang <[email protected]>");
MODULE_ALIAS("platform:fusb300_udc");

#define DRIVER_VERSION "20 October 2010"

2013-09-03 22:02:34

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: usb: host: Faraday fotg210-hcd driver

On Tue, Sep 03, 2013 at 05:46:26PM -0400, Dave Jones wrote:
> On Tue, Sep 03, 2013 at 02:40:09PM -0700, Greg KH wrote:
> > On Tue, Sep 03, 2013 at 05:32:05PM -0400, Dave Jones wrote:
>
> > > PS: What happened with this driver ?
> > >
> > > This patch landed twice in your tree, once in 1dd3d123239179fad5de5dc00a6e0014a1918fde from Yuan-Hsin Chen <[email protected]>
> > > and then in 7d50195f6c5005d6ae7a789d9a7f0a94d104ee96 from Feng-Hsin Chiang <[email protected]>
> > >
> > > Given the former address seems to be broken, perhaps all those mentions of it
> > > in the faraday sources need updating ?
> >
> > I thought they had all been fixed up. The first version was dropped
> > because the maintainer no longer worked for the company (as you found
> > out), so I needed a new developer to step up and support it.
>
> He's still mentioned in a bunch of MODULE_AUTHOR's.
> While it seems sort of rude to delete mention of someones work, having a dead email
> address seems bad form too. Perhaps the patch below ?

That looks good, I'll queue it up, thanks.

greg k-h