mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Sven Peter" <sven@svenpeter.dev>
To: "Sebastian Reichel" <sebastian.reichel@collabora.com>
Cc: "Janne Grunau" <j@jannau.net>,
	"Alyssa Rosenzweig" <alyssa@rosenzweig.io>,
	"Neal Gompa" <neal@gompa.dev>, "Hector Martin" <marcan@marcan.st>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Bartosz Golaszewski" <brgl@bgdev.pl>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Lee Jones" <lee@kernel.org>, "Marc Zyngier" <maz@kernel.org>,
	"Russell King" <rmk+kernel@armlinux.org.uk>,
	asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
	"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH v6 07/10] power: reset: macsmc-reboot: Add driver for rebooting via Apple SMC
Date: Thu, 22 May 2025 18:14:56 +0200	[thread overview]
Message-ID: <706858ca-7ebf-4419-a096-3907aab923bf@app.fastmail.com> (raw)
In-Reply-To: <gk656zq44i6ls6bbcb6qpd42typzkw3hqbft6b6rvfaw5aocsd@2fsiokbcnbtf>

Hi Sebastian,

On Thu, May 22, 2025, at 15:06, Sebastian Reichel wrote:
> Hi,
>
> On Thu, May 15, 2025 at 06:21:19AM +0000, Sven Peter via B4 Relay wrote:
>> From: Hector Martin <marcan@marcan.st>
>> 
>> This driver implements the reboot/shutdown support exposed by the SMC
>> on Apple Silicon machines, such as Apple M1 Macs.
>> 

[...]

>> +
>> +static int macsmc_reboot_probe(struct platform_device *pdev)
>> +{
>> +	struct apple_smc *smc = dev_get_drvdata(pdev->dev.parent);
>> +	struct macsmc_reboot *reboot;
>> +	int ret, i;
>> +
>> +	/* Ignore devices without this functionality */
>> +	if (!apple_smc_key_exists(smc, SMC_KEY(MBSE)))
>> +		return -ENODEV;
>
> Is that a leftover? I would expect that you do not have the
> 'apple,smc-reboot' sub-device described in DT for such a case.

Yup, that's another leftover, will remove it for v7 as well.

>
> Otherwise
>
> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>


Thanks for the review!


Sven

  reply	other threads:[~2025-05-22 16:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-15  6:21 [PATCH v6 00/10] Apple Mac System Management Controller Sven Peter via B4 Relay
2025-05-15  6:21 ` [PATCH v6 01/10] dt-bindings: gpio: Add Apple Mac SMC GPIO block Sven Peter via B4 Relay
2025-05-15  6:21 ` [PATCH v6 02/10] dt-bindings: power: reboot: Add Apple Mac SMC Reboot Controller Sven Peter via B4 Relay
2025-05-15  6:21 ` [PATCH v6 03/10] dt-bindings: mfd: Add Apple Mac System Management Controller Sven Peter via B4 Relay
2025-05-15  6:21 ` [PATCH v6 04/10] soc: apple: rtkit: Make shmem_destroy optional Sven Peter via B4 Relay
2025-05-15  6:21 ` [PATCH v6 05/10] mfd: Add Apple Silicon System Management Controller Sven Peter via B4 Relay
2025-05-22  8:59   ` Lee Jones
2025-05-22 10:35     ` Sven Peter
2025-05-15  6:21 ` [PATCH v6 06/10] gpio: Add new gpio-macsmc driver for Apple Macs Sven Peter via B4 Relay
2025-05-15  6:21 ` [PATCH v6 07/10] power: reset: macsmc-reboot: Add driver for rebooting via Apple SMC Sven Peter via B4 Relay
2025-05-22 13:06   ` Sebastian Reichel
2025-05-22 16:14     ` Sven Peter [this message]
2025-05-15  6:21 ` [PATCH v6 08/10] arm64: dts: apple: t8103: Add SMC node Sven Peter via B4 Relay
2025-05-15  6:21 ` [PATCH v6 09/10] arm64: dts: apple: t8112: " Sven Peter via B4 Relay
2025-05-15  6:21 ` [PATCH v6 10/10] arm64: dts: apple: t600x: " Sven Peter via B4 Relay

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=706858ca-7ebf-4419-a096-3907aab923bf@app.fastmail.com \
    --to=sven@svenpeter.dev \
    --cc=alyssa@rosenzweig.io \
    --cc=asahi@lists.linux.dev \
    --cc=brgl@bgdev.pl \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=j@jannau.net \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=marcan@marcan.st \
    --cc=maz@kernel.org \
    --cc=neal@gompa.dev \
    --cc=rmk+kernel@armlinux.org.uk \
    --cc=robh@kernel.org \
    --cc=sebastian.reichel@collabora.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

all inboxes | Powered by JetHome®