From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Fenglin Wu <fenglin.wu@oss.qualcomm.com>,
linux-arm-msm@vger.kernel.org,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: David Collins <david.collins@oss.qualcomm.com>,
Subbaraman Narayanamurthy
<subbaraman.narayanamurthy@oss.qualcomm.com>,
Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>,
linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org,
Tingguo Cheng <tingguo.cheng@oss.qualcomm.com>
Subject: Re: [PATCH v3 2/3] soc: qcom: pmic_glink: Add GIO pmic_glink instance
Date: Thu, 3 Dec 2026 14:01:11 +0100 [thread overview]
Message-ID: <7355bb85-1219-4f0a-89d4-a656e0046ad1@oss.qualcomm.com> (raw)
In-Reply-To: <20261118-gio-framework-rtc-driver-2026-10-12-v3-2-52d78a8f43ee@oss.qualcomm.com>
On 11/19/26 7:55 AM, Fenglin Wu wrote:
> Add a PMIC GLINK transport instance for GIO (General I/O) which is a
> new communication model used by the SoCCP battery-management firmware
> on some of the Qualcomm platforms (e.g. Glymur): it turns the
> GIO_OPCODE_BLOCK_READ/_WRITE requests and the GIO_OPCODE_ALERT_IND
> notification exchanged over the pmic-glink rpmsg channel into a regmap
> and per-alert IRQ delivery. It registers as a "pmic_glink.gio"
> auxiliary driver and bound to a new "gio" auxiliary device that's created
> on GIO-capable platforms.
>
> Also, update the client_mask to additionally request the GIO client on
> Glymur, which is the 1st platform to support GIO. Even through the legacy
> clients (battmgr, ucsi, altmode) can also be supported using the new GIO
> interface, their per-client bits are still kept with the functionalities
> continue to be provided by the existing pmic_glink.* auxiliary devices
> using the pmic_glink interfaces, to minimize the risks associated with
> transitioning all of them to use the new GIO interface.
>
> Co-developed-by: Tingguo Cheng <tingguo.cheng@oss.qualcomm.com>
> Signed-off-by: Tingguo Cheng <tingguo.cheng@oss.qualcomm.com>
> Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
> ---
[...]
> +static int pmic_glink_gio_write_sync(struct pmic_glink_gio *pgio, u32 addr,
> + const u8 *data, size_t length)
> +{
> + struct gio_write_req *req = &pgio->write_req;
> + int ret;
> +
> + if (!data || !length)
> + return -EFAULT;
EINVAL
[...]
> +static int pmic_glink_gio_read(struct pmic_gio_device *gio, unsigned int reg,
> + void *val, size_t val_size)
> +{
> + struct pmic_glink_gio *pgio = gio->drvdata;
> + struct gio_read_req req = {};
> + int ret;
> +
> + if (!val || !val_size)
> + return -EFAULT;
EINVAL
[...]
> +static bool pmic_glink_gio_handle_alert(struct pmic_gio_device *gio,
> + u8 peripheral_id, u8 alert_id,
> + const void *payload)
> +{
> + dev_dbg(gio->dev,
> + "GIO alert: peripheral_id=0x%02x alert_id=0x%02x payload=%*ph\n",
> + peripheral_id, alert_id, PMIC_GIO_ALERT_PAYLOAD_SIZE, payload);
> +
> + return false;
> +}
If this isn't going to be more useful, we can just move this print to
the caller of >handle_alert()
Konrad
next prev parent reply other threads:[~2026-12-03 13:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 6:55 [PATCH v3 0/3] soc: qcom: Add Qualcomm PMIC GIO framework and RTC driver using it Fenglin Wu
2026-11-19 6:55 ` [PATCH v3 1/3] soc: qcom: Add pmic-gio GIO framework driver Fenglin Wu
2026-12-03 12:54 ` Konrad Dybcio
2026-12-03 12:56 ` Konrad Dybcio
2026-12-03 12:57 ` Konrad Dybcio
2026-11-19 6:55 ` [PATCH v3 2/3] soc: qcom: pmic_glink: Add GIO pmic_glink instance Fenglin Wu
2026-12-03 12:59 ` Konrad Dybcio
2026-12-03 13:01 ` Konrad Dybcio [this message]
2026-11-19 6:55 ` [PATCH v3 3/3] rtc: Add Qualcomm GIO RTC driver Fenglin Wu
2026-12-03 13:07 ` Konrad Dybcio
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=7355bb85-1219-4f0a-89d4-a656e0046ad1@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=andersson@kernel.org \
--cc=david.collins@oss.qualcomm.com \
--cc=fenglin.wu@oss.qualcomm.com \
--cc=kamal.wadhwa@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=subbaraman.narayanamurthy@oss.qualcomm.com \
--cc=tingguo.cheng@oss.qualcomm.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®