mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 10:14:23 +08:00
pm80xx: Remove bogus address masking in pm8001_ioremap()
It is unclear what the original intent of the masking was, but it is clearly incorrect to truncate a physical address before calling ioremap(). On systems where there are valid physical address bits above bit-31 (arm64 for example) the result is an eventual OOPs when initializing the driver. Remove the bogus code to fix it. Signed-off-by: David Daney <david.daney@cavium.com> Acked-by: Jack Wang <jinpu.wang@profitbricks.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
5ea33eb573
commit
e83596b41c
@ -418,8 +418,6 @@ static int pm8001_ioremap(struct pm8001_hba_info *pm8001_ha)
|
||||
if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) {
|
||||
pm8001_ha->io_mem[logicalBar].membase =
|
||||
pci_resource_start(pdev, bar);
|
||||
pm8001_ha->io_mem[logicalBar].membase &=
|
||||
(u32)PCI_BASE_ADDRESS_MEM_MASK;
|
||||
pm8001_ha->io_mem[logicalBar].memsize =
|
||||
pci_resource_len(pdev, bar);
|
||||
pm8001_ha->io_mem[logicalBar].memvirtaddr =
|
||||
|
Loading…
Reference in New Issue
Block a user