<div dir="ltr">Rahul, ping~~~<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/1 Rahul Sharma <span dir="ltr"><<a href="mailto:r.sh.open@gmail.com" target="_blank">r.sh.open@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Sylwester,<br>
<div><div class="h5"><br>
On Wed, Jul 31, 2013 at 5:41 PM, Sylwester Nawrocki<br>
<<a href="mailto:s.nawrocki@samsung.com">s.nawrocki@samsung.com</a>> wrote:<br>
> Hi Rahul,<br>
><br>
> On 07/31/2013 01:23 PM, Rahul Sharma wrote:<br>
>>>> I think your hdmiphy pmu patch is good enough just if dt binding for pmu<br>
>>>> >> is in hdmiphy binding instead of hdmi binding. So I recommended to make<br>
>>>> >> pmu patch set on the top of independent hdmiphy patch set because with<br>
>>>> >> independent hdmiphy patch set hdmiphy pmu code is moved to hdmiphy driver.<br>
>>>> >><br>
>>>> >> Is it possible that hdmi driver references pmu information from hdmiphy<br>
>>>> >> binding? If that, it seems one possible solution to fix current exynos<br>
>>>> >> hdmi broken.<br>
>>>> >><br>
>>>> >> Thanks and Regards,<br>
>>>> >> - Seung-Woo Kim<br>
>>>> >><br>
>>> ><br>
>>> > I can surely do that but, I am worried about hdmiphy control bus.<br>
>>> > change In 5420. It is changed to platform bus from i2c. Isolating<br>
>>> > hdmiphy from hdmi driver seems the only clean method to handle<br>
>>> > control bus change, changed phy configurations and power control<br>
>>> > through PMU bit.<br>
>>> ><br>
>>> > To fix broken hdmi for 5420, I can again post the "hdmiphy<br>
>>> > separation patches" to place hdmiphy driver in DRM. Later we can<br>
>>> > migrate to Generic Phy Framework.<br>
>>> ><br>
>><br>
>> Hi Seung Woo, Mr. Dae, Sylwester,<br>
>><br>
>> What you say on this? Shall I separate hdmiphy in following manner:<br>
>><br>
>> 1) Move all phy related code to hdmiphy driver i.e. exynos_hdmiphy.c<br>
>> 2) hdmiphy driver exposes power_on/off and set_pixel callbacks for<br>
>> hdmi driver.<br>
>> 3) let hdmi driver behave as phy controller for hdmiphy.<br>
>> 4) move PMU bit control to hdmiphy driver, instead of hdmi driver.<br>
>><br>
>> This way we will be very close to generic phy framework implementation<br>
>> and migration to generic phy framework will be just a cakewalk.<br>
><br>
> This all sound good to me, it seem natural to put the HDMI PHY<br>
> functionality into a separate module. Hardware-wise the PHY is quite<br>
> separate and as experience shows different PHYs can be attached to<br>
> same controller. Well, we have well known that before...<br>
><br>
> I'm not sure what the problem is with adding subsystem specific<br>
> classes of operations (set of callback) to the generic PHY API, until<br>
> that gets sorted out your approach looks good to me.<br>
><br>
> As a side note, originally the V4L2 driver exposed the HDMI PHY<br>
> as struct v4l2_subdev object, have a look at drivers/media/platform/<br>
> s5p-tv/hdmiphy_drv.c. And in case of exynos5 we would just have<br>
> created a platform driver for the HDMI PHY which would expose same<br>
> subdev interface. So something similar as you proposed above.<br>
><br>
<br>
</div></div>Yea, it is very similar to s5p-tv/hdmiphy_drv.c. On top of this, I want<br>
to make hdmiphy platform device as Clock provider for hdmiphy clock,<br>
as you have done for cam_clkout*. Hdmi driver will call set_rate on this<br>
clock.<br>
<br>
I will post patches for the above separation and move hdmiphy to Generic<br>
Phy framework after we get clarity on how to add additional callbacks.<br>
<br>
Thanks for your reply.<br>
<br>
Regards,<br>
Rahul Sharma<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Regards,<br>
> Sylwester<br>
><br>
--<br>
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in<br>
the body of a message to <a href="mailto:majordomo@vger.kernel.org">majordomo@vger.kernel.org</a><br>
More majordomo info at  <a href="http://vger.kernel.org/majordomo-info.html" target="_blank">http://vger.kernel.org/majordomo-info.html</a><br>
</div></div></blockquote></div><br></div>