linux-phy.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add new phy_notify_pmstate() api
@ 2025-07-03 13:03 Peter Griffin
  2025-07-03 13:03 ` [PATCH v2 1/2] phy: add " Peter Griffin
  2025-07-03 13:03 ` [PATCH v2 2/2] phy: samsung: gs101-ufs: Add .notify_pmstate() and hibern8 enter/exit values Peter Griffin
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Griffin @ 2025-07-03 13:03 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, André Draszik,
	Tudor Ambarus, Alim Akhtar, Krzysztof Kozlowski
  Cc: linux-phy, linux-kernel, linux-arm-kernel, linux-samsung-soc,
	kernel-team, William Mcvicker, Peter Griffin

This series adds a new phy_notify_pmstate() API to the phy subsystem. It is
designed to be used when some specific runtime configuration parameters
need to be changed when transitioning to the desired pm state which can't
be handled by phy_calibrate()or phy_power_{on|off}().

The first user of the new API is phy-samsung-ufs and phy-gs101-ufs which
needs to issue some register writes when entering and exiting the hibern8
link state.

A separate patch will be sent for ufs-exynos driver to make use of this new
API in the hibern8 callbacks.

To: Vinod Koul <vkoul@kernel.org>
To: Kishon Vijay Abraham I <kishon@kernel.org>
To: André Draszik <andre.draszik@linaro.org>
To: Tudor Ambarus <tudor.ambarus@linaro.org>
To: Alim Akhtar <alim.akhtar@samsung.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: linux-phy@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: kernel-team@android.com
Cc: William Mcvicker <willmcvicker@google.com>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>

Changes in v2:
- Add new phy_notify_pmstate API() instead of using phy_set_mode() (Vinod)
- Link to v1: https://lore.kernel.org/r/20241002201555.3332138-1-peter.griffin@linaro.org

---
Peter Griffin (2):
      phy: add new phy_notify_pmstate() api
      phy: samsung: gs101-ufs: Add .notify_pmstate() and hibern8 enter/exit values

 drivers/phy/phy-core.c                | 25 +++++++++++++++++++++++
 drivers/phy/samsung/phy-gs101-ufs.c   | 28 ++++++++++++++++++++++++++
 drivers/phy/samsung/phy-samsung-ufs.c | 38 +++++++++++++++++++++++++++++++++++
 drivers/phy/samsung/phy-samsung-ufs.h |  7 +++++++
 include/linux/phy/phy.h               | 25 +++++++++++++++++++++++
 5 files changed, 123 insertions(+)
---
base-commit: 97bdc30f39b63758868f67841cebb8c50869e16d
change-id: 20250703-phy-notify-pmstate-f02ba5582f65

Best regards,
-- 
Peter Griffin <peter.griffin@linaro.org>


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-08-06 14:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03 13:03 [PATCH v2 0/2] Add new phy_notify_pmstate() api Peter Griffin
2025-07-03 13:03 ` [PATCH v2 1/2] phy: add " Peter Griffin
2025-07-22 16:34   ` Manivannan Sadhasivam
2025-07-23  7:07     ` Vinod Koul
2025-07-23  7:52       ` neil.armstrong
2025-07-23  8:04       ` Manivannan Sadhasivam
2025-07-25 10:21         ` Peter Griffin
2025-08-06 14:40           ` Neil Armstrong
2025-07-03 13:03 ` [PATCH v2 2/2] phy: samsung: gs101-ufs: Add .notify_pmstate() and hibern8 enter/exit values Peter Griffin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).