]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/powernv: Update dev->dma_mask in pci_set_dma_mask() path
authorBrian W Hart <hartb@linux.vnet.ibm.com>
Thu, 31 Jul 2014 19:24:37 +0000 (14:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Sep 2014 23:34:16 +0000 (16:34 -0700)
commitdaaa4960907048e5c454e3f37a618b187befd933
tree9912a6f02344c21c2730c028992a814660ab66ee
parent51d79fc2bc76246b3f098480404837bfdf1c76eb
powerpc/powernv: Update dev->dma_mask in pci_set_dma_mask() path

commit a32305bf90a2ae0e6a9a93370c7616565f75e15a upstream.

powerpc defines various machine-specific routines for handling
pci_set_dma_mask().  The routines for machine "PowerNV" may neglect
to set dev->dma_mask.  This could confuse anyone (e.g. drivers) that
consult dev->dma_mask to find the current mask.  Set the dma_mask in
the PowerNV leaf routine.

Signed-off-by: Brian W. Hart <hartb@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/pci-ioda.c