Skip to content

Commit 2d17f46

Browse files
khayash1htejun
authored andcommitted
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>
1 parent 9d2ab99 commit 2d17f46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/ata/ahci_platform.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ static int ahci_probe(struct platform_device *pdev)
4343
struct ahci_host_priv *hpriv;
4444
int rc;
4545

46-
hpriv = ahci_platform_get_resources(pdev, 0);
46+
hpriv = ahci_platform_get_resources(pdev,
47+
AHCI_PLATFORM_GET_RESETS);
4748
if (IS_ERR(hpriv))
4849
return PTR_ERR(hpriv);
4950

0 commit comments

Comments
 (0)