mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil Armstrong <neil.armstrong@linaro.org>
To: Doug Anderson <dianders@chromium.org>,
	Jessica Zhang <quic_jesszhan@quicinc.com>
Cc: Sam Ravnborg <sam@ravnborg.org>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/panel: atna33xc20: Fix unbalanced regulator in the case HPD doesn't assert
Date: Wed, 20 Mar 2024 17:09:44 +0100	[thread overview]
Message-ID: <dbdc34a0-bead-491e-a0fb-2f74416b7366@linaro.org> (raw)
In-Reply-To: <CAD=FV=WE4Y1Nk8UL+z7fLsU=zr-Y_2vQe0xuBSbg8_1CLRQjYQ@mail.gmail.com>

On 20/03/2024 16:33, Doug Anderson wrote:
> Hi,
> 
> On Thu, Mar 14, 2024 at 3:32 PM Jessica Zhang <quic_jesszhan@quicinc.com> wrote:
>>
>> On 3/13/2024 2:12 PM, Douglas Anderson via B4 Relay wrote:
>>> From: Douglas Anderson <dianders@chromium.org>
>>>
>>> When the atna33xc20 driver was first written the resume code never
>>> returned an error. If there was a problem waiting for HPD it just
>>> printed a warning and moved on. This changed in response to review
>>> feedback [1] on a future patch but I accidentally didn't account for
>>> rolling back the regulator enable in the error cases. Do so now.
>>>
>>> [1] https://lore.kernel.org/all/5f3cf3a6-1cc2-63e4-f76b-4ee686764705@linaro.org/
>>>
>>> Fixes: 3b5765df375c ("drm/panel: atna33xc20: Take advantage of wait_hpd_asserted() in struct drm_dp_aux")
>>> Signed-off-by: Douglas Anderson <dianders@chromium.org>
>>> ---
>>>    drivers/gpu/drm/panel/panel-samsung-atna33xc20.c | 22 +++++++++++++---------
>>>    1 file changed, 13 insertions(+), 9 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c b/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c
>>> index 76c2a8f6718c..9c336c71562b 100644
>>> --- a/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c
>>> +++ b/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c
>>> @@ -109,19 +109,17 @@ static int atana33xc20_resume(struct device *dev)
>>>                if (hpd_asserted < 0)
>>>                        ret = hpd_asserted;
>>>
>>> -             if (ret)
>>> +             if (ret) {
>>>                        dev_warn(dev, "Error waiting for HPD GPIO: %d\n", ret);
>>> -
>>> -             return ret;
>>> -     }
>>> -
>>> -     if (p->aux->wait_hpd_asserted) {
>>> +                     goto error;
>>> +             }
>>> +     } else if (p->aux->wait_hpd_asserted) {
>>
>> Hi Doug,
>>
>> Acked-by: Jessica Zhang <quic_jesszhan@quicinc.com>
> 
> Pushed with Jessica's Ack to drm-misc-next.
> 
> 5e842d55bad7 drm/panel: atna33xc20: Fix unbalanced regulator in the
> case HPD doesn't assert
> 
> I chose drm-misc-next instead of drm-misc-fixes because this isn't
> super urgent and the patch would have to be modified on drm-misc-fixes
> because we don't have commit 8df1ddb5bf11 ("drm/dp: Don't attempt AUX
> transfers when eDP panels are not powered") there.

Thx I wasn't really sure where to push this so I waited v6.9-rc1 to decide!

      reply	other threads:[~2024-03-20 16:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-13 21:12 Douglas Anderson via B4 Relay
2024-03-14 22:32 ` Jessica Zhang
2024-03-20 15:33   ` Doug Anderson
2024-03-20 16:09     ` Neil Armstrong [this message]

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=dbdc34a0-bead-491e-a0fb-2f74416b7366@linaro.org \
    --to=neil.armstrong@linaro.org \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dianders@chromium.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=quic_jesszhan@quicinc.com \
    --cc=sam@ravnborg.org \
    --cc=tzimmermann@suse.de \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®