From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Stephen Boyd <swboyd@chromium.org>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Clark <robdclark@gmail.com>, Rob Herring <robh+dt@kernel.org>,
Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org,
kernel test robot <lkp@intel.com>
Subject: Re: [PATCH v3 06/14] drm/msm/hdmi: drop unused GPIO support
Date: Fri, 10 Jun 2022 23:47:51 +0300 [thread overview]
Message-ID: <492bbe98-e395-3adb-34e3-eadccd59d849@linaro.org> (raw)
In-Reply-To: <CAE-0n51vKmQ683TTnYm8VxSquqYqL2_3=Ku750r--0GV4JcW8Q@mail.gmail.com>
On 10/06/2022 23:46, Stephen Boyd wrote:
> Quoting Dmitry Baryshkov (2022-06-09 05:23:42)
>> The HDMI driver has code to configure extra GPIOs, which predates
>> pinctrl support. Nowadays all platforms should use pinctrl instead.
>> Neither of upstreamed Qualcomm platforms uses these properties, so it's
>> safe to drop them.
>>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>> ---
>
> One question
>
> Reviewed-by: Stephen Boyd <swboyd@chromium.org>
>
>> diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c
>> index 7267167d5ef1..6d79f1b910a5 100644
>> --- a/drivers/gpu/drm/msm/hdmi/hdmi.c
>> +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c
>> @@ -233,6 +233,20 @@ static struct hdmi *msm_hdmi_init(struct platform_device *pdev)
>> hdmi->pwr_clks[i] = clk;
>> }
>>
>> + hdmi->hpd_gpiod = devm_gpiod_get_optional(&pdev->dev, "hpd", GPIOD_IN);
>> + /* This will catch e.g. -EPROBE_DEFER */
>> + if (IS_ERR(hdmi->hpd_gpiod)) {
>> + ret = PTR_ERR(hdmi->hpd_gpiod);
>> + DRM_DEV_ERROR(&pdev->dev, "failed to get hpd gpio: (%d)\n", ret);
>
> Did you want to print an error with eprobe defer in it?
True. We should use dev_err_probe here. I'll fix it in the next revision.
>
>> + goto fail;
>> + }
>> +
>> + if (!hdmi->hpd_gpiod)
>> + DBG("failed to get HPD gpio");
>> +
>> + if (hdmi->hpd_gpiod)
>> + gpiod_set_consumer_name(hdmi->hpd_gpiod, "HDMI_HPD");
>> +
>> pm_runtime_enable(&pdev->dev);
>>
>> hdmi->workq = alloc_ordered_workqueue("msm_hdmi", 0);
--
With best wishes
Dmitry
next prev parent reply other threads:[~2022-06-10 20:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-09 12:23 [PATCH v3 00/14] drm/msm/hdmi: YAML-ify schema and cleanup some platform properties Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 01/14] dt-bindings: display/msm: hdmi: split and convert to yaml Dmitry Baryshkov
2022-06-15 21:18 ` Krzysztof Kozlowski
2022-06-09 12:23 ` [PATCH v3 02/14] dt-bindings: display/msm: hdmi: mark old GPIO properties as deprecated Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 03/14] dt-bindings: display/msm: hdmi: mark hdmi-mux-supply " Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 04/14] ARM: dts: qcom: apq8064-ifc6410: drop hdmi-mux-supply Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 05/14] drm/msm/hdmi: drop the hdmi-mux support Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 06/14] drm/msm/hdmi: drop unused GPIO support Dmitry Baryshkov
2022-06-10 20:46 ` Stephen Boyd
2022-06-10 20:47 ` Dmitry Baryshkov [this message]
2022-06-16 6:37 ` Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 07/14] drm/msm/hdmi: enable core-vcc/core-vdda-supply for 8996 platform Dmitry Baryshkov
2022-06-16 7:44 ` Stephen Boyd
2022-06-09 12:23 ` [PATCH v3 08/14] drm/msm/hdmi: drop empty 'none' regulator lists Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 09/14] drm/msm/hdmi: drop hpd_regs usage on 8x74/8084 Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 10/14] drm/msm/hdmi: merge platform config for 8974/8084/8994/8996 Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 11/14] drm/msm/hdmi: reuse MSM8960's config for MSM8660 Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 12/14] drm/msm/hdmi-phy: populate 8x60 HDMI PHY requirements Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 13/14] ARM: dts: qcom: apq8064: drop phy-names from HDMI device node Dmitry Baryshkov
2022-06-09 12:23 ` [PATCH v3 14/14] arm64: dts: qcom: msm8996: " Dmitry Baryshkov
2022-07-03 3:56 ` (subset) " Bjorn Andersson
2022-07-03 3:56 ` (subset) [PATCH v3 00/14] drm/msm/hdmi: YAML-ify schema and cleanup some platform properties Bjorn Andersson
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=492bbe98-e395-3adb-34e3-eadccd59d849@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=airlied@linux.ie \
--cc=bjorn.andersson@linaro.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=lkp@intel.com \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sean@poorly.run \
--cc=swboyd@chromium.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: 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;
as well as URLs for NNTP newsgroup(s).