From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: david@ixit.cz
Cc: Abel Vesa <abelvesa@kernel.org>,
Alexey Minnekhanov <alexeymin@minlexx.ru>,
Bjorn Andersson <andersson@kernel.org>,
Casey Connolly <casey.connolly@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Markus Rathgeb <maggu2810@mailbox.org>,
Rob Herring <robh@kernel.org>, Robin Snyders <robin@snyders.xyz>,
Wesley Cheng <quic_wcheng@quicinc.com>,
Richard Acayan <mailingradian@gmail.com>,
devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
phone-devel@vger.kernel.org
Subject: Re: [PATCH v3 04/12] power: supply: qcom_smbx: Stop clearing software control select
Date: Wed, 2 Dec 2026 03:56:41 +0100 [thread overview]
Message-ID: <aw-Iwgd3mBTWXCMh@venus> (raw)
In-Reply-To: <20261121-pmi8998-vbus-v3-4-91ba2e61a877@ixit.cz>
[-- Attachment #1: Type: text/plain, Size: 2720 bytes --]
Hi,
On Sat, Nov 21, 2026 at 11:37:58PM +0100, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <david@ixit.cz>
>
> Charger should not touch OTG block registers now handled by the vbus
> driver. This change stops clearing OTG_EN_SRC_CFG_BIT (software control
> select).
>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Greetings,
-- Sebastian
> drivers/power/supply/qcom_smbx.c | 14 --------------
> 1 file changed, 14 deletions(-)
>
> diff --git a/drivers/power/supply/qcom_smbx.c b/drivers/power/supply/qcom_smbx.c
> index c6188c915703a..a4f5ffd3cd6e5 100644
> --- a/drivers/power/supply/qcom_smbx.c
> +++ b/drivers/power/supply/qcom_smbx.c
> @@ -96,28 +96,16 @@
> #define USBIN_ICL_CHANGE_RT_STS_BIT BIT(6)
> #define USBIN_SOURCE_CHANGE_RT_STS_BIT BIT(5)
> #define USBIN_PLUGIN_RT_STS_BIT BIT(4)
> #define USBIN_OV_RT_STS_BIT BIT(3)
> #define USBIN_UV_RT_STS_BIT BIT(2)
> #define USBIN_LT_3P6V_RT_STS_BIT BIT(1)
> #define USBIN_COLLAPSE_RT_STS_BIT BIT(0)
>
> -#define OTG_CFG 0x153
> -#define OTG_RESERVED_MASK GENMASK(7, 6)
> -#define DIS_OTG_ON_TLIM_BIT BIT(5)
> -#define QUICKSTART_OTG_FASTROLESWAP_BIT BIT(4)
> -#define INCREASE_DFP_TIME_BIT BIT(3)
> -#define ENABLE_OTG_IN_DEBUG_MODE_BIT BIT(2)
> -#define OTG_EN_SRC_CFG_BIT BIT(1)
> -#define CONCURRENT_MODE_CFG_BIT BIT(0)
> -
> -#define OTG_ENG_OTG_CFG 0x1C0
> -#define ENG_BUCKBOOST_HALT1_8_MODE_BIT BIT(0)
> -
> #define APSD_STATUS 0x307
> #define APSD_STATUS_7_BIT BIT(7)
> #define HVDCP_CHECK_TIMEOUT_BIT BIT(6)
> #define SLOW_PLUGIN_TIMEOUT_BIT BIT(5)
> #define ENUMERATION_DONE_BIT BIT(4)
> #define VADP_CHANGE_DONE_AFTER_AUTH_BIT BIT(3)
> #define QC_AUTH_DONE_STATUS_BIT BIT(2)
> #define QC_CHARGER_BIT BIT(1)
> @@ -811,18 +799,16 @@ static const struct smb_init_register smb_init_seq[] = {
> .val = VCONN_EN_SRC_BIT },
> /*
> * Disable Type-C factory mode and stay in Attached.SRC state when VCONN
> * over-current happens
> */
> { .addr = TYPE_C_CFG,
> .mask = FACTORY_MODE_DETECTION_EN_BIT | VCONN_OC_CFG_BIT,
> .val = 0 },
> - /* Configure VBUS for software control */
> - { .addr = OTG_CFG, .mask = OTG_EN_SRC_CFG_BIT, .val = 0 },
> /*
> * Use VBAT to determine the recharge threshold when battery is full
> * rather than the state of charge.
> */
> { .addr = FG_UPDATE_CFG_2_SEL,
> .mask = SOC_LT_CHG_RECHARGE_THRESH_SEL_BIT |
> VBT_LT_CHG_RECHARGE_THRESH_SEL_BIT,
> .val = VBT_LT_CHG_RECHARGE_THRESH_SEL_BIT },
>
> --
> 2.55.0
>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-12-02 5:46 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 22:37 [PATCH v3 00/12] Enable Qualcomm VBUS block on PMI8998 and PM660 David Heidelberg
2026-11-21 22:37 ` David Heidelberg via B4 Relay
2026-11-21 22:37 ` [PATCH v3 01/12] regulator: dt-bindings: qcom,usb-vbus-regulator: Add pmi8998 and pm660 David Heidelberg
2026-11-21 22:37 ` David Heidelberg via B4 Relay
2026-11-21 22:37 ` [PATCH v3 02/12] regulator: qcom_usb_vbus: Fix the MODULE_LICENSE() string David Heidelberg
2026-11-21 22:37 ` David Heidelberg via B4 Relay
2026-11-21 22:37 ` [PATCH v3 03/12] regulator: qcom_usb_vbus: Add support for pmi8998 David Heidelberg
2026-11-21 22:37 ` David Heidelberg via B4 Relay
2026-11-21 22:37 ` [PATCH v3 04/12] power: supply: qcom_smbx: Stop clearing software control select David Heidelberg
2026-11-21 22:37 ` David Heidelberg via B4 Relay
2026-12-02 2:56 ` Sebastian Reichel [this message]
2026-11-21 22:37 ` [PATCH v3 05/12] arm64: dts: qcom: pmi8998: Add node for PMIC VBUS booster David Heidelberg
2026-11-21 22:37 ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 06/12] arm64: dts: qcom: pm660: " David Heidelberg
2026-11-21 22:38 ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 07/12] arm64: dts: qcom: sdm845-google: Enable vbus support David Heidelberg
2026-11-21 22:38 ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 08/12] arm64: dts: qcom: sdm845-oneplus: " David Heidelberg
2026-11-21 22:38 ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 09/12] arm64: dts: qcom: sdm845-shift-axolotl: " David Heidelberg
2026-11-21 22:38 ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 10/12] arm64: dts: qcom: sdm845-lg: " David Heidelberg
2026-11-21 22:38 ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 11/12] arm64: dts: qcom: sdm845-xiaomi-beryllium: " David Heidelberg
2026-11-21 22:38 ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 12/12] arm64: dts: qcom: sdm670-google: " David Heidelberg
2026-11-21 22:38 ` David Heidelberg 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=aw-Iwgd3mBTWXCMh@venus \
--to=sebastian.reichel@collabora.com \
--cc=abelvesa@kernel.org \
--cc=alexeymin@minlexx.ru \
--cc=andersson@kernel.org \
--cc=broonie@kernel.org \
--cc=casey.connolly@linaro.org \
--cc=conor+dt@kernel.org \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=maggu2810@mailbox.org \
--cc=mailingradian@gmail.com \
--cc=phone-devel@vger.kernel.org \
--cc=quic_wcheng@quicinc.com \
--cc=robh@kernel.org \
--cc=robin@snyders.xyz \
/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.