Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: ahci_platform: enable to get and control reset

Unlike SoC-specific driver, generic ahci_platform driver doesn't
have any chances to control resets.

This adds AHCI_PLATFORM_GET_RESETS to ahci_platform_get_resources()
on the generic driver to enable reset control support.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Kunihiko Hayashi and committed by
Tejun Heo
2d17f460 9d2ab995

+2 -1
+2 -1
drivers/ata/ahci_platform.c
··· 43 43 struct ahci_host_priv *hpriv; 44 44 int rc; 45 45 46 - hpriv = ahci_platform_get_resources(pdev, 0); 46 + hpriv = ahci_platform_get_resources(pdev, 47 + AHCI_PLATFORM_GET_RESETS); 47 48 if (IS_ERR(hpriv)) 48 49 return PTR_ERR(hpriv); 49 50