1
0
Fork 0

ahci_qoriq: bug fix for ecc_addr

Original driver expect a register node with name "sata-ecc"
this node is of 64 bit wide.
In ACPI such nodes can be provided with QWordMemory, but
QWordMemory can not hold DescriptorName more than 4 characters.

Therefore this patch changes platform property retrival based
upon index instead of named.

Signed-off-by: Udit Kumar <udit.kumar@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Udit Kumar 2019-06-12 10:42:02 +05:30 committed by Dong Aisheng
parent 745ccd66e5
commit 4a079ef60b
1 changed files with 1 additions and 3 deletions

View File

@ -433,9 +433,7 @@ static int ahci_qoriq_probe(struct platform_device *pdev)
qoriq_priv->type = (enum ahci_qoriq_type)acpi_id->driver_data;
if (unlikely(!ecc_initialized)) {
res = platform_get_resource_byname(pdev,
IORESOURCE_MEM,
"sata-ecc");
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
if (res) {
qoriq_priv->ecc_addr =
devm_ioremap_resource(dev, res);