Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1295520 > unrolled thread
| Started by | Ramneek Mehresh <ramneek.mehresh@freescale.com> |
|---|---|
| First post | 2015-12-20 06:00 +0100 |
| Last post | 2015-12-24 06:10 +0100 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | Ramneek Mehresh <ramneek.mehresh@freescale.com> |
|---|---|
| Date | 2015-12-20 06:00 +0100 |
| Subject | RE: [PATCH 0/7][v4] Add OTG support for FSL socs |
| Message-ID | <qHEga-4q7-1@gated-at.bofh.it> |
> -----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. > Just saw Alan's reply, still, please have a look at these other flags which > already exist in usbcore today. > > -- > balbi -- 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/
[toc] | [next] | [standalone]
| From | Felipe Balbi <balbi@ti.com> |
|---|---|
| Date | 2015-12-22 19:30 +0100 |
| Message-ID | <qIzR8-7qu-21@gated-at.bofh.it> |
| In reply to | #1295520 |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [prev] | [next] | [standalone]
| From | Jun Li <jun.li@nxp.com> |
|---|---|
| Date | 2015-12-23 06:40 +0100 |
| Message-ID | <qIKjw-5xa-3@gated-at.bofh.it> |
| In reply to | #1296969 |
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/
[toc] | [prev] | [next] | [standalone]
| From | Ramneek Mehresh <ramneek.mehresh@freescale.com> |
|---|---|
| Date | 2015-12-23 13:30 +0100 |
| Message-ID | <qIQIh-158-3@gated-at.bofh.it> |
| In reply to | #1297258 |
> -----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 -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Jun Li <jun.li@nxp.com> |
|---|---|
| Date | 2015-12-23 18:10 +0100 |
| Message-ID | <qIV5g-3Ze-13@gated-at.bofh.it> |
| In reply to | #1297415 |
> -----Original Message----- > From: Ramneek Mehresh [mailto:ramneek.mehresh@freescale.com] > Sent: Wednesday, December 23, 2015 8:20 PM > To: Jun Li <jun.li@nxp.com>; Felipe Balbi <balbi@ti.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 > > > > > -----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. Reasonable, but most of OTG stuff not belong to phy actully, I see phy-msm-usb.c directly do hcd add/remove for OTG. > To move this to phy driver (just to avoid usage of > a single flag) won't be a good idea. I just saw you simply still use the suspend/resume method, but the change_hcd_work actually has nothing to do with it now, then add a flag to return for it, also the flag in your usage is not to indicate if the host capable/enabled otg, but something like is_host_role_to_be_changed_for_otg(test and then clear). Meanwhile you add another 2 flags in ehci_fsl(have_hcd, add_hcd) also for OTG host add/remove, so I am thinking if all those can be simplified. > In this case, I'll also have to move some host controller specific flags > to phy drv which won't be correct. > > > 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/
[toc] | [prev] | [next] | [standalone]
| From | Ramneek Mehresh <ramneek.mehresh@freescale.com> |
|---|---|
| Date | 2015-12-24 06:10 +0100 |
| Message-ID | <qJ6k2-2vP-3@gated-at.bofh.it> |
| In reply to | #1297548 |
> -----Original Message----- > From: Jun Li [mailto:jun.li@nxp.com] > Sent: Wednesday, December 23, 2015 10:02 PM > To: Mehresh Ramneek-B31383 <ramneek.mehresh@freescale.com>; Felipe > Balbi <balbi@ti.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 > > > > > -----Original Message----- > > From: Ramneek Mehresh [mailto:ramneek.mehresh@freescale.com] > > Sent: Wednesday, December 23, 2015 8:20 PM > > To: Jun Li <jun.li@nxp.com>; Felipe Balbi <balbi@ti.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 > > > > > > > > > -----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. > > Reasonable, but most of OTG stuff not belong to phy actully, I see phy-msm- > usb.c directly do hcd add/remove for OTG. > Thanks for your input...but I still strongly believe that controller specific data structure and flags should remain inside the controller drv...to make things more maintainable. I'm adding and removing host controller driver on the basis of the id change value for fsl controller drv... > > To move this to phy driver (just to avoid usage of a single flag) > > won't be a good idea. > > I just saw you simply still use the suspend/resume method, but the > change_hcd_work actually has nothing to do with it now, change_hcd_work() is a work that is scheduled via suspend/resume to remove/add host controller drv... then add a flag to > return for it, also the flag in your usage is not to indicate if the host > capable/enabled otg, but something like > is_host_role_to_be_changed_for_otg(test and then clear). > Actually...you're right in usage of is_host_role_to_be_changed_for_otg(test and then clear)... this could be a better way to do this...however I also use have_hcd flag to remove host drv for the first time. On fsl platforms, gadget is the default mode, and hence, I need to remove host drv as soon as it is loaded. In addition, I was thinking that it might be a good idea to have information inside ehci_fsl struct to know if host drv is loaded currently....may be used for some future implementation... > Meanwhile you add another 2 flags in ehci_fsl(have_hcd, add_hcd) also for > OTG host add/remove, so I am thinking if all those can be simplified. > thanks for your input ...have_hcd helps in determining if the host controller drv is already up...so I need to remove it in order to load gadget driver, and add_hcd simply tells me if I need to bring-up host driver again, and remove gadget driver....these are essential mechanisms for adding/removing host controller drv...again moving them to phy layer is not very convincing.... > > In this case, I'll also have to move some host controller specific > > flags to phy drv which won't be correct. > > > > > > 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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web