1. 27 9月, 2018 1 次提交
  2. 09 8月, 2018 1 次提交
    • H
      platform/x86: Add ACPI i2c-multi-instantiate pseudo driver · e64e8498
      Hans de Goede 提交于
      On systems with ACPI instantiated i2c-clients, normally there is 1 fw_node
      per i2c-device and that fw-node contains 1 I2cSerialBus resource for that 1
      i2c-device.
      
      But in some rare cases the manufacturer has decided to describe multiple
      i2c-devices in a single ACPI fwnode with multiple I2cSerialBus resources.
      
      An earlier attempt to fix this in the i2c-core resulted in a lot of extra
      code to support this corner-case.
      
      This commit introduces a new i2c-multi-instantiate driver which fixes this
      in a different way. This new driver can be built as a module which will
      only loaded on affected systems.
      
      This driver will instantiate a new i2c-client per I2cSerialBus resource,
      using the driver_data from the acpi_device_id it is binding to to tell it
      which chip-type (and optional irq-resource) to use when instantiating.
      
      Note this driver depends on a platform device being instantiated for the
      ACPI fwnode, see the i2c_multi_instantiate_ids list of ACPI device-ids in
      drivers/acpi/scan.c: acpi_device_enumeration_by_parent().
      Acked-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: NWolfram Sang <wsa@the-dreams.de>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e64e8498
  3. 02 7月, 2018 1 次提交
  4. 16 6月, 2018 1 次提交
  5. 25 5月, 2018 1 次提交
  6. 19 5月, 2018 1 次提交
  7. 13 5月, 2018 1 次提交
  8. 05 5月, 2018 1 次提交
    • M
      platform/x86: Kconfig: Fix dell-laptop dependency chain. · 7fe3fa3b
      Mario Limonciello 提交于
      As reported by Randy Dunlap:
      >> WARNING: unmet direct dependencies detected for DELL_SMBIOS
      >>   Depends on [m]: X86 [=y] && X86_PLATFORM_DEVICES [=y]
      >>	&& (DCDBAS [=m] ||
      >> DCDBAS [=m]=n) && (ACPI_WMI [=n] || ACPI_WMI [=n]=n)
      >>   Selected by [y]:
      >>   - DELL_LAPTOP [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y]
      >> && DMI [=y]
      >> && BACKLIGHT_CLASS_DEVICE [=y] && (ACPI_VIDEO [=n] ||
      >>	ACPI_VIDEO [=n]=n)
      >> && (RFKILL [=n] || RFKILL [=n]=n) && SERIO_I8042 [=y]
      >>
      
      Right now it's possible to set dell laptop to compile in but this
      causes dell-smbios to compile in which breaks if dcdbas is a module.
      
      Dell laptop shouldn't select dell-smbios anymore, but depend on it.
      
      Fixes: 32d7b19b (platform/x86: dell-smbios: Resolve dependency error on DCDBAS)
      Reported-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NMario Limonciello <mario.limonciello@dell.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      7fe3fa3b
  9. 23 4月, 2018 1 次提交
    • M
      platform/x86: Kconfig: Fix dell-laptop dependency chain. · 6ed66c3c
      Mario Limonciello 提交于
      As reported by Randy Dunlap:
      >> WARNING: unmet direct dependencies detected for DELL_SMBIOS
      >>   Depends on [m]: X86 [=y] && X86_PLATFORM_DEVICES [=y]
      >>	&& (DCDBAS [=m] ||
      >> DCDBAS [=m]=n) && (ACPI_WMI [=n] || ACPI_WMI [=n]=n)
      >>   Selected by [y]:
      >>   - DELL_LAPTOP [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y]
      >> && DMI [=y]
      >> && BACKLIGHT_CLASS_DEVICE [=y] && (ACPI_VIDEO [=n] ||
      >>	ACPI_VIDEO [=n]=n)
      >> && (RFKILL [=n] || RFKILL [=n]=n) && SERIO_I8042 [=y]
      >>
      
      Right now it's possible to set dell laptop to compile in but this
      causes dell-smbios to compile in which breaks if dcdbas is a module.
      
      Dell laptop shouldn't select dell-smbios anymore, but depend on it.
      
      Fixes: 32d7b19b (platform/x86: dell-smbios: Resolve dependency error on DCDBAS)
      Reported-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NMario Limonciello <mario.limonciello@dell.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      6ed66c3c
  10. 24 3月, 2018 1 次提交
    • V
      platform/x86: mlx-platform: Add physical bus number auto detection · ef0f6226
      Vadim Pasternak 提交于
      mlx-platform does not provide a bus number to i2c-mlxcpld, assuming it
      is always one. On some x86 systems, other i2c drivers may probe before
      i2c-mlxcpld, causing bus one to be busy.
      
      Make mlx-platform determine which adapter number is free prior to
      activating i2c-mlxpld, adjusting the mux base numbers accordingly.
      Update the mlxreg-hotplug pdata similarly.
      
      This adds an explicit mlx-platform build dependency on I2C, update the
      Kconfig accordingly. Add the missing REGMAP dependency while we're at
      it.
      Signed-off-by: NVadim Pasternak <vadimp@mellanox.com>
      [dvhart: Rewrite commit message more concisely]
      [dvhart: Add build dependencies]
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      ef0f6226
  11. 15 3月, 2018 1 次提交
    • D
      platform/x86: dell-smbios: Resolve dependency error on ACPI_WMI · 75073a64
      Darren Hart 提交于
      Similarly to DCDBAS for DELL_SMBIOS_SMM, if DELL_SMBIOS_WMI is enabled,
      DELL_SMBIOS becomes dependent on ACPI_WMI. Update the depends lines to
      prevent a configuration where DELL_SMBIOS=y and either backend
      dependency =m. Update the comment accordingly.
      
      Cc: Mario Limonciello <mario.limonciello@dell.com>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: Dominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      75073a64
  12. 13 3月, 2018 1 次提交
    • D
      platform/x86: dell-smbios: Resolve dependency error on ACPI_WMI · 4716007c
      Darren Hart 提交于
      Similarly to DCDBAS for DELL_SMBIOS_SMM, if DELL_SMBIOS_WMI is enabled,
      DELL_SMBIOS becomes dependent on ACPI_WMI. Update the depends lines to
      prevent a configuration where DELL_SMBIOS=y and either backend
      dependency =m. Update the comment accordingly.
      
      Cc: Mario Limonciello <mario.limonciello@dell.com>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: Dominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      4716007c
  13. 10 3月, 2018 3 次提交
    • D
      platform/x86: dell-smbios: Resolve dependency error on DCDBAS · 32d7b19b
      Darren Hart (VMware) 提交于
      When the DELL_SMBIOS_SMM backend is enabled, the DELL_SMBIOS symbol
      depends on DELL_DCDBAS, and we must avoid the situation where
      DELL_SMBIOS=y and DCDBAS=m.
      
      Adding the conditional dependency to DELL_SMBIOS such as:
      
      depends !DELL_SMBIOS_SMM || (DCDBAS || DCDBAS=n)
      
      results in the Kconfig tooling complaining about a circular dependency,
      although it appears to work in practice.
      
      Avoid the errors by simplifying the dependency and forcing DELL_SMBIOS
      to be <= DCDBAS if DCDBAS is enabled (thanks to Greg KH for the
      suggestion).
      
      Cc: Mario.Limonciello@dell.com
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      32d7b19b
    • D
      platform/x86: Allow for SMBIOS backend defaults · 329d58b8
      Darren Hart (VMware) 提交于
      Avoid accidental configurations by setting default y for DELL_SMBIOS
      backends. Avoid this impacting the default build size, by making them
      dependent on DELL_SMBIOS, so they only appear when DELL_SMBIOS is
      manually selected, or by DELL_LAPTOP or DELL_WMI.
      
      While DELL_SMBIOS does have a prompt, it does not have any dependencies.
      Keeping DELL_SMBIOS visible, despite being "select"ed by DELL_LAPTOP and
      DELL_WMI, is a deliberate choice to provide context for the WMI and SMM
      backends, which would otherwise appear to float without context within
      the menu.
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      329d58b8
    • M
      platform/x86: dell-smbios: Link all dell-smbios-* modules together · 25d47027
      Mario Limonciello 提交于
      Some race conditions were raised due to dell-smbios and its backends
      not being ready by the time that a consumer would call one of the
      exported methods.
      
      To avoid this problem, guarantee that all initialization has been
      done by linking them all together and running init for them all.
      
      As part of this change the Kconfig needs to be adjusted so that
      CONFIG_DELL_SMBIOS_SMM and CONFIG_DELL_SMBIOS_WMI are boolean
      rather than modules.
      
      CONFIG_DELL_SMBIOS is a visually selectable option again and both
      CONFIG_DELL_SMBIOS_WMI and CONFIG_DELL_SMBIOS_SMM are optional.
      Signed-off-by: NMario Limonciello <mario.limonciello@dell.com>
      [dvhart: Update prompt and help text for DELL_SMBIOS_* backends]
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      25d47027
  14. 09 3月, 2018 1 次提交
    • D
      platform/x86: dell-smbios: Resolve dependency error on DCDBAS · cc69c88f
      Darren Hart (VMware) 提交于
      When the DELL_SMBIOS_SMM backend is enabled, the DELL_SMBIOS symbol
      depends on DELL_DCDBAS, and we must avoid the situation where
      DELL_SMBIOS=y and DCDBAS=m.
      
      Adding the conditional dependency to DELL_SMBIOS such as:
      
      depends !DELL_SMBIOS_SMM || (DCDBAS || DCDBAS=n)
      
      results in the Kconfig tooling complaining about a circular dependency,
      although it appears to work in practice.
      
      Avoid the errors by simplifying the dependency and forcing DELL_SMBIOS
      to be <= DCDBAS if DCDBAS is enabled (thanks to Greg KH for the
      suggestion).
      
      Cc: Mario.Limonciello@dell.com
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      cc69c88f
  15. 06 3月, 2018 1 次提交
    • D
      platform/x86: Allow for SMBIOS backend defaults · c715e434
      Darren Hart (VMware) 提交于
      Avoid accidental configurations by setting default y for DELL_SMBIOS
      backends. Avoid this impacting the default build size, by making them
      dependent on DELL_SMBIOS, so they only appear when DELL_SMBIOS is
      manually selected, or by DELL_LAPTOP or DELL_WMI.
      
      While DELL_SMBIOS does have a prompt, it does not have any dependencies.
      Keeping DELL_SMBIOS visible, despite being "select"ed by DELL_LAPTOP and
      DELL_WMI, is a deliberate choice to provide context for the WMI and SMM
      backends, which would otherwise appear to float without context within
      the menu.
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      c715e434
  16. 03 3月, 2018 1 次提交
    • M
      platform/x86: dell-smbios: Link all dell-smbios-* modules together · 41e36f2f
      Mario Limonciello 提交于
      Some race conditions were raised due to dell-smbios and its backends
      not being ready by the time that a consumer would call one of the
      exported methods.
      
      To avoid this problem, guarantee that all initialization has been
      done by linking them all together and running init for them all.
      
      As part of this change the Kconfig needs to be adjusted so that
      CONFIG_DELL_SMBIOS_SMM and CONFIG_DELL_SMBIOS_WMI are boolean
      rather than modules.
      
      CONFIG_DELL_SMBIOS is a visually selectable option again and both
      CONFIG_DELL_SMBIOS_WMI and CONFIG_DELL_SMBIOS_SMM are optional.
      Signed-off-by: NMario Limonciello <mario.limonciello@dell.com>
      [dvhart: Update prompt and help text for DELL_SMBIOS_* backends]
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      41e36f2f
  17. 24 2月, 2018 1 次提交
  18. 22 2月, 2018 1 次提交
  19. 01 2月, 2018 2 次提交
  20. 16 1月, 2018 3 次提交
  21. 21 12月, 2017 1 次提交
  22. 27 11月, 2017 2 次提交
  23. 19 11月, 2017 1 次提交
  24. 04 11月, 2017 3 次提交
  25. 03 11月, 2017 1 次提交
  26. 28 10月, 2017 1 次提交
  27. 12 10月, 2017 1 次提交
  28. 28 9月, 2017 1 次提交
  29. 20 9月, 2017 1 次提交
  30. 21 7月, 2017 1 次提交
    • A
      platform/x86: peaq-wmi: select INPUT_POLLDEV · a00c6963
      Arnd Bergmann 提交于
      The new driver fails to build without INPUT_POLLDEV
      
      drivers/platform/x86/peaq-wmi.o: In function `peaq_wmi_exit':
      peaq-wmi.c:(.exit.text+0x1c): undefined reference to `input_unregister_polled_device'
      drivers/platform/x86/peaq-wmi.o: In function `peaq_wmi_init':
      peaq-wmi.c:(.init.text+0x23): undefined reference to `input_allocate_polled_device'
      peaq-wmi.c:(.init.text+0x18e): undefined reference to `input_register_polled_device'
      
      For some reason, all other drivers that need this use 'select'
      here rather than 'depends on', so I'm doing the same.
      
      Fixes: 13bb0fd5 ("platform/x86: peaq-wmi: Add new peaq-wmi driver")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      a00c6963
  31. 01 7月, 2017 1 次提交
    • M
      platform/x86: fujitsu-laptop: rework debugging · eee77da1
      Michał Kępień 提交于
      Using a dedicated Kconfig option for enabling debugging means the user
      may be forced to recompile their kernel in order to gather debugging
      information, which is inconvenient.  Replace custom debugging
      infrastructure with standard logging functions, taking advantage of
      dynamic debug.  Replace a pr_info() call inside an ACPI callback with an
      acpi_handle_info() call.
      
      The following mapping was used:
      
        - FUJLAPTOP_DBG_ERROR -> acpi_handle_err()
        - FUJLAPTOP_DBG_WARN  -> acpi_handle_info() / dev_info()
        - FUJLAPTOP_DBG_INFO  -> acpi_handle_debug()
        - FUJLAPTOP_DBG_TRACE -> acpi_handle_debug() / dev_dbg()
      
      This means that some events which used to only be logged when the user
      explicitly requested it will now be logged by default:
      
        - ACPI method evaluation errors,
        - unknown ACPI notification codes,
        - unknown hotkey scancodes.
      
      The first type of events should happen rarely, if ever at all.  The rest
      is interesting from driver development perspective as their presence in
      the logs will mean the driver is unaware of certain events, handling of
      which should be implemented.
      Signed-off-by: NMichał Kępień <kernel@kempniu.pl>
      Reviewed-by: NJonathan Woithe <jwoithe@just42.net>
      Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
      eee77da1
  32. 15 6月, 2017 1 次提交