From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Tikhomirov Subject: RE: [PATCH v4 3/9] phy: Add new Exynos USB PHY driver Date: Wed, 18 Dec 2013 09:54:33 +0900 Message-ID: <001701cefb8b$b78a8ea0$269fabe0$%tikhomirov@samsung.com> References: <1386246579-25141-1-git-send-email-k.debski@samsung.com> <1386246579-25141-4-git-send-email-k.debski@samsung.com> <006a01cef551$7fb4e240$7f1ea6c0$%tikhomirov@samsung.com> <02d201cefb2b$9e04e710$da0eb530$%debski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <02d201cefb2b$9e04e710$da0eb530$%debski@samsung.com> Content-language: en-us Sender: linux-samsung-soc-owner@vger.kernel.org To: 'Kamil Debski' , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Cc: kyungmin.park@samsung.com, kishon@ti.com, 'Tomasz Figa' , 'Sylwester Nawrocki' , 'Marek Szyprowski' , gautam.vivek@samsung.com, mat.krawczuk@gmail.com, yulgon.kim@samsung.com, p.paneri@samsung.com, jg1.han@samsung.com, galak@codeaurora.org, matt.porter@linaro.org List-Id: devicetree@vger.kernel.org Hi Kamil, > Hi Anton, > > > From: Anton Tikhomirov [mailto:av.tikhomirov@samsung.com] > > Sent: Tuesday, December 10, 2013 3:43 AM > > > > Hi Kamil, > > > > Same USB2.0 PHY may be used by several HCDs, for example EHCI and > OHCI. > > Consider the situation, when EHCI stops using the PHY and calls > > power_off, then OHCI becomes non-operational. In other words, PHY > > power_on and power_off calls must be balanced. > > > > Shall we handle it in your driver? (usage count?) > > Please look in the drivers/phy/phy-core.c file. Usage count is handled > there - see phy_power_on and phy_power_off functions. I understand that > after both EHCI and OHCI power on the phy, the usage count is 2. So > powering off one of them (EHCI for instance) the usage count is still > 1, so the OHCI should still work properly. Oops, sorry, missed that. > > [snip] > > Best wishes, > -- > Kamil Debski > Samsung R&D Institute Poland