]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/io-pgtable: Rationalise quirk handling
authorRobin Murphy <robin.murphy@arm.com>
Fri, 12 Feb 2016 17:09:46 +0000 (17:09 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 17 Feb 2016 14:15:09 +0000 (14:15 +0000)
commit3850db49da87121b54c3ba43c82cdbe5a7c76be5
tree7734f41a83225e45c19a2999592b2b8eaa68a08c
parent88492a4700360a086e55d8874ad786105a5e8b0f
iommu/io-pgtable: Rationalise quirk handling

As the number of io-pgtable implementations grows beyond 1, it's time
to rationalise the quirks mechanism before things have a chance to
start getting really ugly and out-of-hand.

To that end:
- Indicate exactly which quirks each format can/does support.
- Fail creating a table if a caller wants unsupported quirks.
- Properly document where each quirk applies and why.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/io-pgtable-arm-v7s.c
drivers/iommu/io-pgtable-arm.c
drivers/iommu/io-pgtable.h