Skip to content
Snippets Groups Projects
  1. Jan 21, 2014
  2. Jan 17, 2014
  3. Jan 16, 2014
    • Zhang Rui's avatar
      ACPI: fix module autoloading for ACPI enumerated devices · 8c4ff6d0
      Zhang Rui authored
      
      ACPI enumerated devices has ACPI style _HID and _CID strings,
      all of these strings can be used for both driver loading and matching.
      
      Currently, in Platform, I2C and SPI bus, the ACPI style driver matching
      is supported by invoking acpi_driver_match_device() in bus .match() callback.
      But, the module autoloading is still broken.
      
      For example, there is any ACPI device with _HID "INTABCD" that is
      enumerated to platform bus, and we have a driver that can probe it.
      
      The driver exports its module_alias as "acpi:INTABCD" use the following code
      static const struct acpi_device_id xxx_acpi_match[] = {
              { "INTABCD", 0 },
              { }
      };
      MODULE_DEVICE_TABLE(acpi, xxx_acpi_match);
      
      But, unfortunately, the device' modalias is shown as "platform:INTABCD:00",
      please refer to modalias_show() and platform_uevent() in
      drivers/base/platform.c.
      This results in that the driver will not be loaded automatically when the
      device node is created, because their modalias do not match.
      
      This also applies to I2C and SPI bus.
      
      With this patch, the device' modalias will be shown as "acpi:INTABCD" as well.
      
      Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
      Acked-by: default avatarMark Brown <broonie@linaro.org>
      Acked-by: default avatarWolfram Sang <wsa@the-dreams.de>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8c4ff6d0
    • Mika Westerberg's avatar
      spi/pxa2xx: fix compilation warning when !CONFIG_PM_SLEEP · 382cebb0
      Mika Westerberg authored
      
      CONFIG_PM will be set if either or both CONFIG_PM_SLEEP and
      CONFIG_PM_RUNTIME is set. Compiling the driver with !CONFIG_PM_SLEEP causes
      following compilation warning:
      
      drivers/spi/spi-pxa2xx.c:1270:12: warning: ‘pxa2xx_spi_suspend’ defined but not used [-Wunused-function]
      
      Fix this by using CONFIG_PM_SLEEP instead.
      
      Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      382cebb0
  4. Jan 14, 2014
  5. Jan 13, 2014
  6. Jan 12, 2014
  7. Jan 10, 2014
  8. Jan 09, 2014
  9. Jan 08, 2014
  10. Jan 07, 2014
  11. Jan 06, 2014
    • Daniel Santos's avatar
      spidev: fix hang when transfer_one_message fails · e120cc0d
      Daniel Santos authored
      
      This corrects a problem in spi_pump_messages() that leads to an spi
      message hanging forever when a call to transfer_one_message() fails.
      This failure occurs in my MCP2210 driver when the cs_change bit is set
      on the last transfer in a message, an operation which the hardware does
      not support.
      
      Rationale
      Since the transfer_one_message() returns an int, we must presume that it
      may fail.  If transfer_one_message() should never fail, it should return
      void.  Thus, calls to transfer_one_message() should properly manage a
      failure.
      
      Fixes: ffbbdd21 (spi: create a message queueing infrastructure)
      Signed-off-by: default avatarDaniel Santos <daniel.santos@pobox.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      Cc: stable@vger.kernel.org
      e120cc0d
    • Baruch Siach's avatar
      spi: dw-pci: fix typo · fa4934a0
      Baruch Siach authored
      
      Commit 04f421e7 (spi: dw: use managed resources) introduced a typo in
      struct field reference. Fix it.
      
      Fixes build failure:
      
      drivers/spi/spi-dw-pci.c: In function 'spi_pci_probe':
      drivers/spi/spi-dw-pci.c:50:29: error: 'dev' undeclared (first use in this function)
        dwpci = devm_kzalloc(&pdev-dev, sizeof(struct dw_spi_pci), GFP_KERNEL);
                                   ^
      
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      fa4934a0
  12. Jan 02, 2014
  13. Dec 31, 2013
Loading