From: Krzysztof Kozlowski <krzk@kernel.org>
To: Nick Chan <towinchenmi@gmail.com>,
fnkl.kernel@gmail.com, Hector Martin <marcan@marcan.st>,
Sven Peter <sven@svenpeter.dev>,
Alyssa Rosenzweig <alyssa@rosenzweig.io>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jessica Zhang <quic_jesszhan@quicinc.com>,
asahi@lists.linux.dev
Cc: linux-arm-kernel@lists.infradead.org,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/5] gpu: drm: adp: Add a backlight driver for the Summit LCD
Date: Mon, 25 Nov 2024 16:06:54 +0100 [thread overview]
Message-ID: <e647e8c7-6df9-44f5-abcc-34db74b8e266@kernel.org> (raw)
In-Reply-To: <3a6fb7fd-eb3d-428b-a37c-f04d81e7fbd0@gmail.com>
On 25/11/2024 16:03, Nick Chan wrote:
>>> +static int summit_probe(struct mipi_dsi_device *dsi)
>>> +{
>>> + struct backlight_properties props = { 0 };
>>> + struct device *dev = &dsi->dev;
>>> + struct summit_data *panel;
>>> +
>>> + panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL);
>>> + if (!panel)
>>> + return -ENOMEM;
>>> +
>>> + mipi_dsi_set_drvdata(dsi, panel);
>>> + panel->dsi = dsi;
>>> +
>>> + int ret = device_property_read_u32(dev, "max-brightness", &props.max_brightness);
>> That's an undocumented property, which suggests you did not test your DTS.
>
> Actually, testing the DTS would not have caught this issue. For more
> context,
If you mean that property is not in your DTS, then right, it would not
be caught. But otherwise it would.
Anyway, I pointed out testing as helping tool for your development, just
like building with clang W=1 will spare you some review comments or bugs.
> all summit panels found in touch bar have a max brightness of 255, but the
> summit panel in Apple A11 devices like the iPhone X is latter found to have
> a max brightness of 2047.
>
> However, A11 cannot be properly supported right now due to not having a
> driver
> for the DART IOMMU.
>
> In the meantime, max-brightness could documented and be made required,
> and the
> default 255 brightness could be removed.
BTW, max-brightness is a property of backlight, not panel, I think.
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-11-25 15:08 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-24 22:29 [PATCH 0/5] Driver for pre-DCP apple display controller Sasha Finkelstein via B4 Relay
2024-11-24 22:29 ` [PATCH 1/5] dt-bindgins: display: Add Apple pre-DCP display controller bindings Sasha Finkelstein via B4 Relay
2024-11-25 2:06 ` Rob Herring (Arm)
2024-11-25 7:45 ` Krzysztof Kozlowski
2024-11-25 14:14 ` Hector Martin
2024-11-25 14:53 ` Krzysztof Kozlowski
2024-11-25 15:29 ` Hector Martin
2024-11-24 22:29 ` [PATCH 2/5] gpu: drm: adp: Add Apple Display Pipe driver Sasha Finkelstein via B4 Relay
2024-11-25 8:50 ` Neil Armstrong
2024-11-25 11:24 ` Sasha Finkelstein
2024-11-25 12:57 ` neil.armstrong
2024-11-25 13:14 ` Sasha Finkelstein
2024-11-25 13:16 ` neil.armstrong
2024-11-25 14:24 ` Hector Martin
2024-11-25 15:28 ` Maxime Ripard
2024-11-25 15:55 ` Hector Martin
2024-11-25 15:37 ` neil.armstrong
2024-11-25 9:04 ` Jani Nikula
2024-11-25 10:59 ` Alyssa Ross
2024-11-24 22:29 ` [PATCH 3/5] gpu: drm: adp: Add a backlight driver for the Summit LCD Sasha Finkelstein via B4 Relay
2024-11-25 8:45 ` Neil Armstrong
2024-11-25 11:28 ` Sasha Finkelstein
2024-11-25 14:49 ` Krzysztof Kozlowski
2024-11-25 15:03 ` Nick Chan
2024-11-25 15:06 ` Krzysztof Kozlowski [this message]
2024-11-26 16:34 ` Sasha Finkelstein
2024-11-26 16:52 ` Krzysztof Kozlowski
2024-11-24 22:29 ` [PATCH 4/5] arm64: dts: apple: Add touchbar screen nodes Sasha Finkelstein via B4 Relay
2024-11-25 8:39 ` Nick Chan
2024-11-25 8:43 ` Nick Chan
2024-11-24 22:29 ` [PATCH 5/5] MAINTAINERS: Add entries for touchbar display driver Sasha Finkelstein via B4 Relay
2024-11-25 9:24 ` Nick Chan
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=e647e8c7-6df9-44f5-abcc-34db74b8e266@kernel.org \
--to=krzk@kernel.org \
--cc=airlied@gmail.com \
--cc=alyssa@rosenzweig.io \
--cc=asahi@lists.linux.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=fnkl.kernel@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marcan@marcan.st \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_jesszhan@quicinc.com \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=sven@svenpeter.dev \
--cc=towinchenmi@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).