From: Praveen Paneri <p.paneri@samsung.com> To: balbi@ti.com Cc: Joonyoung Shim <jy0922.shim@samsung.com>, linux-usb@vger.kernel.org, l.majewski@samsung.com, kgene.kim@samsung.com, heiko@sntech.de, gregkh@linuxfoundation.org, devicetree-discuss@lists.ozlabs.org, broonie@opensource.wolfsonmicro.com, grant.likely@secretlab.ca, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, thomas.abraham@linaro.org, ben-linux@fluff.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs Date: Fri, 10 Aug 2012 11:54:32 +0530 [thread overview] Message-ID: <CAD6zSYMC072bMqMPTmsH4ZzTAd4OmFk5TVpcxAAu82b7J9jNHw@mail.gmail.com> (raw) In-Reply-To: <20120810061616.GC1689@arwen.pp.htv.fi> On Fri, Aug 10, 2012 at 11:46 AM, Felipe Balbi <balbi@ti.com> wrote: > HI, > > On Fri, Aug 10, 2012 at 11:17:29AM +0530, Praveen Paneri wrote: >> On Fri, Aug 10, 2012 at 7:03 AM, Joonyoung Shim <jy0922.shim@samsung.com> wrote: >> > Hi, Praveen. >> > >> > >> > On 08/08/2012 04:40 PM, Praveen Paneri wrote: >> >> >> >> Changes from v2: >> >> Changed the driver filenames to samsung-usbphy >> >> Changed 's3c' to 'samsung' for platform device as well as platform data >> >> Moved platform data structure to a separate file >> >> Rectified coding style related errors >> >> >> >> Changes from v1: >> >> Rebased patches to latest usb-next branch >> >> Changed the name 'sec_usbphy' to 'samsung_usbphy' >> >> >> >> This patch set introduces a phy driver for samsung SoCs. It uses the >> >> existing >> >> transceiver infrastructure to provide phy control functions. Use of this >> >> driver >> >> can be extended for usb host phy as well. >> > >> > >> > How can you support usb host phy? I cannot choose to use which phy when >> > call init or shutdown of phy at current phy framework. > > correct. Curretly that's not supported. We are trying to come up with > proper DeviceTree bindings to allow that. Kishon has been working on > providing devm_usb_get_phy_by_phandle() would should help achieving what > you need. > >> If you are talking about choosing between PHY0 (for device) and PHY1 >> (for host), I think you can make use of the flags available in usb_phy >> to pass that information to phy driver and that can be handled there. > > I rather you didn't do it that way. Those flags are used to pass > features to the PHY. See drivers/usb/otg/ulpi.c, for instance. > >> This is just one way I have successfully implement two different phy >> control. There might be a better way to do that. > > I guess using DT phandles is the way to go here. off-course! That is why I haven't included host support as of now. Praveen > > -- > balbi
WARNING: multiple messages have this Message-ID (diff)
From: p.paneri@samsung.com (Praveen Paneri) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs Date: Fri, 10 Aug 2012 11:54:32 +0530 [thread overview] Message-ID: <CAD6zSYMC072bMqMPTmsH4ZzTAd4OmFk5TVpcxAAu82b7J9jNHw@mail.gmail.com> (raw) In-Reply-To: <20120810061616.GC1689@arwen.pp.htv.fi> On Fri, Aug 10, 2012 at 11:46 AM, Felipe Balbi <balbi@ti.com> wrote: > HI, > > On Fri, Aug 10, 2012 at 11:17:29AM +0530, Praveen Paneri wrote: >> On Fri, Aug 10, 2012 at 7:03 AM, Joonyoung Shim <jy0922.shim@samsung.com> wrote: >> > Hi, Praveen. >> > >> > >> > On 08/08/2012 04:40 PM, Praveen Paneri wrote: >> >> >> >> Changes from v2: >> >> Changed the driver filenames to samsung-usbphy >> >> Changed 's3c' to 'samsung' for platform device as well as platform data >> >> Moved platform data structure to a separate file >> >> Rectified coding style related errors >> >> >> >> Changes from v1: >> >> Rebased patches to latest usb-next branch >> >> Changed the name 'sec_usbphy' to 'samsung_usbphy' >> >> >> >> This patch set introduces a phy driver for samsung SoCs. It uses the >> >> existing >> >> transceiver infrastructure to provide phy control functions. Use of this >> >> driver >> >> can be extended for usb host phy as well. >> > >> > >> > How can you support usb host phy? I cannot choose to use which phy when >> > call init or shutdown of phy at current phy framework. > > correct. Curretly that's not supported. We are trying to come up with > proper DeviceTree bindings to allow that. Kishon has been working on > providing devm_usb_get_phy_by_phandle() would should help achieving what > you need. > >> If you are talking about choosing between PHY0 (for device) and PHY1 >> (for host), I think you can make use of the flags available in usb_phy >> to pass that information to phy driver and that can be handled there. > > I rather you didn't do it that way. Those flags are used to pass > features to the PHY. See drivers/usb/otg/ulpi.c, for instance. > >> This is just one way I have successfully implement two different phy >> control. There might be a better way to do that. > > I guess using DT phandles is the way to go here. off-course! That is why I haven't included host support as of now. Praveen > > -- > balbi
next prev parent reply other threads:[~2012-08-10 6:24 UTC|newest] Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-08-08 7:40 [PATCH v3 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs Praveen Paneri 2012-08-08 7:40 ` Praveen Paneri [not found] ` <1344411661-17821-1-git-send-email-p.paneri-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2012-08-08 7:40 ` [PATCH v3 1/5] usb: phy: samsung: Introducing usb phy driver for hsotg Praveen Paneri 2012-08-08 7:40 ` Praveen Paneri 2012-08-09 9:28 ` Felipe Balbi 2012-08-09 9:28 ` Felipe Balbi [not found] ` <20120809092853.GJ12174-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org> 2012-08-09 9:56 ` Praveen Paneri 2012-08-09 9:56 ` Praveen Paneri 2012-08-08 7:40 ` [PATCH v3 2/5] usb: s3c-hsotg: Adding phy driver support Praveen Paneri 2012-08-08 7:40 ` Praveen Paneri 2012-08-09 9:29 ` Felipe Balbi 2012-08-09 9:29 ` Felipe Balbi 2012-08-09 10:00 ` Praveen Paneri 2012-08-09 10:00 ` Praveen Paneri 2012-08-08 7:40 ` [PATCH v3 3/5] ARM: S3C64XX: Removing old phy setup code Praveen Paneri 2012-08-08 7:40 ` Praveen Paneri 2012-08-08 7:41 ` [PATCH v3 4/5] ARM: S3C64XX: Enabling samsung-usbphy driver Praveen Paneri 2012-08-08 7:41 ` Praveen Paneri 2012-08-10 6:54 ` Anton Tikhomirov 2012-08-10 6:54 ` Anton Tikhomirov [not found] ` <004301cd76c4$f63d4310$e2b7c930$%tikhomirov-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2012-08-10 7:44 ` Praveen Paneri 2012-08-10 7:44 ` Praveen Paneri 2012-08-08 7:41 ` [PATCH v3 5/5] ARM: Exynos4210: " Praveen Paneri 2012-08-08 7:41 ` Praveen Paneri 2012-08-10 1:33 ` [PATCH v3 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs Joonyoung Shim 2012-08-10 1:33 ` Joonyoung Shim 2012-08-10 5:47 ` Praveen Paneri 2012-08-10 5:47 ` Praveen Paneri [not found] ` <CAD6zSYP33PDrXwifQM=7q+Esk1X7m5+DNG_=A2a-qTENk4zq8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2012-08-10 6:16 ` Felipe Balbi 2012-08-10 6:16 ` Felipe Balbi 2012-08-10 6:24 ` Praveen Paneri [this message] 2012-08-10 6:24 ` Praveen Paneri
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=CAD6zSYMC072bMqMPTmsH4ZzTAd4OmFk5TVpcxAAu82b7J9jNHw@mail.gmail.com \ --to=p.paneri@samsung.com \ --cc=balbi@ti.com \ --cc=ben-linux@fluff.org \ --cc=broonie@opensource.wolfsonmicro.com \ --cc=devicetree-discuss@lists.ozlabs.org \ --cc=grant.likely@secretlab.ca \ --cc=gregkh@linuxfoundation.org \ --cc=heiko@sntech.de \ --cc=jy0922.shim@samsung.com \ --cc=kgene.kim@samsung.com \ --cc=kyungmin.park@samsung.com \ --cc=l.majewski@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=thomas.abraham@linaro.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.