diff options
author | Helge Deller <deller@gmx.de> | 2020-10-19 16:57:50 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2020-10-22 22:44:35 +0200 |
commit | 879bc2d27904354b98ca295b6168718e045c4aa2 (patch) | |
tree | bb1177563374ebfa1916464cc43fe898e76ba7c9 /include | |
parent | faade0986e840884438a6e8a21b782c34eb1109c (diff) | |
download | linux-879bc2d27904354b98ca295b6168718e045c4aa2.tar.bz2 |
hil/parisc: Disable HIL driver when it gets stuck
When starting a HP machine with HIL driver but without an HIL keyboard
or HIL mouse attached, it may happen that data written to the HIL loop
gets stuck (e.g. because the transaction queue is full). Usually one
will then have to reboot the machine because all you see is and endless
output of:
Transaction add failed: transaction already queued?
In the higher layers hp_sdc_enqueue_transaction() is called to queued up
a HIL packet. This function returns an error code, and this patch adds
the necessary checks for this return code and disables the HIL driver if
further packets can't be sent.
Tested on a HP 730 and a HP 715/64 machine.
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hil_mlc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hil_mlc.h b/include/linux/hil_mlc.h index 774f7d3b8f6a..369221fd5518 100644 --- a/include/linux/hil_mlc.h +++ b/include/linux/hil_mlc.h @@ -103,7 +103,7 @@ struct hilse_node { /* Methods for back-end drivers, e.g. hp_sdc_mlc */ typedef int (hil_mlc_cts) (hil_mlc *mlc); -typedef void (hil_mlc_out) (hil_mlc *mlc); +typedef int (hil_mlc_out) (hil_mlc *mlc); typedef int (hil_mlc_in) (hil_mlc *mlc, suseconds_t timeout); struct hil_mlc_devinfo { |