dma: pl330: rip out broken, redundant ID probing
authorWill Deacon <will.deacon@arm.com>
Mon, 10 Jun 2013 18:34:37 +0000 (19:34 +0100)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:30 +0000 (11:44 +0900)
commit688ef6e4b660e64a2785fceaf97636d99ba7f199
tree240e6d7794d54a4eca546df1723611e209f65f4c
parentfc150f600e3756de14bc8b3109c0d05cea0fa10f
dma: pl330: rip out broken, redundant ID probing

The PL330 driver probes the peripheral and primecell IDs of the device to
make sure that it is indeed an AMBA PL330. However, it does this by
making byte accesses to a device mapping of the word-aligned ID
registers, which is either UNPREDICTABLE or generates an alignment fault
(depending on the presence of the virtualisation extensions).

Rather than fix this code, we can actually rip most of it out and let
the AMBA bus driver correctly do the probing for us.

Cc: Jassi Brar <jaswinder.singh@linaro.org>
Cc: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c