public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND 0/3] Modify MxL's CGU clk driver to make it secure boot compatible
@ 2022-07-25 10:27 Rahul Tanwar
  2022-07-25 10:27 ` [PATCH RESEND 1/3] clk: mxl: Switch from direct readl/writel based IO to regmap based IO Rahul Tanwar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rahul Tanwar @ 2022-07-25 10:27 UTC (permalink / raw)
  To: sboyd, mturquette, linux-clk; +Cc: linux-kernel, linux-lgm-soc, Rahul Tanwar

* Resend due to a mistake in adding --cc while sending patches

MxL's CGU driver was found to be lacking below required features. Add these
required lacking features:

1. Since it is a core driver, it has to conform to secure boot & secure
   access architecture. In order for the register accesses to be secure
   access compliant, it needs regmap support as per our security architecture.
   Hence, replace direct read/writel with regmap based IO. Also remove spinlocks
   because they are no longer necessary because regmap uses its own lock.

2. There are some gate clocks which are used by the power mgmt IP to gate when
   a certain power saving mode is activated. These gate clocks can also be 
   gated from CGU clk driver. This creates a conflict. To avoid the conflict,
   by default disable gating such gate registers from CGU clk driver. But keep
   a flag to do so for other older IP's which uses same CGU clk IP but does not
   use same power mgmt IP.

This patch series is based on below git tree:
git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git

Rahul Tanwar (3):
  clk: mxl: Switch from direct readl/writel based IO to regmap based IO
  clk: mxl: Remove unnecessary spinlocks
  clk: mxl: Avoid disabling gate clocks from clk driver

 drivers/clk/x86/Kconfig       |   5 +-
 drivers/clk/x86/clk-cgu-pll.c |  23 ++-----
 drivers/clk/x86/clk-cgu.c     | 117 +++++++++++-----------------------
 drivers/clk/x86/clk-cgu.h     |  45 +++++++------
 drivers/clk/x86/clk-lgm.c     |  14 ++--
 5 files changed, 76 insertions(+), 128 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2022-07-25 10:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-25 10:27 [PATCH RESEND 0/3] Modify MxL's CGU clk driver to make it secure boot compatible Rahul Tanwar
2022-07-25 10:27 ` [PATCH RESEND 1/3] clk: mxl: Switch from direct readl/writel based IO to regmap based IO Rahul Tanwar
2022-07-25 10:27 ` [PATCH RESEND 2/3] clk: mxl: Remove unnecessary spinlocks Rahul Tanwar
2022-07-25 10:27 ` [PATCH RESEND 3/3] clk: mxl: Avoid disabling gate clocks from clk driver Rahul Tanwar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox