Skip to content

platform/x86: acerhdf: new BIOS string, better modparam handling

Paul Gortmaker lkml platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6platform/x86: acerhdf: clarify modinfo messages for BIOS overridedrivers/platform/x86/acerhdf.c+2 -20 replies
2/6platform/x86: acerhdf: Enable ability to list supported systemsdrivers/platform/x86/acerhdf.c+14 -00 replies
3/6platform/x86: acerhdf: Remove cut-and-paste trap from instructionsdrivers/platform/x86/Kconfig drivers/platform/x86/acerhdf.c+5 -20 replies
4/6platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307drivers/platform/x86/acerhdf.c+1 -00 replies
5/6platform/x86: acerhdf: mark appropriate content with __init prefixdrivers/platform/x86/acerhdf.c+3 -30 replies
6/6platform/x86: acerhdf: restructure to allow large BIOS table be __initconstdrivers/platform/x86/acerhdf.c+28 -130 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Feuerer
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

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

Read the v1 thread

Cover letter [PATCH 0/6] platform/x86: acerhdf: new BIOS string, better modparam handling

I came across this older netbook over the xmas holidays, and noticed the acerhdf driver wouldn't load. Turns out the BIOS string was too new, and not listed in the driver. There were module params for overrides, but I found their use isn't quite clear without reading the source.

Here I clarify some of the module parameter usage, and then add the new BIOS string, so they won't be needed for this particular platform. Some probe code is also shifted out to be __init to reduce the driver size a bit. Further details can be found in the respective commit logs.

Since it was months ago when I created these patches, I retested on top of tree to ensure things still work, as can be seen below.

root@gw:~# cat /proc/version 
Linux version 4.19.0-rc4+ (paul@host) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)) #1 SMP Thu Sep 20 18:47:15 EDT 2018
root@gw:~# modprobe acerhdf
root@gw:~# dmesg|tail -n3
acerhdf: Acer Aspire One Fan driver, v.0.7.0
acerhdf: Fan control off, to enable do:
acerhdf: echo -n "enabled" > /sys/class/thermal/thermal_zoneN/mode # N=0,1,2...
root@gw:~# lsmod
Module                  Size  Used by
acerhdf                16384  0 
root@gw:~# 

Paul.
---

Cc Peter Feuerer <[email protected]>
Cc Darren Hart <[email protected]>
Cc Andy Shevchenko <[email protected]>

Paul Gortmaker (6):
platform/x86: acerhdf: clarify modinfo messages for BIOS override platform/x86: acerhdf: Enable ability to list supported systems platform/x86: acerhdf: Remove cut-and-paste trap from instructions platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307 platform/x86: acerhdf: mark appropriate content with __init prefix platform/x86: acerhdf: restructure to allow large BIOS table be __initconst

 drivers/platform/x86/Kconfig   |  5 +++-
 drivers/platform/x86/acerhdf.c | 68 ++++++++++++++++++++++++++++++------------
 2 files changed, 53 insertions(+), 20 deletions(-)
Signature · 1 line
2.15.0