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 13:59:53 +0100 [thread overview]
Message-ID: <2d9225dc-161e-4efd-b8f8-0ce33c5c0137@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)
Fold into pmic_glink_gio_write, its only caller
[...]
> +static void pmic_glink_gio_init_work(struct work_struct *work)
> +{
> + struct pmic_glink_gio *pgio = container_of(work, struct pmic_glink_gio, init_work);
> +
> + if (!READ_ONCE(pgio->service_up))
> + return;
We check for this, under a lock, couple lines below
[...]
> + case GIO_OPCODE_ALERT_IND:
no 'default' case below this
Konrad
next prev parent reply other threads:[~2026-12-03 12:59 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 [this message]
2026-12-03 13:01 ` Konrad Dybcio
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=2d9225dc-161e-4efd-b8f8-0ce33c5c0137@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®