[PATCH v2 2/7] phy: qcom: qmp-combo: store DP phy power state
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Fri Jun 7 00:32:49 PDT 2024
On Thu, Jun 06, 2024 at 03:29:52PM +0200, Neil Armstrong wrote:
> On 27/05/2024 10:59, Dmitry Baryshkov wrote:
> > On Mon, May 27, 2024 at 10:42:34AM +0200, Neil Armstrong wrote:
> > > Switching the PHY Mode requires the DisplayPort PHY to be powered off,
> > > keep track of the DisplayPort phy power state.
> >
> > How is this different from dp_init_count?
>
> dp_init_count tracks the DP PHY init, while dp_powered_on tracks
> the DP PHY beeing powered on by the DRM DP driver, those are
> not the same state at all.
>
> While testing, I figured that de-initializing the DP PHY while
> is was powered-on by the DRM DP, caused the system to freeze and crash.
>
> SO I've added this to track this state and try to de-init the DP phy
> if still in use.
If you are to send next iteration, please add these bits to the commit
message.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
--
With best wishes
Dmitry
More information about the linux-phy
mailing list