libata-5.10-2020-10-12
-----BEGIN PGP SIGNATURE----- iQJEBAABCAAuFiEEwPw5LcreJtl1+l5K99NY+ylx4KYFAl+EXlMQHGF4Ym9lQGtl cm5lbC5kawAKCRD301j7KXHgpksqEACNO06AYIHE7njXG8lSSEyiRtfMLFaQhpEb jj/k8HTOl1qL1a9qAnyxR6yopIym8E7wZJaQ13LVkS37nAp9yEIYw6RZqkGkIu/K 8pEueewT685YLe8dgwlMtQTJ6WTOvK9j+y67paM4AA48wD1zNT/tg/L9ZQmKBBlz 9J4yUkSCLfDMQMbTx62FwHTXfYGM7NhYNgdE8Mh8fZ20y46TF8f3rpe7LrZ+rj9E 7teoRTgNJOU7BTGiLetR5Qa1P3glKq2loLdi7x8BuL5+fP2xkaDmJhu3dZhA8v07 2PI8vfl+n2NEsO0yyOBO1Ofqku/8Dp9aNnFpphU3FZSTco3rCloVAW7Oro+puCa1 NVFouLgjXaJEBfn+mPRp3DabqwB/8GKE/2kuEoaNMY1h45obPWi/vdvraEyhhcth ZyUFWSpgtf7qFRaqaBx/drGFH+y899FpzikiIIq08Ospoz5rrb9VAOJ+0wZwJgew W8ibtuw+3G2I0rqm2iOPT4Idc61I6joHJ/l79JuGgR0k9/n2Yd13V1rZSDE6VEtY 1x/6t+X8d4VhGElSkspJRkhea77/7xhLivlKjcUeiImfllRp6bvJe6INGYWPbQ14 a0h8vK0I/fmhn7RRHEC4SSPnjJPYUqSve4Wm5qIaXlotYcKVhmH2GCpv/7Evzrfv N/lxdh2kww== =N2Y3 -----END PGP SIGNATURE----- Merge tag 'libata-5.10-2020-10-12' of git://git.kernel.dk/linux-block Pull libata updates from Jens Axboe: "Nothing major in here, just fixes or improvements collected over the last few months" * tag 'libata-5.10-2020-10-12' of git://git.kernel.dk/linux-block: ata: ahci: mvebu: Make SATA PHY optional for Armada 3720 MAINTAINERS: remove LIBATA PATA DRIVERS entry pata_cmd64x: Use fallthrough pseudo-keyword ahci: qoriq: enable acpi support in qoriq ahci driver sata, highbank: simplify the return expression of ahci_highbank_suspend ahci: Add Intel Rocket Lake PCH-H RAID PCI IDs
This commit is contained in:
commit
79ec6d9cac
|
@ -9882,15 +9882,6 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
|
|||
F: drivers/ata/pata_arasan_cf.c
|
||||
F: include/linux/pata_arasan_cf_data.h
|
||||
|
||||
LIBATA PATA DRIVERS
|
||||
M: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
|
||||
M: Jens Axboe <axboe@kernel.dk>
|
||||
L: linux-ide@vger.kernel.org
|
||||
S: Maintained
|
||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
|
||||
F: drivers/ata/ata_generic.c
|
||||
F: drivers/ata/pata_*.c
|
||||
|
||||
LIBATA PATA FARADAY FTIDE010 AND GEMINI SATA BRIDGE DRIVERS
|
||||
M: Linus Walleij <linus.walleij@linaro.org>
|
||||
L: linux-ide@vger.kernel.org
|
||||
|
|
|
@ -360,6 +360,10 @@ static const struct pci_device_id ahci_pci_tbl[] = {
|
|||
{ PCI_VDEVICE(INTEL, 0x1f3f), board_ahci_avn }, /* Avoton RAID */
|
||||
{ PCI_VDEVICE(INTEL, 0x2823), board_ahci }, /* Wellsburg RAID */
|
||||
{ PCI_VDEVICE(INTEL, 0x2827), board_ahci }, /* Wellsburg RAID */
|
||||
{ PCI_VDEVICE(INTEL, 0x43d4), board_ahci }, /* Rocket Lake PCH-H RAID */
|
||||
{ PCI_VDEVICE(INTEL, 0x43d5), board_ahci }, /* Rocket Lake PCH-H RAID */
|
||||
{ PCI_VDEVICE(INTEL, 0x43d6), board_ahci }, /* Rocket Lake PCH-H RAID */
|
||||
{ PCI_VDEVICE(INTEL, 0x43d7), board_ahci }, /* Rocket Lake PCH-H RAID */
|
||||
{ PCI_VDEVICE(INTEL, 0x8d02), board_ahci }, /* Wellsburg AHCI */
|
||||
{ PCI_VDEVICE(INTEL, 0x8d04), board_ahci }, /* Wellsburg RAID */
|
||||
{ PCI_VDEVICE(INTEL, 0x8d06), board_ahci }, /* Wellsburg RAID */
|
||||
|
|
|
@ -240,6 +240,8 @@ enum {
|
|||
as default lpm_policy */
|
||||
AHCI_HFLAG_SUSPEND_PHYS = (1 << 26), /* handle PHYs during
|
||||
suspend/resume */
|
||||
AHCI_HFLAG_IGN_NOTSUPP_POWER_ON = (1 << 27), /* ignore -EOPNOTSUPP
|
||||
from phy_power_on() */
|
||||
|
||||
/* ap->flags bits */
|
||||
|
||||
|
|
|
@ -227,7 +227,7 @@ static const struct ahci_mvebu_plat_data ahci_mvebu_armada_380_plat_data = {
|
|||
|
||||
static const struct ahci_mvebu_plat_data ahci_mvebu_armada_3700_plat_data = {
|
||||
.plat_config = ahci_mvebu_armada_3700_config,
|
||||
.flags = AHCI_HFLAG_SUSPEND_PHYS,
|
||||
.flags = AHCI_HFLAG_SUSPEND_PHYS | AHCI_HFLAG_IGN_NOTSUPP_POWER_ON,
|
||||
};
|
||||
|
||||
static const struct of_device_id ahci_mvebu_of_match[] = {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
* Tang Yuantian <Yuantian.Tang@freescale.com>
|
||||
*/
|
||||
|
||||
#include <linux/acpi.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pm.h>
|
||||
|
@ -80,6 +81,12 @@ static const struct of_device_id ahci_qoriq_of_match[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(of, ahci_qoriq_of_match);
|
||||
|
||||
static const struct acpi_device_id ahci_qoriq_acpi_match[] = {
|
||||
{"NXP0004", .driver_data = (kernel_ulong_t)AHCI_LX2160A},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, ahci_qoriq_acpi_match);
|
||||
|
||||
static int ahci_qoriq_hardreset(struct ata_link *link, unsigned int *class,
|
||||
unsigned long deadline)
|
||||
{
|
||||
|
@ -255,6 +262,7 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv)
|
|||
static int ahci_qoriq_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
const struct acpi_device_id *acpi_id;
|
||||
struct device *dev = &pdev->dev;
|
||||
struct ahci_host_priv *hpriv;
|
||||
struct ahci_qoriq_priv *qoriq_priv;
|
||||
|
@ -267,14 +275,18 @@ static int ahci_qoriq_probe(struct platform_device *pdev)
|
|||
return PTR_ERR(hpriv);
|
||||
|
||||
of_id = of_match_node(ahci_qoriq_of_match, np);
|
||||
if (!of_id)
|
||||
acpi_id = acpi_match_device(ahci_qoriq_acpi_match, &pdev->dev);
|
||||
if (!(of_id || acpi_id))
|
||||
return -ENODEV;
|
||||
|
||||
qoriq_priv = devm_kzalloc(dev, sizeof(*qoriq_priv), GFP_KERNEL);
|
||||
if (!qoriq_priv)
|
||||
return -ENOMEM;
|
||||
|
||||
qoriq_priv->type = (enum ahci_qoriq_type)of_id->data;
|
||||
if (of_id)
|
||||
qoriq_priv->type = (enum ahci_qoriq_type)of_id->data;
|
||||
else
|
||||
qoriq_priv->type = (enum ahci_qoriq_type)acpi_id->driver_data;
|
||||
|
||||
if (unlikely(!ecc_initialized)) {
|
||||
res = platform_get_resource_byname(pdev,
|
||||
|
@ -288,7 +300,8 @@ static int ahci_qoriq_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
qoriq_priv->is_dmacoherent = of_dma_is_coherent(np);
|
||||
if (device_get_dma_attr(&pdev->dev) == DEV_DMA_COHERENT)
|
||||
qoriq_priv->is_dmacoherent = true;
|
||||
|
||||
rc = ahci_platform_enable_resources(hpriv);
|
||||
if (rc)
|
||||
|
@ -354,6 +367,7 @@ static struct platform_driver ahci_qoriq_driver = {
|
|||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = ahci_qoriq_of_match,
|
||||
.acpi_match_table = ahci_qoriq_acpi_match,
|
||||
.pm = &ahci_qoriq_pm_ops,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -59,7 +59,7 @@ int ahci_platform_enable_phys(struct ahci_host_priv *hpriv)
|
|||
}
|
||||
|
||||
rc = phy_power_on(hpriv->phys[i]);
|
||||
if (rc) {
|
||||
if (rc && !(rc == -EOPNOTSUPP && (hpriv->flags & AHCI_HFLAG_IGN_NOTSUPP_POWER_ON))) {
|
||||
phy_exit(hpriv->phys[i]);
|
||||
goto disable_phys;
|
||||
}
|
||||
|
|
|
@ -461,7 +461,7 @@ static int cmd64x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
case 1:
|
||||
ppi[0] = &cmd_info[4];
|
||||
ppi[1] = &cmd_info[4];
|
||||
/* FALL THRU */
|
||||
fallthrough;
|
||||
/* Early revs have no CNTRL_CH0 */
|
||||
case 2:
|
||||
case 0:
|
||||
|
|
|
@ -571,7 +571,6 @@ static int ahci_highbank_suspend(struct device *dev)
|
|||
struct ahci_host_priv *hpriv = host->private_data;
|
||||
void __iomem *mmio = hpriv->mmio;
|
||||
u32 ctl;
|
||||
int rc;
|
||||
|
||||
if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
|
||||
dev_err(dev, "firmware update required for suspend/resume\n");
|
||||
|
@ -588,11 +587,7 @@ static int ahci_highbank_suspend(struct device *dev)
|
|||
writel(ctl, mmio + HOST_CTL);
|
||||
readl(mmio + HOST_CTL); /* flush */
|
||||
|
||||
rc = ata_host_suspend(host, PMSG_SUSPEND);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
return 0;
|
||||
return ata_host_suspend(host, PMSG_SUSPEND);
|
||||
}
|
||||
|
||||
static int ahci_highbank_resume(struct device *dev)
|
||||
|
|
Loading…
Reference in New Issue