Skip to content
Permalink
Chris-Blake/pl…
Switch branches/tags

Commits on Aug 10, 2021

  1. platform/x86: add meraki-mx100 platform driver

    This adds platform support for the Cisco Meraki MX100 (Tinkerbell)
    network appliance. This sets up the network LEDs and Reset
    button.
    
    Depends-on: ef0eea5 ("mfd: lpc_ich: Enable GPIO driver for DH89xxCC")
    Co-developed-by: Christian Lamparter <chunkeey@gmail.com>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
    Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    riptidewave93 authored and intel-lab-lkp committed Aug 10, 2021

Commits on Jun 9, 2021

  1. platform/x86: think-lmi: Avoid potential read before start of the buffer

    If length equals 0 then reading buf[length-1] will read before the start
    of the buffer.
    
    Avoid this by moving the length == 0 check up.
    
    Cc: Mark Pearson <markpearson@lenovo.com>
    Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210609151752.156902-2-hdegoede@redhat.com
    jwrdegoede committed Jun 9, 2021
  2. platform/x86: think-lmi: Fix check for admin password being set

    tlmi_priv.pwd_admin->password is an array (not a pointer), so the correct
    way to check for the password being set is to check for
    tlmi_priv.pwd_admin->password[0] != 0.
    
    For the second check, replace the check with checking that auth_str is
    set instead.
    
    Cc: Mark Pearson <markpearson@lenovo.com>
    Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
    Addresses-Coverity-ID: 1505158 ("NO_EFFECT")
    Fixes: a7314b3 ("platform/x86: think-lmi: Add WMI interface support on Lenovo platforms")
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210609151752.156902-1-hdegoede@redhat.com
    jwrdegoede committed Jun 9, 2021
  3. platform/x86: dell-wmi-sysman/think-lmi: Make fw_attr_class global st…

    …atic
    
    The dell-wmi-sysman and think-lmi kernel modules both have a global
    struct class *fw_attr_class variable, leading to the following compile
    errors when both are builtin:
    
    ld: drivers/platform/x86/think-lmi.o:(.bss+0x0): multiple definition of `fw_attr_class'; drivers/platform/x86/dell/dell-wmi-sysman/sysman.o:(.bss+0x0): first defined here
    
    In both cases the variable is only used in the file where it is declared.
    Make both declarations static to avoid the linker error.
    
    Cc: Mark Pearson <markpearson@lenovo.com>
    Cc: Dell.Client.Kernel@dell.com
    Reported-by: Nathan Chancellor <nathan@kernel.org>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210609145952.113393-1-hdegoede@redhat.com
    jwrdegoede committed Jun 9, 2021
  4. platform/x86: intel_ips: fix set but unused warning in read_mgtv

    drivers/platform/x86/intel_ips.c:832:6: warning: variable ‘ret’ set but
    not used [-Wunused-but-set-variable]
      832 |  u16 ret;
          |      ^~~
    
    Fix it by mark ret as '__maybe_unused'.
    
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: yangerkun <yangerkun@huawei.com>
    Link: https://lore.kernel.org/r/20210607014702.2981097-1-yangerkun@huawei.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    yangerkun authored and jwrdegoede committed Jun 9, 2021
  5. x86/platform/uv: Constify static attribute_group struct

    The only use of base_attr_group and hubless_base_attr_group is to pass
    their addresses to sysfs_create_group() and sysfs_remove_group(), both
    which takes pointers to const attribute_group structs. Make them const
    to allow the compiler to put them in read-only memory.
    
    Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
    Reviewed-by: Justin Ernst <justin.ernst@hpe.com>
    Link: https://lore.kernel.org/r/20210605203807.60547-5-rikard.falkeborn@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    rikardfalkeborn authored and jwrdegoede committed Jun 9, 2021
  6. platform/x86: tc1100-wmi: Constify static attribute_group struct

    The only use of tc1100_attribute_group is to pass its address to
    sysfs_create_group() and sysfs_remove_group(), both which takes pointer
    to const attribute_group structs. Make it const to allow the compiler to
    put it in read-only memory.
    
    Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
    Link: https://lore.kernel.org/r/20210605203807.60547-4-rikard.falkeborn@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    rikardfalkeborn authored and jwrdegoede committed Jun 9, 2021
  7. platform/x86: intel_pmt_crashlog: Constify static attribute_group struct

    The only use of pmt_crashlog_group is to assign its address to the
    attr_grp field in the intel_pmt_namespace struct, which is a pointer to
    const attribute_group. Make it const to allow the compiler to put it in
    read-only memory.
    
    Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
    Link: https://lore.kernel.org/r/20210605203807.60547-3-rikard.falkeborn@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    rikardfalkeborn authored and jwrdegoede committed Jun 9, 2021
  8. platform/x86: hdaps: Constify static attribute_group struct

    The only use of hdaps_attribute_group is to pass its address to
    sysfs_create_group() and sysfs_remove_group(), both which takes pointers
    to const attribute_group structs. Make it const to allow the compiler to
    put it in read-only memory.
    
    Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
    Reviewed-by: Frank Seidel <frank@f-seidel.de>
    Link: https://lore.kernel.org/r/20210605203807.60547-2-rikard.falkeborn@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    rikardfalkeborn authored and jwrdegoede committed Jun 9, 2021
  9. platform/surface: aggregator: Use list_move_tail instead of list_del/…

    …list_add_tail in ssh_packet_layer.c
    
    Using list_move_tail() instead of list_del() + list_add_tail() in ssh_packet_layer.c.
    
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Baokun Li <libaokun1@huawei.com>
    Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
    Link: https://lore.kernel.org/r/20210609072448.1357524-1-libaokun1@huawei.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Baokun Li authored and jwrdegoede committed Jun 9, 2021
  10. platform/surface: aggregator: Use list_move_tail instead of list_del/…

    …list_add_tail in ssh_request_layer.c
    
    Using list_move_tail() instead of list_del() + list_add_tail() in ssh_request_layer.c.
    
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Baokun Li <libaokun1@huawei.com>
    Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
    Link: https://lore.kernel.org/r/20210609072638.1358174-1-libaokun1@huawei.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Baokun Li authored and jwrdegoede committed Jun 9, 2021
  11. platform/surface: aggregator: Drop unnecessary variable initialization

    The status variable in ssam_controller_event_disable() is always set, no
    need to initialize it.
    
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Link: https://lore.kernel.org/r/20210604210907.25738-3-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 9, 2021
  12. platform/surface: aggregator: Do not return uninitialized value

    The status variable in ssam_nf_refcount_disable_free() is only set when
    the reference count equals zero. Otherwise, it is returned
    uninitialized. Fix this by always initializing status to zero.
    
    Reported-by: kernel test robot <lkp@intel.com>
    Fixes: 640ee17 ("platform/surface: aggregator: Allow enabling of events without notifiers")
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Link: https://lore.kernel.org/r/20210604210907.25738-2-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 9, 2021

Commits on Jun 4, 2021

  1. docs: driver-api: Update Surface Aggregator user-space interface docu…

    …mentation
    
    Update the controller-device user-space interface (cdev) documentation
    for the newly introduced IOCTLs and event interface.
    
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210604134755.535590-8-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 4, 2021
  2. platform/surface: aggregator_cdev: Add lockdep support

    Mark functions with locking requirements via the corresponding lockdep
    calls for debugging and documentary purposes.
    
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210604134755.535590-7-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 4, 2021
  3. platform/surface: aggregator_cdev: Allow enabling of events from user…

    …-space
    
    While events can already be enabled and disabled via the generic request
    IOCTL, this bypasses the internal reference counting mechanism of the
    controller. Due to that, disabling an event will turn it off regardless
    of any other client having requested said event, which may break
    functionality of that client.
    
    To solve this, add IOCTLs wrapping the ssam_controller_event_enable()
    and ssam_controller_event_disable() functions, which have been
    previously introduced for this specific purpose.
    
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210604134755.535590-6-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 4, 2021
  4. platform/surface: aggregator_cdev: Add support for forwarding events …

    …to user-space
    
    Currently, debugging unknown events requires writing a custom driver.
    This is somewhat difficult, slow to adapt, and not entirely
    user-friendly for quickly trying to figure out things on devices of some
    third-party user. We can do better. We already have a user-space
    interface intended for debugging SAM EC requests, so let's add support
    for receiving events to that.
    
    This commit provides support for receiving events by reading from the
    controller file. It additionally introduces two new IOCTLs to control
    which event categories will be forwarded. Specifically, a user-space
    client can specify which target categories it wants to receive events
    from by registering the corresponding notifier(s) via the IOCTLs and
    after that, read the received events by reading from the controller
    device.
    
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210604134755.535590-5-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 4, 2021
  5. platform/surface: aggregator: Update copyright

    It's 2021, update the copyright accordingly.
    
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210604134755.535590-4-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 4, 2021
  6. platform/surface: aggregator: Allow enabling of events without notifiers

    We can already enable and disable SAM events via one of two ways: either
    via a (non-observer) notifier tied to a specific event group, or a
    generic event enable/disable request. In some instances, however,
    neither method may be desirable.
    
    The first method will tie the event enable request to a specific
    notifier, however, when we want to receive notifications for multiple
    event groups of the same target category and forward this to the same
    notifier callback, we may receive duplicate events, i.e. one event per
    registered notifier. The second method will bypass the internal
    reference counting mechanism, meaning that a disable request will
    disable the event regardless of any other client driver using it, which
    may break the functionality of that driver.
    
    To address this problem, add new functions that allow enabling and
    disabling of events via the event reference counting mechanism built
    into the controller, without needing to register a notifier.
    
    This can then be used in combination with observer notifiers to process
    multiple events of the same target category without duplication in the
    same callback function.
    
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Link: https://lore.kernel.org/r/20210604134755.535590-3-luzmaximilian@gmail.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 4, 2021
  7. platform/surface: aggregator: Allow registering notifiers without ena…

    …bling events
    
    Currently, each SSAM event notifier is directly tied to one group of
    events. This makes sense as registering a notifier will automatically
    take care of enabling the corresponding event group and normally drivers
    only need notifications for a very limited number of events, associated
    with different callbacks for each group.
    
    However, there are rare cases, especially for debugging, when we want to
    get notifications for a whole event target category instead of just a
    single group of events in that category. Registering multiple notifiers,
    i.e. one per group, may be infeasible due to two issues: a) we might not
    know every event enable/disable specification as some events are
    auto-enabled by the EC and b) forwarding this to the same callback will
    lead to duplicate events as we might not know the full event
    specification to perform the appropriate filtering.
    
    This commit introduces observer-notifiers, which are notifiers that are
    not tied to a specific event group and do not attempt to manage any
    events. In other words, they can be registered without enabling any
    event group or incrementing the corresponding reference count and just
    act as silent observers, listening to all currently/previously enabled
    events based on their match-specification.
    
    Essentially, this allows us to register one single notifier for a full
    event target category, meaning that we can process all events of that
    target category in a single callback without duplication. Specifically,
    this will be used in the cdev debug interface to forward events to
    user-space via a device file from which the events can be read.
    
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210604134755.535590-2-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 4, 2021
  8. platform/mellanox: mlxreg-hotplug: Revert "move to use request_irq by…

    … IRQF_NO_AUTOEN flag"
    
    It causes mlxreg-hotplug probing failure: request_threaded_irq()
     returns -EINVAL due to true value of condition:
    ((irqflags & IRQF_SHARED) && (irqflags & IRQF_NO_AUTOEN))
    after flag "IRQF_NO_AUTOEN" has been added to:
    	err = devm_request_irq(&pdev->dev, priv->irq,
    			       mlxreg_hotplug_irq_handler, IRQF_TRIGGER_FALLING
    			       | IRQF_SHARED | IRQF_NO_AUTOEN,
    			       "mlxreg-hotplug", priv);
    
    This reverts commit bee3ecf ("platform/mellanox: mlxreg-hotplug: move
    to use request_irq by IRQF_NO_AUTOEN flag").
    
    Signed-off-by: Mykola Kostenok <c_mykolak@nvidia.com>
    Acked-by: Vadim Pasternak <vadimp@nvidia.com>
    Link: https://lore.kernel.org/r/20210603172827.2599908-1-c_mykolak@nvidia.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    odmyko authored and jwrdegoede committed Jun 4, 2021
  9. platform/surface: dtx: Add missing mutex_destroy() call in failure path

    When we fail to open the device file due to DTX being shut down, the
    mutex is initialized but never destroyed. We are destroying it when
    releasing the file, so add the missing call in the failure path as well.
    
    Fixes: 1d60999 ("platform/surface: Add DTX driver")
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Link: https://lore.kernel.org/r/20210604132540.533036-1-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 4, 2021

Commits on Jun 3, 2021

  1. platform/x86: dell-wmi-sysman: fw_attr_inuse can be static

    drivers/platform/x86/firmware_attributes_class.c:11:5: warning: symbol 'fw_attr_inuse' was not declared. Should it be static?
    
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: kernel test robot <lkp@intel.com>
    Link: https://lore.kernel.org/r/20210603153936.GA65404@7832cb195c0b
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    intel-lab-lkp authored and jwrdegoede committed Jun 3, 2021
  2. platform/x86: thinkpad-lmi: Remove unused display_name member from st…

    …ruct tlmi_pwd_setting
    
    The struct tlmi_pwd_setting display_name member is initialized,
    but never read. Remove it and the TLMI_PWDTYPE_MAXLEN define.
    
    While at it also remove some other unused [MAX]LEN defines.
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210531135911.82582-1-hdegoede@redhat.com
    jwrdegoede committed Jun 3, 2021
  3. platform/x86: think-lmi: Add WMI interface support on Lenovo platforms

    For Lenovo platforms that support a WMI interface to the BIOS add
    support, using the firmware-attributes class, to allow users to access
    and modify various BIOS related settings.
    
    Signed-off-by: Mark Pearson <markpearson@lenovo.com>
    Link: https://lore.kernel.org/r/20210530223111.25929-3-markpearson@lenovo.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    mrhpearson authored and jwrdegoede committed Jun 3, 2021
  4. platform/x86: dell-wmi-sysman: Use firmware_attributes_class helper

    Update Dell WMI sysman driver to use newly implemented helper module.
    
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Mark Pearson <markpearson@lenovo.com>
    Link: https://lore.kernel.org/r/20210530223111.25929-2-markpearson@lenovo.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    mrhpearson authored and jwrdegoede committed Jun 3, 2021
  5. platform/x86: firmware_attributes_class: Create helper file for handl…

    …ing firmware-attributes class registration events
    
    This offers shared code for registering the firmware_attributes_class,
    which is used by the Dell and Lenovo WMI management drivers.
    
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Mark Pearson <markpearson@lenovo.com>
    Link: https://lore.kernel.org/r/20210530223111.25929-1-markpearson@lenovo.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    mrhpearson authored and jwrdegoede committed Jun 3, 2021
  6. platform/surface: aggregator: Fix event disable function

    Disabling events silently fails due to the wrong command ID being used.
    Instead of the command ID for the disable call, the command ID for the
    enable call was being used. This causes the disable call to enable the
    event instead. As the event is already enabled when we call this
    function, the EC silently drops this command and does nothing.
    
    Use the correct command ID for disabling the event to fix this.
    
    Fixes: c167b9c ("platform/surface: Add Surface Aggregator subsystem")
    Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
    Link: https://lore.kernel.org/r/20210603000636.568846-1-luzmaximilian@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    qzed authored and jwrdegoede committed Jun 3, 2021
  7. platform/x86: toshiba_acpi: Fix missing error code in toshiba_acpi_se…

    …tup_keyboard()
    
    The error code is missing in this code scenario, add the error code
    '-EINVAL' to the return value 'error'.
    
    Eliminate the follow smatch warning:
    
    drivers/platform/x86/toshiba_acpi.c:2834 toshiba_acpi_setup_keyboard()
    warn: missing error code 'error'.
    
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
    Link: https://lore.kernel.org/r/1622628348-87035-1-git-send-email-jiapeng.chong@linux.alibaba.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Jiapeng Chong authored and jwrdegoede committed Jun 3, 2021

Commits on May 31, 2021

  1. platform/x86: touchscreen_dmi: Fix Chuwi Hi10 Pro comment

    Fix the comment on the entry for the Chuwi Hi10 Pro tablet:
    1. Replace "Prus" type with "Pro".
    2. Fix the model number, the Chuwi Hi10 Pro is the CWI529, not the CWI597.
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210530104744.6720-1-hdegoede@redhat.com
    jwrdegoede committed May 31, 2021

Commits on May 27, 2021

  1. platform/x86: dell-privacy: Add support for Dell hardware privacy

    add support for Dell privacy driver for the Dell units equipped
    hardware privacy design, which protect users privacy of audio and
    camera from hardware level. Once the audio or camera privacy mode
    activated, any applications will not get any audio or video stream
    when user pressed ctrl+F4 hotkey, audio privacy mode will be
    enabled, micmute led will be also changed accordingly
    The micmute led is fully controlled by hardware & EC(embedded controller)
    and camera mute hotkey is Ctrl+F9. Currently design only emits
    SW_CAMERA_LENS_COVER event while the camera lens shutter will be
    changed by EC & HW(hardware) control
    
    *The flow is like this:
    1) User presses key. HW does stuff with this key (timeout timer is started)
    2) WMI event is emitted from BIOS to kernel
    3) WMI event is received by dell-privacy
    4) KEY_MICMUTE emitted from dell-privacy
    5) Userland picks up key and modifies kcontrol for SW mute
    6) Codec kernel driver catches and calls ledtrig_audio_set
    7) dell-privacy notifies EC, the timeout is cancelled and the HW mute
       is activated. If the EC is not notified then the HW mic mute will
       activate when the timeout triggers, just a bit later than with the
       active ack.
    
    Signed-off-by: Perry Yuan <perry_yuan@dell.com>
    Link: https://lore.kernel.org/r/20210506115605.1504-1-Perry_Yuan@Dell.com
    [hdegoede@redhat.com: Rework Kconfig/Makefile bits + other small fixups]
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Perry Yuan authored and jwrdegoede committed May 27, 2021
  2. platform/x86: dell-wmi: Rename dell-wmi.c to dell-wmi-base.c

    Rename dell-wmi.c to dell-wmi-base.c, so that we can have other
    dell-wmi-foo.c files which can be added to dell-wmi.ko as "plugins"
    controlled by separate boolean Kconfig options.
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    jwrdegoede committed May 27, 2021
  3. platform/x86: thinkpad_acpi: Add X1 Carbon Gen 9 second fan support

    The X1 Carbon Gen 9 uses two fans instead of one like the previous
    generation. This adds support for the second fan. It has been tested
    on my X1 Carbon Gen 9 (20XXS00100) and works fine.
    
    Signed-off-by: Til Jasper Ullrich <tju@tju.me>
    Link: https://lore.kernel.org/r/20210525150950.14805-1-tju@tju.me
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Til Jasper Ullrich authored and jwrdegoede committed May 27, 2021

Commits on May 25, 2021

  1. platform/x86: thinkpad_acpi: Fix inconsistent indenting

    Eliminate the follow smatch warning:
    
    drivers/platform/x86/thinkpad_acpi.c:7942 volume_write() warn:
    inconsistent indenting.
    
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
    Link: https://lore.kernel.org/r/1621837438-70790-1-git-send-email-jiapeng.chong@linux.alibaba.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Jiapeng Chong authored and jwrdegoede committed May 25, 2021
  2. platform/x86: ideapad-laptop: Ignore VPC event bit 10

    VPC event bit 10 gets set on a Yoga 300-11IBR when the EC believes that the
    device has changed between laptop/tent/stand/tablet mode.
    
    The EC relies on getting angle info from 2 accelerometers through a special
    windows service calling a DSM on the DUAL250E ACPI-device. Linux does not
    do this, making the laptop/tent/stand/tablet mode info unreliable.
    
    Ignore VPC event bit 10 to avoid the warnings triggered by the default case
    in ideapad_acpi_notify().
    
    Note that the plan for Linux is to have iio-sensor-proxy read the 2
    accelerometers and have it provide info about which mode 360° hinges
    2-in-1s to the rest of userspace:
    https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/issues/216
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20210523172331.177834-1-hdegoede@redhat.com
    jwrdegoede committed May 25, 2021
Older