mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ramneek Mehresh <ramneek.mehresh@freescale.com>
To: Jun Li <jun.li@nxp.com>, Felipe Balbi <balbi@ti.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: "stern@rowland.harvard.edu" <stern@rowland.harvard.edu>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: RE: [PATCH 0/7][v4] Add OTG support for FSL socs
Date: Wed, 23 Dec 2015 12:20:20 +0000	[thread overview]
Message-ID: <SN1PR0301MB158366E4FFD5E3F88D8A1233E0E60@SN1PR0301MB1583.namprd03.prod.outlook.com> (raw)
In-Reply-To: <AM4PR04MB166510B9050040A98187EA9189E60@AM4PR04MB1665.eurprd04.prod.outlook.com>



> -----Original Message-----
> From: Jun Li [mailto:jun.li@nxp.com]
> Sent: Wednesday, December 23, 2015 10:36 AM
> To: Felipe Balbi <balbi@ti.com>; 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
> Subject: RE: [PATCH 0/7][v4] Add OTG support for FSL socs
> 
> 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".
> 
change_hcd_work() changes host controller mode, and hence, should be in host controller
driver. To move this to phy driver (just to avoid usage of a single flag) won't be a good idea.
In this case, I'll also have to move some host controller specific flags to phy drv which won't be correct.

> Li Jun


  reply	other threads:[~2015-12-23 12:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-27 16:43 Ramneek Mehresh
2015-08-27 16:43 ` [PATCH 1/7][v4]usb:fsl:otg: Make fsl otg driver as tristate Ramneek Mehresh
2015-08-27 16:43 ` [PATCH 2/7][v4]usb:fsl:otg: Add controller version based ULPI and UTMI phy Ramneek Mehresh
2015-08-27 16:43 ` [PATCH 3/7][v4]usb:fsl:otg: Add support to add/remove usb host driver Ramneek Mehresh
2015-08-27 16:43 ` [PATCH 4/7][v4]usb:fsl:otg: Signal host drv when host is otg Ramneek Mehresh
2015-08-27 16:43 ` [PATCH 5/7][v4]usb:fsl:otg: Modify otg_event to start host drv Ramneek Mehresh
2015-08-27 16:43 ` [PATCH 6/7][v4]usb:fsl:otg: Combine host/gadget start/resume for ID change Ramneek Mehresh
2015-08-27 16:43 ` [PATCH 7/7][v4]usb:fsl:otg: Add host-gadget drv sync delay Ramneek Mehresh
2015-10-05 20:12 ` [PATCH 0/7][v4] Add OTG support for FSL socs Felipe Balbi
2015-10-05 21:04   ` Alan Stern
2015-10-06 19:53   ` Alan Stern
2015-10-05 22:22 ` Fabio Estevam
2015-10-09 21:25 ` Felipe Balbi
2015-10-09 21:34   ` Felipe Balbi
2015-12-20  4:52     ` Ramneek Mehresh
2015-12-22 18:20       ` Felipe Balbi
2015-12-23  5:06         ` Jun Li
2015-12-23 12:20           ` Ramneek Mehresh [this message]
2015-12-23 16:31             ` Jun Li
2015-12-24  4:52               ` Ramneek Mehresh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN1PR0301MB158366E4FFD5E3F88D8A1233E0E60@SN1PR0301MB1583.namprd03.prod.outlook.com \
    --to=ramneek.mehresh@freescale.com \
    --cc=balbi@ti.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jun.li@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®