From: Jure Repinc <jlp@holodeck1.com>
To: Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Troy Mitchell <troymitchell988@gmail.com>,
linux-riscv@lists.infradead.org
Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Troy Mitchell <TroyMitchell988@gmail.com>,
Troy Mitchell <troymitchell988@gmail.com>
Subject: Re: [PATCH 2/2] mfd: add new driver for P1 PMIC from SpacemiT
Date: Tue, 31 Dec 2024 20:42:56 +0100 [thread overview]
Message-ID: <3082943.DJkKcVGEfx@excalibur> (raw)
In-Reply-To: <20241230-k1-p1-v1-2-aa4e02b9f993@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 956 bytes --]
On 30/12/2024 11:02, Troy Mitchell wrote:
> +static int spacemit_pmic_shutdown(struct sys_off_data *data)
> +{
> + int ret;
> + struct spacemit_pmic *pmic = data->cb_data;
> +
> + ret = regmap_update_bits(pmic->regmap,
> + pmic->match_data->shutdown.reg,
> + pmic->match_data->shutdown.bit,
> + pmic->match_data->shutdown.bit);
> + if (ret)
> + dev_err(data->dev, "failed to reboot device!");
reboot -> shutdown
> + if (match_data->shutdown.reg) {
> + ret = devm_register_sys_off_handler(&client->dev,
> +
SYS_OFF_MODE_POWER_OFF_PREPARE,
> + SYS_OFF_PRIO_HIGH,
> +
&spacemit_pmic_shutdown,
> + pmic);
> + if (ret)
> + return dev_err_probe(&client->dev,
> + ret,
> + "failed to register restart
handler");
restart -> shutdown
Have a great time,
Jure Repinc
--
Jabber/XMPP: JLP@jabber.org
Matrix: @jlp:matrix.org
Mastodon/ActivityPub: @JRepin@mstdn.io
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4066 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Jure Repinc <jlp@holodeck1.com>
To: Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Troy Mitchell <troymitchell988@gmail.com>,
linux-riscv@lists.infradead.org
Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Troy Mitchell <TroyMitchell988@gmail.com>,
Troy Mitchell <troymitchell988@gmail.com>
Subject: Re: [PATCH 2/2] mfd: add new driver for P1 PMIC from SpacemiT
Date: Tue, 31 Dec 2024 20:42:56 +0100 [thread overview]
Message-ID: <3082943.DJkKcVGEfx@excalibur> (raw)
In-Reply-To: <20241230-k1-p1-v1-2-aa4e02b9f993@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 956 bytes --]
On 30/12/2024 11:02, Troy Mitchell wrote:
> +static int spacemit_pmic_shutdown(struct sys_off_data *data)
> +{
> + int ret;
> + struct spacemit_pmic *pmic = data->cb_data;
> +
> + ret = regmap_update_bits(pmic->regmap,
> + pmic->match_data->shutdown.reg,
> + pmic->match_data->shutdown.bit,
> + pmic->match_data->shutdown.bit);
> + if (ret)
> + dev_err(data->dev, "failed to reboot device!");
reboot -> shutdown
> + if (match_data->shutdown.reg) {
> + ret = devm_register_sys_off_handler(&client->dev,
> +
SYS_OFF_MODE_POWER_OFF_PREPARE,
> + SYS_OFF_PRIO_HIGH,
> +
&spacemit_pmic_shutdown,
> + pmic);
> + if (ret)
> + return dev_err_probe(&client->dev,
> + ret,
> + "failed to register restart
handler");
restart -> shutdown
Have a great time,
Jure Repinc
--
Jabber/XMPP: JLP@jabber.org
Matrix: @jlp:matrix.org
Mastodon/ActivityPub: @JRepin@mstdn.io
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4066 bytes --]
next prev parent reply other threads:[~2024-12-31 19:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 10:02 [PATCH 0/2] Add support for the P1 PMIC from SpacemiT Troy Mitchell
2024-12-30 10:02 ` Troy Mitchell
2024-12-30 10:02 ` [PATCH 1/2] dt-bindings: mfd: add support for P1 " Troy Mitchell
2024-12-30 10:02 ` Troy Mitchell
2024-12-30 11:22 ` Rob Herring (Arm)
2024-12-30 11:22 ` Rob Herring (Arm)
2024-12-30 11:27 ` Krzysztof Kozlowski
2024-12-30 11:27 ` Krzysztof Kozlowski
2024-12-30 10:02 ` [PATCH 2/2] mfd: add new driver for P1 PMIC " Troy Mitchell
2024-12-30 10:02 ` Troy Mitchell
2024-12-30 10:15 ` Troy Mitchell
2024-12-30 10:15 ` Troy Mitchell
2024-12-30 11:33 ` Krzysztof Kozlowski
2024-12-30 11:33 ` Krzysztof Kozlowski
2024-12-31 7:05 ` Troy Mitchell
2024-12-31 7:05 ` Troy Mitchell
2024-12-31 19:42 ` Jure Repinc [this message]
2024-12-31 19:42 ` Jure Repinc
2025-01-06 15:43 ` Lee Jones
2025-01-06 15:43 ` Lee Jones
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=3082943.DJkKcVGEfx@excalibur \
--to=jlp@holodeck1.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=robh@kernel.org \
--cc=troymitchell988@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.