Skip to content

platform/x86: ideapad-laptop: cleanup, keyboard backlight and "always on USB charging" control support, reenable touchpad control

Barnabás Pőcze platform-driver-x86 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest29 patches 7 repliesIn review
  2. v224 patches 35 repliesSuperseded
  3. v124 patches 8 repliesSuperseded

Changes in v3 from the cover letter · 33 lines

- rebase on eabe533904cbcb6c7df530fd807cf2a3c3567d35
("platform/x86: ideapad-laptop: DYTC Platform profile support"), which is referred to as "DYTC patch" in this changelog
- {02} *new patch*
- {03} minor formatting changes
- {05} *new patch*
- {07} *new patch*
- {08} *new patch*
- {09} minor formatting change
- {10} use while loop
- {11} restore log message severity
- {12} *new patch*
- {13} reorder variable definitions,
apply to DYTC patch
- {14} mention ABI breakage
- {15} mention ABI breakage,
use !! to convert to int and "%d" in sysfs_emit(), convert 'camera_power' attribute to boolean-like
- {17} reorder varible definitions,
apply to DYTC patch
- {18} minor formatting changes,
add log messages
- {19} minor formatting change
- {20} move && to end of line
- {21} no longer return -ENODATA due to {02},
explicit alignment instead of tabs in output
- {22} no longer return -ENODATA due to {02}
- {24} reorder device attribute callbacks,
remove some empty lines,
apply to DYTC patch
- {26} use !! to map to range [0, 1],
add log messages
- {27} move documentation change to this patch
- {28} add "Fixes" tag
- {29} add "Fixes" tag

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29platform/x86: ideapad-laptop: remove unnecessary dev_set_drvdata() calldrivers/platform/x86/ideapad-laptop.c+0 -10 replies
2/29platform/x86: ideapad-laptop: remove unnecessary NULL checksdrivers/platform/x86/ideapad-laptop.c+31 -470 replies
3/29platform/x86: ideapad-laptop: use appropriately typed variable to store the return value of ACPI methodsdrivers/platform/x86/ideapad-laptop.c+13 -70 replies
4/29platform/x86: ideapad-laptop: sort includes lexicographicallydrivers/platform/x86/ideapad-laptop.c+13 -120 replies
5/29platform/x86: ideapad-laptop: add missing call to submodule destructordrivers/platform/x86/ideapad-laptop.c+1 -00 replies
6/29platform/x86: ideapad-laptop: use sysfs_emit()drivers/platform/x86/ideapad-laptop.c+11 -100 replies
7/29platform/x86: ideapad-laptop: use device_{add,remove}_groupdrivers/platform/x86/ideapad-laptop.c+4 -40 replies
8/29platform/x86: ideapad-laptop: use kobj_to_dev()drivers/platform/x86/ideapad-laptop.c+1 -10 replies
9/29platform/x86: ideapad-laptop: use for_each_set_bit() helper to simplify event processingdrivers/platform/x86/ideapad-laptop.c+53 -550 replies
10/29platform/x86: ideapad-laptop: use msecs_to_jiffies() helper instead of hand-crafted formuladrivers/platform/x86/ideapad-laptop.c+7 -40 replies
11/29platform/x86: ideapad-laptop: use dev_{err,warn} or appropriate variant to display log messagesdrivers/platform/x86/ideapad-laptop.c+17 -90 replies
12/29platform/x86: ideapad-laptop: check return value of debugfs_create_dir() for errorsdrivers/platform/x86/ideapad-laptop.c+5 -23 replies
13/29platform/x86: ideapad-laptop: convert ACPI helpers to return -EIO in case of failuredrivers/platform/x86/ideapad-laptop.c+62 -460 replies
14/29platform/x86: ideapad-laptop: always propagate error codes from device attributes' show() callbackdrivers/platform/x86/ideapad-laptop.c+17 -90 replies
15/29platform/x86: ideapad-laptop: misc. device attribute changesdrivers/platform/x86/ideapad-laptop.c+15 -150 replies
16/29platform/x86: ideapad-laptop: group and separate (un)related constants into enumsdrivers/platform/x86/ideapad-laptop.c+37 -270 replies
17/29platform/x86: ideapad-laptop: rework and create new ACPI helpersdrivers/platform/x86/ideapad-laptop.c+77 -950 replies
18/29platform/x86: ideapad-laptop: rework is_visible() logicdrivers/platform/x86/ideapad-laptop.c+55 -250 replies
19/29platform/x86: ideapad-laptop: check for Fn-lock support in HALSdrivers/platform/x86/ideapad-laptop.c+9 -30 replies
20/29platform/x86: ideapad-laptop: check for touchpad support in _CFGdrivers/platform/x86/ideapad-laptop.c+9 -50 replies
21/29platform/x86: ideapad-laptop: change 'status' debugfs file formatdrivers/platform/x86/ideapad-laptop.c+15 -220 replies
22/29platform/x86: ideapad-laptop: change 'cfg' debugfs file formatdrivers/platform/x86/ideapad-laptop.c+18 -150 replies
23/29Revert "platform/x86: ideapad-laptop: Switch touchpad attribute to be RO"drivers/platform/x86/ideapad-laptop.c+4 -50 replies
24/29platform/x86: ideapad-laptop: fix checkpatch warnings, more consistent styledrivers/platform/x86/ideapad-laptop.c+256 -1983 replies
25/29platform/x86: ideapad-laptop: send notification about touchpad state change to sysfsdrivers/platform/x86/ideapad-laptop.c+1 -00 replies
26/29platform/x86: ideapad-laptop: add keyboard backlight control supportdrivers/platform/x86/ideapad-laptop.c+132 -10 replies
27/29platform/x86: ideapad-laptop: add "always on USB charging" control supportDocumentation/ABI/testing/sysfs-platform-ideapad-laptop drivers/platform/x86/ideapad-laptop.c+65 -90 replies
28/29Documentation/ABI: sysfs-platform-ideapad-laptop: update device attribute pathsDocumentation/ABI/testing/sysfs-platform-ideapad-laptop+4 -40 replies
29/29Documentation/ABI: sysfs-platform-ideapad-laptop: conservation_mode attributeDocumentation/ABI/testing/sysfs-platform-ideapad-laptop+9 -00 replies

