From: Maximilian Luz <luzmaximilian@gmail.com>
To: "Konrad Dybcio" <konradybcio@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Len Brown" <lenb@kernel.org>,
"Hans de Goede" <hdegoede@redhat.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: Marijn Suijten <marijn.suijten@somainline.org>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, linux-acpi@vger.kernel.org,
platform-driver-x86@vger.kernel.org,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <quic_kdybcio@quicinc.com>
Subject: Re: [PATCH v2 3/3] platform/surface: Add OF support
Date: Sat, 10 Aug 2024 03:47:54 +0200 [thread overview]
Message-ID: <c4b23a43-7ff6-450a-bdc8-3348cc935145@gmail.com> (raw)
In-Reply-To: <20240810-topic-sam-v2-3-8a8eb368a4f0@quicinc.com>
On 8/10/24 3:28 AM, Konrad Dybcio wrote:
> From: Konrad Dybcio <quic_kdybcio@quicinc.com>
[...]
> @@ -299,7 +302,7 @@ static const struct attribute_group ssam_sam_group = {
> };
>
>
> -/* -- ACPI based device setup. ---------------------------------------------- */
> +/* -- Serial device setup. ------------------------------------------------- */
One more :)
[...]
> diff --git a/drivers/platform/surface/surface3_power.c b/drivers/platform/surface/surface3_power.c
> index 4c0f92562a79..7eab6a124712 100644
> --- a/drivers/platform/surface/surface3_power.c
> +++ b/drivers/platform/surface/surface3_power.c
> @@ -478,7 +478,9 @@ static int mshw0011_install_space_handler(struct i2c_client *client)
> return -ENOMEM;
> }
>
> - acpi_dev_clear_dependencies(adev);
> + if (adev)
> + acpi_dev_clear_dependencies(adev);
> +
> return 0;
> }
>
> diff --git a/drivers/platform/surface/surface_acpi_notify.c b/drivers/platform/surface/surface_acpi_notify.c
> index 20f3870915d2..b0d43e639db2 100644
> --- a/drivers/platform/surface/surface_acpi_notify.c
> +++ b/drivers/platform/surface/surface_acpi_notify.c
> @@ -815,7 +815,9 @@ static int san_probe(struct platform_device *pdev)
> if (status)
> goto err_install_dev;
>
> - acpi_dev_clear_dependencies(san);
> + if (san)
> + acpi_dev_clear_dependencies(san);
> +
> return 0;
>
> err_install_dev:
Are these two changes required? Surface 3 power and SAN should AFAIK be
fairly "legacy" and ACPI-only drivers, which I don't expect to be used
on any of the new ARM devices (apart from there probably being other
changes required to make them work with DT).
I think with that addressed, it should be fine. I'll give it a spin
tomorrow and send in my r-b and t-b (assuming everything goes well).
Best regards,
Max
next prev parent reply other threads:[~2024-08-10 1:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-10 1:28 [PATCH v2 0/3] OF support for Surface System Aggregator Module Konrad Dybcio
2024-08-10 1:28 ` [PATCH v2 1/3] dt-bindings: serial: Allow embedded-controller as child node Konrad Dybcio
2024-08-11 13:33 ` Krzysztof Kozlowski
2024-08-10 1:28 ` [PATCH v2 2/3] dt-bindings: platform: Add Surface System Aggregator Module Konrad Dybcio
2024-08-11 14:28 ` Krzysztof Kozlowski
2024-08-13 14:27 ` Konrad Dybcio
2024-08-14 6:16 ` Krzysztof Kozlowski
2024-08-14 10:25 ` Konrad Dybcio
2024-08-10 1:28 ` [PATCH v2 3/3] platform/surface: Add OF support Konrad Dybcio
2024-08-10 1:47 ` Maximilian Luz [this message]
2024-08-10 11:21 ` Konrad Dybcio
2024-08-10 13:00 ` Maximilian Luz
2024-08-11 0:26 ` Maximilian Luz
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=c4b23a43-7ff6-450a-bdc8-3348cc935145@gmail.com \
--to=luzmaximilian@gmail.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jirislaby@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=quic_kdybcio@quicinc.com \
--cc=rafael@kernel.org \
--cc=robh@kernel.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