]> git.baikalelectronics.ru Git - kernel.git/commit
pm80xx: Remove bogus address masking in pm8001_ioremap()
authorDavid Daney <david.daney@cavium.com>
Wed, 13 Apr 2016 21:26:56 +0000 (14:26 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Apr 2016 20:53:18 +0000 (16:53 -0400)
commitca58ef8d4a2f2b891651494cddd9cd79037bdb31
treef0a8f6ac3a82b9a15867567eca6f56805007ec4a
parent902f0c13e39bd6e6a87e3788c875eef234d12b3f
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>
drivers/scsi/pm8001/pm8001_init.c