]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ata: ahci_platform: enable to get and control reset
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Wed, 22 Aug 2018 12:13:03 +0000 (21:13 +0900)
committerTejun Heo <tj@kernel.org>
Wed, 22 Aug 2018 15:08:28 +0000 (08:08 -0700)
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>
drivers/ata/ahci_platform.c

index 5709273169625258860e50094fce4b03fc27ec11..ddd930852b2e47da701ecf0be2f1748e718f7297 100644 (file)
@@ -43,7 +43,8 @@ static int ahci_probe(struct platform_device *pdev)
        struct ahci_host_priv *hpriv;
        int rc;
 
-       hpriv = ahci_platform_get_resources(pdev, 0);
+       hpriv = ahci_platform_get_resources(pdev,
+                                           AHCI_PLATFORM_GET_RESETS);
        if (IS_ERR(hpriv))
                return PTR_ERR(hpriv);