From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A405B2DA776 for ; Mon, 5 Jan 2026 16:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767631647; cv=none; b=MGzUcqHbQHd7xNZw2V7H/mDtuwzrr5VovKAf7yoz0vO8ZUILfsAgx6xYXiTz3ehov54QrKCqGeWD4cTi2MkHgXUvYXnTy2EiarH6ZUKTfbFHaq6mvxfumaIH6B9XOxEBRUkRQS+sxrgfF17jDPFPkKslfIKcHYlU+7Gg4mc8028= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767631647; c=relaxed/simple; bh=ERyjgMpetsSV7HmNF4hsqF0bdrmrio7r57PRd234Lqw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=U5cmfN10JTNT32KB1zyKmy3d8PSMfx7m9c/Kjlf6w15vI83M4jCourR5rTSlOhJz1MUx+0yyAU9wNMmIthIkTUdz4Sx7dXn42d5XW6QDHAmEpxn8INuvEMbHO0TSb5xGDrA+COhnXU8fig1OeLvDxRj62iGGi8wnvfjPHatDtJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=hXQSiz1I; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hXQSiz1I" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-b736ffc531fso32025666b.1 for ; Mon, 05 Jan 2026 08:47:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767631644; x=1768236444; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=ERyjgMpetsSV7HmNF4hsqF0bdrmrio7r57PRd234Lqw=; b=hXQSiz1IbgYsEUmS8z5i1yZH/6aox1AulKzNjsOIcwLeXzKFL8WYcNRDbje1eKtLu7 d0M795RfyUcvz1hZnCS0HR1MK9lXhNgtrh08XBh8SEGeJtN6+zuhFu8FTKyV1Wn80YdI sbSjd7QtQIArli8keY6GmS+GgpUkT9EpqCuDU9jVVogmarmZk3YK4mM+rF6KDTuors55 buWUKbbtnovQTnZ5lIVgSMW6ngZHVU/IMV9leuTQtU1y+MyWkh9KNFXKhG6PgTwTIlej uYg+FbrbY6v36jSRnQmouRcitZZB4wJjYA/oI1h6YgR2NPPHcJ30HIYx3h75eSJpQ4z+ oVwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767631644; x=1768236444; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ERyjgMpetsSV7HmNF4hsqF0bdrmrio7r57PRd234Lqw=; b=pEChjw9fSKJGrg+q2JatMClzb7DbcbTbNhg3sgrMqS3GR2zO7NKA+/Pz+7S2qLkg4G 9OPOmG1FK5fRGF3z423/jJ+WxKZjhl4So6s1bPAUd5mRZtSZr5U8LB/o85cs5jfSmPv/ kSFvVvX5+pa+MutF1gMLdrGC5Ry2ROprHmdQ7i5rGgJJoqtrvh4kypZqQ0W+M8AV7+YU MzU83tqIalFaExVjnTH/cEyZFRMQwNbVSyz+C0rZX8WvlEbMRvO6KB+zVsp3zV7cuJM1 0LmWoxSjTos/aCspZTX3qcLgw7j8jmorm9tY+FZ7ychak+7Xozx1L/QYuMFyy3BhVpgQ nAbg== X-Forwarded-Encrypted: i=1; AJvYcCWNOdo+pGuOO15p/rWnFzDfovj0MT8fw5zVUKJ9qmzNk1x1vo4jg6ICHbDz1D2tiX/Ex9o/X2fxSgE=@vger.kernel.org X-Gm-Message-State: AOJu0YyxodhczVI98C06NhWw5arhduzWF+UTjwS0gXLL8mQ3vlNa8+SZ RxEUuiEPTPN2ZXy1sDtLpLu4pLtWltLL+3bqlhVGH348K0XFJoq8D4IMDOguSSABM30= X-Gm-Gg: AY/fxX7sF+ciFBH/tRMoG5Bzt+ab/HW+j+nt78weSdKlqqOL5qTXfO45KEl6CWU56rM I8Cy0nwqYydaKdJ8kWNLcKCLZDx0mBs0tWvxVp8YCEEj84rxZmJ7p/3Nk6WEzICRamjy0MuG9Rg cjDC+b5jaERtzRLJxCnNgjAh2G+JylPD0+EfLFVxfcGTZD6T5FPQ7WHMSfM84+721JZDHLFLzAP pls+giqb7MiZYKKlzt5tcEmKzrBDoezMcVvQ5+bOCxNUsV0AHYv+afK9ta2Iy9v8xot5MLBt9VE Tov2bBpBFwRSelaCxOSw8Bs2t4yt1RU591uskn9zF8b50lyAEsdsTS+TQ0VLGyLLqydrzj0aeDp zpWpQlleyszpyNtl8mT0dtJ1F6XbxmCGRm1pOxgE+gSdFmyf3gTKITCEZyk332jDpbenS8bxO89 EnL1sRNDmlUMzk9DnCdA== X-Google-Smtp-Source: AGHT+IH8PrChGbBe3ifcPMF0XNauYBYKXVAb42mE0WG2Oe4GF884wrbNFmqGeNp3hqqHYpAdiAIsJg== X-Received: by 2002:a17:907:706:b0:b77:f4a:ca1b with SMTP id a640c23a62f3a-b8426a6c79amr36443666b.16.1767631643937; Mon, 05 Jan 2026 08:47:23 -0800 (PST) Received: from draszik.lan ([212.129.74.225]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6507618cc59sm255498a12.28.2026.01.05.08.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 08:47:23 -0800 (PST) Message-ID: Subject: Re: [PATCH v3 5/5] usb: typec: tcpm/tcpci_maxim: deprecate WAR for setting charger mode From: =?ISO-8859-1?Q?Andr=E9?= Draszik To: amitsd@google.com, Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Greg Kroah-Hartman , Badhri Jagan Sridharan , Heikki Krogerus , Peter Griffin , Tudor Ambarus , Alim Akhtar Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, RD Babiera , Kyle Tso Date: Mon, 05 Jan 2026 16:47:58 +0000 In-Reply-To: <20251227-max77759-charger-v3-5-54e664f5ca92@google.com> References: <20251227-max77759-charger-v3-0-54e664f5ca92@google.com> <20251227-max77759-charger-v3-5-54e664f5ca92@google.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-2+build3 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sat, 2025-12-27 at 00:04 +0000, Amit Sunil Dhamne via B4 Relay wrote: > From: Amit Sunil Dhamne >=20 > TCPCI maxim driver directly writes to the charger's register space to > set charger mode depending on the power role. As MAX77759 chg driver > exists, this WAR is not required. >=20 > Instead, use a regulator interface to source vbus when typec is in > source power mode. In other power modes, this regulator will be turned > off if active. >=20 > Signed-off-by: Amit Sunil Dhamne > --- > =C2=A0drivers/usb/typec/tcpm/tcpci_maxim.h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = |=C2=A0 1 + > =C2=A0drivers/usb/typec/tcpm/tcpci_maxim_core.c | 54 +++++++++++++++++++-= ----------- > =C2=A02 files changed, 34 insertions(+), 21 deletions(-) Reviewed-by: Andr=C3=A9 Draszik