On Tue, Sep 24, 2024 at 03:28:51AM +, Srivatsa S. Bhat wrote:
> [+linux-pm, Rafael, Len, Pavel]
>
> On Thu, Sep 12, 2024 at 02:27:49PM -0700, Erni Sri Satya Vennela wrote:
> > This reverts commit 62238f3aadc9bc56da70100e19ec61b9f8d72a5f.
> >
> > Remove keyboard as wakeup source since Suspend-
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/xilinx_ps2.c | 15 +--
1 file changed, 5 insertions
Use __free() and guard() primitives to simplify the code and error
handling.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/userio.c | 141 +--
1 file changed, 70 insertions(+), 71 deletions(-)
diff --git a/drivers/input/serio/userio.c b/drivers/input
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/sun4i-ps2.c | 8 ++--
1 file changed, 2 insertions(+), 6
to 20
bytes to accommodate the largest possible port number.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/serio_raw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c
index aef8301313b2..e058fef07f5
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/serio.c | 164 ++--
1 file changed
Use guard notation when acquiring mutexes and spinlocks, and when
pausing and resuming serio port. Such guard notation makes the code
more compact and error handling more robust by ensuring that locks
are released in all code paths when control leaves critical section.
Signed-off-by: Dmitry
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/serport.c | 27 ---
1 file changed, 8
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/saps2.c | 8 +++-
1 file changed, 3 insertions(+), 5
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/q40kbd.c | 10 ++
1 file changed, 2 insertions(+), 8
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/ps2mult.c | 25 +++--
1 file changed, 7
Using guard notation makes the code more compact and error handling
more robust by ensuring that mutexes are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/ps2-gpio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/i8042.c | 204 +++-
1 file changed
In preparation to using guard notation when acquiring mutexes and
spinlocks factor out handling of active multiplexing mode from
i8042_interrupt().
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/i8042.c | 139 +---
1 file changed, 83 insertions(+), 56
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/hyperv-keyboard.c | 38 +--
1 file changed
Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/gscps2.c | 114 +++
1 file changed
Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/touchscreen/elo.c | 8
1 file changed, 4 insertions(+), 4
Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/rmi4/rmi_f03.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/keyboard/sunkbd.c | 5 ++---
1 file changed, 2 insertions(+), 3
Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/keyboard/atkbd.c | 8
1 file changed, 4 insertions(+), 4
Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/mouse/synaptics.c | 6 ++
1 file changed, 2 insertions(+), 4
Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/mouse/byd.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions
Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/mouse/alps.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions
Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.
Signed-off-by: Dmitry Torokhov
---
drivers/input/serio/libps2.c | 28 +++-
1 file changed, 15
se_rx, elo->serio) {
elo->expected_packet = toupper(packet[0]);
init_completion(&elo->cmd_done);
}
Signed-off-by: Dmitry Torokhov
---
include/linux/serio.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/serio.h b/incl
other cleanup functions to simplify the code.
Thanks!
Dmitry Torokhov (24):
Input: serio - define serio_pause_rx guard to pause and resume serio ports
Input: libps2 - use guard notation when temporarily pausing serio ports
Input: alps - use guard notation when pausing serio port
Input: byd
26 matches
Mail list logo