]> git.baikalelectronics.ru Git - kernel.git/commit
powernv/pci: Allow any write trigger the diag dump
authorOliver O'Halloran <oohall@gmail.com>
Thu, 12 Sep 2019 05:29:44 +0000 (15:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:20 +0000 (21:31 +1100)
commita0db09a24b45548f906f295d88bb5248d6176dbb
tree83a8d12409d8ead6948d5c66cfada0be34771d31
parent10e9fad25a9c0d4aecfe9160804fd0f025075a8f
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
arch/powerpc/platforms/powernv/pci-ioda.c