From: neil.armstrong@linaro.org
To: Alexandre Mergnat <amergnat@baylibre.com>
Cc: "Daniel Vetter" <daniel@ffwll.ch>, "CK Hu" <ck.hu@mediatek.com>,
"Jitao Shi" <jitao.shi@mediatek.com>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Sam Ravnborg" <sam@ravnborg.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Chun-Kuang Hu" <chunkuang.hu@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"David Airlie" <airlied@gmail.com>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Xinlei Lee" <xinlei.lee@mediatek.com>,
"Guillaume La Roque" <glaroque@baylibre.com>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
dri-devel@lists.freedesktop.org,
"Fabien Parent" <fparent@baylibre.com>,
linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 21/21] panel: startek-kd070fhfid015: add support of this display
Date: Wed, 15 Mar 2023 18:12:31 +0100 [thread overview]
Message-ID: <39fccf61-2e48-abcf-9fd9-7bcc6ea32774@linaro.org> (raw)
In-Reply-To: <CAFGrd9pQJWYpdruUvbZNcQRZk5viyOAUCDpJcu5anA13E26Unw@mail.gmail.com>
Hi,
On 15/03/2023 16:59, Alexandre Mergnat wrote:
> Hi Neil,
>
> Le jeu. 9 mars 2023 à 15:51, Neil Armstrong
> <neil.armstrong@linaro.org> a écrit :
>>> +
>>> +#include <drm/drm_crtc.h>
>>
>> Is this include needed ?
>
> Seems not, I remove it.
>
>>> + struct gpio_desc *enable_gpio;
>>> + struct gpio_desc *reset_gpio;
>>> + struct gpio_desc *dcdc_en_gpio;
>>
>> Isn't this "DCDC" a regulator ???
>
> According to the panel datasheet, this is an input signal needed
> passing through TFT connector (PIN30):
> "Power IC supply enable, High active"
Ack, perhaps the name isn't the right one, or specify something like panel-dcdc.
>
>>> + /* Interface setting, video mode */
>>> + ret = mipi_dsi_generic_write(dsi,
>>> + (u8[]){DSI_REG_IS, 0x14, 0x08, 0x00, 0x22, 0x00}, 6);
>>> + if (ret < 0) {
>>> + dev_err(dev, "failed to set display interface setting: %d\n",
>>> + ret);
>>> + return ret;
>>> + }
>>
>> Use mipi_dsi_generic_write_seq(dsi, DSI_REG_IS, 0x14, 0x08, 0x00, 0x22, 0x00); instead,
>> it's simpler and doesn't need explicit return check.
>
> "mipi_dsi_generic_write_seq" doesn't exist but I will add it below
> "mipi_dsi_dcs_write_seq" in drm_mipi_dsi.h
It is now https://github.com/torvalds/linux/blob/master/include/drm/drm_mipi_dsi.h#L302 since a9015ce59320
> I must keep the return check to jump out of "stk_panel_init" if
> something goes wrong, but I can drop the error print.
The mipi_dsi_generic_write_seq & mipi_dsi_dcs_write_seq macros does the return check for free.
>
>>> +static int stk_panel_enable(struct drm_panel *panel)
>>> +{
>>> + struct stk_panel *stk = to_stk_panel(panel);
>>> +
>>> + if (stk->enabled)
>>> + return 0;
>>> +
>>> + backlight_enable(stk->backlight);
>>> +
>>> + stk->enabled = true;
>>> +
>>> + return 0;
>>> +}
>>
>> Is this really needed ? the backlight core will enable it automatically.
>
> Ok, it's managed by drm_panel.c driver.
> Then I can also remove stuff from stk_panel_disable.
>
>
> Regards,
> Alex
next prev parent reply other threads:[~2023-03-15 17:12 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230220-display-v1-0-45cbc68e188b@baylibre.com>
[not found] ` <20230220-display-v1-21-45cbc68e188b@baylibre.com>
2023-03-09 14:51 ` [PATCH 21/21] panel: startek-kd070fhfid015: add support of this display Neil Armstrong
2023-03-15 15:59 ` Alexandre Mergnat
2023-03-15 17:12 ` neil.armstrong [this message]
[not found] ` <20230220-display-v1-2-45cbc68e188b@baylibre.com>
2023-03-10 8:29 ` [PATCH 02/21] dt-bindings: display: mediatek: ccorr: add binding for MT8365 SoC Krzysztof Kozlowski
2023-03-13 14:54 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-3-45cbc68e188b@baylibre.com>
2023-03-10 8:35 ` [PATCH 03/21] dt-bindings: display: mediatek: color: " Krzysztof Kozlowski
2023-03-13 14:58 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-4-45cbc68e188b@baylibre.com>
2023-03-10 8:35 ` [PATCH 04/21] dt-bindings: display: mediatek: dither: " Krzysztof Kozlowski
2023-03-13 14:59 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-7-45cbc68e188b@baylibre.com>
2023-03-10 8:38 ` [PATCH 07/21] dt-bindings: display: mediatek: dpi: add binding for MT8365 Krzysztof Kozlowski
2023-03-13 15:17 ` Chun-Kuang Hu
2023-03-15 9:26 ` Alexandre Mergnat
[not found] ` <20230220-display-v1-8-45cbc68e188b@baylibre.com>
2023-03-10 8:38 ` [PATCH 08/21] dt-bindings: display: mediatek: gamma: add binding for MT8365 SoC Krzysztof Kozlowski
2023-03-13 15:07 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-9-45cbc68e188b@baylibre.com>
2023-03-10 8:38 ` [PATCH 09/21] dt-bindings: display: mediatek: ovl: " Krzysztof Kozlowski
2023-03-13 15:08 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-13-45cbc68e188b@baylibre.com>
2023-03-10 8:38 ` [PATCH 13/21] dt-bindings: pwm: add binding for mt8365 SoC Krzysztof Kozlowski
[not found] ` <20230220-display-v1-5-45cbc68e188b@baylibre.com>
2023-03-10 8:35 ` [PATCH 05/21] dt-bindings: display: mediatek: dsi: add binding for MT8365 SoC Krzysztof Kozlowski
2023-03-13 15:00 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-1-45cbc68e188b@baylibre.com>
2023-03-10 8:41 ` [PATCH 01/21] dt-bindings: display: mediatek: aal: " Krzysztof Kozlowski
2023-03-13 15:02 ` Chun-Kuang Hu
2023-03-31 14:55 ` Matthias Brugger
2023-04-03 3:25 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-10-45cbc68e188b@baylibre.com>
2023-03-10 8:38 ` [PATCH 10/21] dt-bindings: display: mediatek: rdma: " Krzysztof Kozlowski
2023-03-13 15:09 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-19-45cbc68e188b@baylibre.com>
2023-03-13 15:21 ` [PATCH 19/21] drm/mediatek: dpi: add support for dpi clock Chun-Kuang Hu
2023-03-15 9:35 ` Alexandre Mergnat
2023-03-15 14:17 ` Chun-Kuang Hu
[not found] ` <20230220-display-v1-15-45cbc68e188b@baylibre.com>
2023-03-10 8:39 ` [PATCH 15/21] dt-bindings: soc: mediatek: add display mutex for MT8365 SoC Krzysztof Kozlowski
2023-03-15 8:01 ` Alexandre Mergnat
2023-03-15 8:17 ` Alexandre Mergnat
2023-03-15 13:17 ` Krzysztof Kozlowski
2023-03-15 13:22 ` Krzysztof Kozlowski
2023-03-31 17:51 ` Matthias Brugger
[not found] ` <20230220-display-v1-18-45cbc68e188b@baylibre.com>
2023-03-27 15:37 ` [PATCH 18/21] drm/mediatek: dsi: Improves the DSI lane setup robustness Chun-Kuang Hu
[not found] ` <20230220-display-v1-14-45cbc68e188b@baylibre.com>
2023-03-31 14:42 ` [PATCH 14/21] dt-bindings: soc: mediatek: specify which compatible requires clocks property Matthias Brugger
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=39fccf61-2e48-abcf-9fd9-7bcc6ea32774@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=airlied@gmail.com \
--cc=amergnat@baylibre.com \
--cc=chunkuang.hu@kernel.org \
--cc=ck.hu@mediatek.com \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=fparent@baylibre.com \
--cc=glaroque@baylibre.com \
--cc=jitao.shi@mediatek.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=xinlei.lee@mediatek.com \
/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).