mbox series

[0/2] mmc: renesas_sdhi: extend quirk selection to handle ES revisions

Message ID 20180806191227.28401-1-niklas.soderlund+renesas@ragnatech.se (mailing list archive)
Headers show
Series mmc: renesas_sdhi: extend quirk selection to handle ES revisions | expand

Message

Niklas Söderlund Aug. 6, 2018, 7:12 p.m. UTC
Hi,

Recent datasheet updates have made it clear that some quirks are not SoC 
specific but SoC + ES version specific. Currently the quirks are 
selected using compatibility values but whit this new information that 
is not enough.

This small series adds support to select quirks based on SoC + ES 
revision using soc_device_match(). It handles the only quirk upstreamed 
so far, selection of 4-taps for HS400 mode on R-CarH3(ES1.0,ES2.0) and 
R-CarM3W(ES1.0,ES1.1).

As this solution makes the compatible selection method obsolete it is 
removed and all Gen3 compat values now points to the same data 
structure. The specific compats for H3 and M3-W are however kept in the 
driver for backward compatibility.

Based on mmc/next and tested on H3 ES2.0 and M3-N.

Niklas Söderlund (2):
  mmc: renesas_sdhi: handle 4tap hs400 mode quirk based on SoC revision
  mmc: renesas_sdhi: align compatibility properties for H3 and M3-W

 drivers/mmc/host/renesas_sdhi_core.c          | 26 +++++++++++++++++++
 drivers/mmc/host/renesas_sdhi_internal_dmac.c | 20 ++------------
 drivers/mmc/host/renesas_sdhi_sys_dmac.c      | 17 ++----------
 3 files changed, 30 insertions(+), 33 deletions(-)