Skip to content

Commit

Permalink
mmc: sdhi: sys_dmac: check for all Gen3 types when whitelisting
Browse files Browse the repository at this point in the history
Fixes: 26eb260 ("mmc: renesas_sdhi: add eMMC HS400 mode support")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Wolfram Sang authored and Ulf Hansson committed Sep 17, 2018
1 parent 7876320 commit 2ea1503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mmc/host/renesas_sdhi_sys_dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ static const struct soc_device_attribute gen3_soc_whitelist[] = {

static int renesas_sdhi_sys_dmac_probe(struct platform_device *pdev)
{
if (of_device_get_match_data(&pdev->dev) == &of_rcar_gen3_compatible &&
if ((of_device_get_match_data(&pdev->dev) == &of_rcar_gen3_compatible ||
of_device_get_match_data(&pdev->dev) == &of_rcar_r8a7795_compatible) &&
!soc_device_match(gen3_soc_whitelist))
return -ENODEV;

Expand Down

0 comments on commit 2ea1503

Please sign in to comment.