Re: [PATCH v2 0/3] Some update for USB OTG

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

 



On Tue, Apr 01, 2014 at 08:36:58AM +0800, Peter Chen wrote:
> On Thu, Mar 13, 2014 at 03:25:19PM +0800, Li Jun wrote:
> > From: Li Jun <b47624@xxxxxxxxxxxxx>
> > 
> > Hi Felipe,
> > 
> > Two for fsm, the other one is to delete CONFIG_USB_OTG_FSM
> > since it is duplicated with CONFIG_USB_OTG, thanks.
> > 
> > Change on v1:
> > Remove "{}" for a single statement in patch:
> > usb: phy-fsm: update OTG HNP state transition.
> > 
> > Li Jun (1):
> >   usb: phy-fsm: update OTG HNP state transition
> > 
> > Peter Chen (2):
> >   usb: phy: delete CONFIG_USB_OTG_FSM
> >   usb: phy-fsm: change "|" to "||" for condition OTG_STATE_A_WAIT_BCON
> >     at statemachine
> > 
> >  drivers/usb/phy/Kconfig       |   11 +----------
> >  drivers/usb/phy/Makefile      |    2 +-
> >  drivers/usb/phy/phy-fsm-usb.c |    9 +++++----
> >  3 files changed, 7 insertions(+), 15 deletions(-)
> > 
> > -- 
> > 1.7.9.5
> > 
> > 
> 
> Hi Felipe,
> 
> Would you give some comments for this patchset please? For the
> patch "usb: phy: delete CONFIG_USB_OTG_FSM", I sent it more
> than two months ago, I need to know your comments if it
> can be accepted or not, we are working on OTG FSM patchset
> for chipidea, and it is close to review process,
> we need to know if we can use CONFIG_USB_OTG_FSM to cover OTG
> (fsm) code, or just CONFIG_USB_OTG is ok, thanks.

I know you've sent this a long time ago and I've been banging my head
ever since trying to decide if we should delete OTG FSM or not. On the
one hand the OTG is pretty generic and aparently everybody would benefit
from it but on the other hand we might have HW which implements the
state machine without much SW control - though I can't remind of any
good examples.

Also, I think most of that code should be agnostic of the PHY layer and
sit in usb-common.c. Quite frankly, OTG shouldn't depend on the PHY at
all, we could very well have implementations which need/have no SW
control over the PHY and still be fully OTG compliant.

cheers

ps: I'll get back to this after merge window closes.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux