RE: [PATCH v3 0/5] DWC2 DesignWare HS OTG driver

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

 



> From: Felipe Balbi [mailto:balbi@xxxxxx]
> Sent: Monday, February 11, 2013 3:05 AM
> 
> On Sat, Feb 09, 2013 at 07:37:47PM -0800, Paul Zimmerman wrote:
> > - The PCI bus driver has a couple dozen module parameters to control
> >   various optional features of the controller. I realize module parameters
> 
> optional features ? Are those something you can detect by reading some
> configuration registers just like we do on dwc3 ?

The PCI bus driver is intended for our FPGA platform, where developers
may want to enable/disable things at boot time for testing purposes. For
a production platform, these should be set via DT or something, and not
be end user configurable.

And yes, a lot of these things (like the type of Phy used) are discoverable
from the GHWCFG registers. So if you give -1 for the parameter, the driver
will use the GHWCFG values for the default. Hmm, but it looks like that is
broken for some of the parameters, I will fix that in the next version.

But, just because the core supports a particular feature, doesn't mean
that feature is wanted on every platform. So I think some of these should
remain selectable regardless. Just not end user selectable on a production
platform

> > - There is some code present to implement DRD and OTG support, but it is
> >   incomplete due to the missing peripheral-mode code.
> 
> maybe we can leave that out for now until peripheral side moves here ?

OK, will do that.

> > - There is quite a bit of debug code included. We would like to keep that
> >   until the integration with s3c-hsotg is complete, then most of it can be
> >   stripped out.
> 
> Just make sure people don't depend on it. Maybe using dev_vdbg() is one
> way to actually keep it in the driver even after full cleanup is done.
> See how I implemented dev_vdbg() support for dwc3.

For this version, I am using dev_vdbg for a lot of the messages. I am
keeping dev_dbg for some things that you may want to see even if you
are not in verbose mode, like core configuration values and unexpected
runtime conditions. I got rid of almost all of the dev_info messages,
although now I see there are a few more that should probably be
dev_dbg.

-- 
Paul

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux