]> git.openfabrics.org - ~emulex/infiniband.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)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Aug 2014 05:40:54 +0000 (15:40 +1000)
commita32305bf90a2ae0e6a9a93370c7616565f75e15a
tree8b0765787e86f739cb6e3f1d7109d60a47c450cb
parent7d17622159a3f0e9d4bf02a819cf003241e1c688
powerpc/powernv: Update dev->dma_mask in pci_set_dma_mask() path

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>
CC: <stable@vger.kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci-ioda.c