aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-09-12 15:29:44 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-01-23 21:31:20 +1100
commitc13a17b73eb0b30070a347111b8c386f4e6a844e (patch)
tree83a8d12409d8ead6948d5c66cfada0be34771d31 /arch/powerpc/platforms
parentpowernv/pci: Use pnv_phb as the private data for debugfs entries (diff)
downloadlinux-dev-c13a17b73eb0b30070a347111b8c386f4e6a844e.tar.xz
linux-dev-c13a17b73eb0b30070a347111b8c386f4e6a844e.zip
powernv/pci: Allow any write trigger the diag dump
Make the dump trigger off any input rather than just '1'. This allows you to write "echo 1> dump_diag_data" and it'll do what you want rather than erroring out pointlessly. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190912052945.12589-2-oohall@gmail.com
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/powernv/pci-ioda.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
index f2c755626887..f0425bd4edc6 100644
--- a/arch/powerpc/platforms/powernv/pci-ioda.c
+++ b/arch/powerpc/platforms/powernv/pci-ioda.c
@@ -3093,9 +3093,6 @@ static int pnv_pci_diag_data_set(void *data, u64 val)
struct pnv_phb *phb = data;
s64 ret;
- if (val != 1ULL)
- return -EINVAL;
-
/* Retrieve the diag data from firmware */
ret = opal_pci_get_phb_diag_data2(phb->opal_id, phb->diag_data,
phb->diag_data_size);