linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mmc: dw_mmc: use standard "mmc" alias stem
@ 2021-11-16 19:02 John Keeping
  2021-11-16 19:02 ` [PATCH 1/2] mmc: dw_mmc: extract ctrl_id lookup to a function John Keeping
  2021-11-16 19:02 ` [PATCH 2/2] mmc: dw_mmc: use standard "mmc" alias stem John Keeping
  0 siblings, 2 replies; 8+ messages in thread
From: John Keeping @ 2021-11-16 19:02 UTC (permalink / raw)
  To: linux-mmc; +Cc: linux-kernel, Jaehoon Chung, Ulf Hansson, John Keeping

dw_mmc uses the device index internally and currently derives this from
a "mshcN" DT alias.  But the standard DT alias used by the MMC core to
assign the device index is "mmcN".

The first patch here creates a function to replace the two sites that do
this mapping so that the second patch can switch to using "mmcN" if
available (falling back to "mshcN" for compatibility if required).

John Keeping (2):
  mmc: dw_mmc: extract ctrl_id lookup to a function
  mmc: dw_mmc: use standard "mmc" alias stem

 drivers/mmc/host/dw_mmc-k3.c |  4 +---
 drivers/mmc/host/dw_mmc.c    | 28 ++++++++++++++++++++++------
 drivers/mmc/host/dw_mmc.h    |  2 ++
 3 files changed, 25 insertions(+), 9 deletions(-)

-- 
2.34.0


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

end of thread, other threads:[~2021-11-24 15:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 19:02 [PATCH 0/2] mmc: dw_mmc: use standard "mmc" alias stem John Keeping
2021-11-16 19:02 ` [PATCH 1/2] mmc: dw_mmc: extract ctrl_id lookup to a function John Keeping
2021-11-16 19:02 ` [PATCH 2/2] mmc: dw_mmc: use standard "mmc" alias stem John Keeping
2021-11-23 19:34   ` Ulf Hansson
2021-11-24  9:54     ` Jaehoon Chung
2021-11-24 12:29       ` John Keeping
2021-11-24 15:13         ` Ulf Hansson
2021-11-24 12:52       ` Christian Löhle

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).