Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1297258

RE: [PATCH 0/7][v4] Add OTG support for FSL socs

From Jun Li <jun.li@nxp.com>
Newsgroups linux.kernel
Subject RE: [PATCH 0/7][v4] Add OTG support for FSL socs
Date 2015-12-23 06:40 +0100
Message-ID <qIKjw-5xa-3@gated-at.bofh.it> (permalink)
References <qgkoP-Wa-19@gated-at.bofh.it> <qhNoM-5IG-43@gated-at.bofh.it> <qhNyp-5TJ-3@gated-at.bofh.it> <qHEga-4q7-1@gated-at.bofh.it> <qIzR8-7qu-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi

> -----Original Message-----
> From: linux-usb-owner@vger.kernel.org [mailto:linux-usb-
> owner@vger.kernel.org] On Behalf Of Felipe Balbi
> Sent: Wednesday, December 23, 2015 2:21 AM
> To: Ramneek Mehresh <ramneek.mehresh@freescale.com>; linux-
> kernel@vger.kernel.org
> Cc: stern@rowland.harvard.edu; gregkh@linuxfoundation.org; linux-
> usb@vger.kernel.org
> Subject: RE: [PATCH 0/7][v4] Add OTG support for FSL socs
> 
> 
> Hi,
> 
> Ramneek Mehresh <ramneek.mehresh@freescale.com> writes:
> >> -----Original Message-----
> >> From: Felipe Balbi [mailto:balbi@ti.com]
> >> Sent: Saturday, October 10, 2015 3:04 AM
> >> To: Mehresh Ramneek-B31383 <ramneek.mehresh@freescale.com>; linux-
> >> kernel@vger.kernel.org
> >> Cc: stern@rowland.harvard.edu; gregkh@linuxfoundation.org; linux-
> >> usb@vger.kernel.org; Mehresh Ramneek-B31383
> >> <ramneek.mehresh@freescale.com>
> >> Subject: Re: [PATCH 0/7][v4] Add OTG support for FSL socs
> >>
> >> Felipe Balbi <balbi@ti.com> writes:
> >>
> >> > Hi,
> >> >
> >> > Ramneek Mehresh <ramneek.mehresh@freescale.com> writes:
> >> >> Add support for otg for all freescale socs having internal usb phy.
> >> >>
> >> >> Ramneek Mehresh (7):
> >> >>   usb:fsl:otg: Make fsl otg driver as tristate
> >> >>   usb:fsl:otg: Add controller version based ULPI and UTMI phy
> >> >>   usb:fsl:otg: Add support to add/remove usb host driver
> >> >>   usb:fsl:otg: Signal host drv when host is otg
> >> >>   usb:fsl:otg: Modify otg_event to start host drv
> >> >>   usb:fsl:otg: Combine host/gadget start/resume for ID change
> >> >>   usb:fsl:otg: Add host-gadget drv sync delay
> >> >
> >> > Unless Alan's okay with the host side changes, I can't accept any
> >> > of these. However, I must say some of the flags you add here
> >> > already exist in some way, shape or form. For example, look at
> is_b_host flag.
> >>
> >
> > Could you please be more specific...which flag you think that I should
> >remove/I'm re-defining. The flags I'm defining are:
> >
> > have_hcd : defined in fsl specific structure for fsl specific use-case
> >
> > had_hcd: defined in fsl specific structure for fsl specific use-case
> >
> > is_otg : defined in include/linux/usb.h
> >
> > Are you suggesting using otg_port or is_b_host instead of is_otg?
> >
> > As I understand, is_b_host is specifically to check if an otg B device
> > is in host mode...correct?  I just need a flag to check if a
> > controller is capable of otg operations? That's why defined "is_otg"
> > flag. Please suggest.
> 
> no, I don't know why I made that comment. You could use otg_port, but that
> wouldn't look very clean. Can you resend with Alan's ack, then I'll move
> this series into testing/next.
> 
> --
> balbi

Can you directly put the change_hcd_work in its phy driver(phy-fsl-usb.c)?
Then add/remove hcd will not through ehci_fsl_drv_suspend/resume,
With this, you can make it work without a new flag "is_otg".

Li Jun 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

RE: [PATCH 0/7][v4] Add OTG support for FSL socs Ramneek Mehresh <ramneek.mehresh@freescale.com> - 2015-12-20 06:00 +0100
  RE: [PATCH 0/7][v4] Add OTG support for FSL socs Felipe Balbi <balbi@ti.com> - 2015-12-22 19:30 +0100
    RE: [PATCH 0/7][v4] Add OTG support for FSL socs Jun Li <jun.li@nxp.com> - 2015-12-23 06:40 +0100
      RE: [PATCH 0/7][v4] Add OTG support for FSL socs Ramneek Mehresh <ramneek.mehresh@freescale.com> - 2015-12-23 13:30 +0100
        RE: [PATCH 0/7][v4] Add OTG support for FSL socs Jun Li <jun.li@nxp.com> - 2015-12-23 18:10 +0100
          RE: [PATCH 0/7][v4] Add OTG support for FSL socs Ramneek Mehresh <ramneek.mehresh@freescale.com> - 2015-12-24 06:10 +0100

csiph-web