Reviews trailers per patch

10 of 29 patches have a Reviewed-by or Acked-by.

PatchHans de GoedeAndy Shevchenko
1/29R-b R-b
2/29
3/29R-b R-b
4/29R-b
5/29
6/29R-b R-b
7/29
8/29
9/29R-b R-b
10/29
11/29
12/29
13/29
14/29
15/29
16/29R-b R-b
17/29
18/29
19/29R-b R-b
20/29R-b R-b
21/29
22/29
23/29R-b R-b
24/29
25/29R-b R-b
26/29
27/29
28/29
29/29

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/29] platform/x86: ideapad-laptop: cleanup, keyboard backlight and "always on USB charging" control support, reenable touchpad control

Changes in v3:
- rebase on eabe533904cbcb6c7df530fd807cf2a3c3567d35
("platform/x86: ideapad-laptop: DYTC Platform profile support"), which is referred to as "DYTC patch" in this changelog
- {02} *new patch*
- {03} minor formatting changes
- {05} *new patch*
- {07} *new patch*
- {08} *new patch*
- {09} minor formatting change
- {10} use while loop
- {11} restore log message severity
- {12} *new patch*
- {13} reorder variable definitions,
apply to DYTC patch
- {14} mention ABI breakage
- {15} mention ABI breakage,
use !! to convert to int and "%d" in sysfs_emit(), convert 'camera_power' attribute to boolean-like
- {17} reorder varible definitions,
apply to DYTC patch
- {18} minor formatting changes,
add log messages
- {19} minor formatting change
- {20} move && to end of line
- {21} no longer return -ENODATA due to {02},
explicit alignment instead of tabs in output
- {22} no longer return -ENODATA due to {02}
- {24} reorder device attribute callbacks,
remove some empty lines,
apply to DYTC patch
- {26} use !! to map to range [0, 1],
add log messages
- {27} move documentation change to this patch
- {28} add "Fixes" tag
- {29} add "Fixes" tag

I hope I addressed all concerns adequately, if not, do not hesistate to remind me.

History:
- v2: https://lore.kernel.org/platform-driver-x86/[email protected]/
- v1: https://lore.kernel.org/platform-driver-x86/[email protected]/

Barnabás Pőcze (29):
platform/x86: ideapad-laptop: remove unnecessary dev_set_drvdata()
call
platform/x86: ideapad-laptop: remove unnecessary NULL checks platform/x86: ideapad-laptop: use appropriately typed variable to
store the return value of ACPI methods
platform/x86: ideapad-laptop: sort includes lexicographically platform/x86: ideapad-laptop: add missing call to submodule destructor platform/x86: ideapad-laptop: use sysfs_emit() platform/x86: ideapad-laptop: use device_{add,remove}_group platform/x86: ideapad-laptop: use kobj_to_dev() platform/x86: ideapad-laptop: use for_each_set_bit() helper to
simplify event processing
platform/x86: ideapad-laptop: use msecs_to_jiffies() helper instead of
hand-crafted formula
platform/x86: ideapad-laptop: use dev_{err,warn} or appropriate
variant to display log messages
platform/x86: ideapad-laptop: check return value of
debugfs_create_dir() for errors
platform/x86: ideapad-laptop: convert ACPI helpers to return -EIO in
case of failure
platform/x86: ideapad-laptop: always propagate error codes from device
attributes' show() callback
platform/x86: ideapad-laptop: misc. device attribute changes platform/x86: ideapad-laptop: group and separate (un)related constants
into enums
platform/x86: ideapad-laptop: rework and create new ACPI helpers platform/x86: ideapad-laptop: rework is_visible() logic platform/x86: ideapad-laptop: check for Fn-lock support in HALS platform/x86: ideapad-laptop: check for touchpad support in _CFG platform/x86: ideapad-laptop: change 'status' debugfs file format platform/x86: ideapad-laptop: change 'cfg' debugfs file format Revert "platform/x86: ideapad-laptop: Switch touchpad attribute to be

    RO"

platform/x86: ideapad-laptop: fix checkpatch warnings, more consistent
style
platform/x86: ideapad-laptop: send notification about touchpad state
change to sysfs
platform/x86: ideapad-laptop: add keyboard backlight control support platform/x86: ideapad-laptop: add "always on USB charging" control
support
Documentation/ABI: sysfs-platform-ideapad-laptop: update device
attribute paths
Documentation/ABI: sysfs-platform-ideapad-laptop: conservation_mode
attribute

 .../ABI/testing/sysfs-platform-ideapad-laptop |   26 +-
 drivers/platform/x86/ideapad-laptop.c         | 1284 ++++++++++-------
 2 files changed, 810 insertions(+), 500 deletions(-)
Signature · 1 line
2.30.0