]> git.baikalelectronics.ru Git - kernel.git/commit
powernv/pci: Print an error when device enable is blocked
authorOliver O'Halloran <oohall@gmail.com>
Thu, 9 Apr 2020 06:13:37 +0000 (16:13 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:34 +0000 (01:01 +1100)
commit163a6f1bd132a1f5bec7d23db0d85113510c1c7a
tree96329238c2709ab94ba6fa51084fd0c4261e42ea
parent446c0ec5d6218a37d89af0e4f29e58583346f967
powernv/pci: Print an error when device enable is blocked

If the platform decides to block enabling the device nothing is printed
currently. This can lead to some confusion since the dmesg output will
usually print an error with no context e.g.

e1000e: probe of 0022:01:00.0 failed with error -22

This shouldn't be spammy since pci_enable_device() already prints a
messages when it succeeds.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200409061337.9187-1-oohall@gmail.com
arch/powerpc/platforms/powernv/pci-ioda.c