1. 13 12月, 2013 2 次提交
  2. 28 11月, 2013 2 次提交
  3. 26 11月, 2013 4 次提交
  4. 19 11月, 2013 1 次提交
  5. 18 11月, 2013 1 次提交
    • A
      i2c: i2c-eg20t: do not print error message in syslog if no ACK received · 5e47eec0
      Andreas Werner 提交于
      Using the i2c-eg20t driver and call i2cdetect or probe on the bus,
      the driver will print a lot of error messages if there was no ACK
      received.
      
      i2cdetect normally print a table with all the available devices. If there
      is no device on the address, the table will be empty.
      Currently with the i2c-eg20t driver, the table is not visible because
      the error messages destroy the table.
      
      Error message: pch_i2c_getack return -71
      
      This patch prevent the driver to print the messages to syslog.
      The pch_i2c_wait_for_check_xfer function is the only one who is
      calling pch_i2c_getack, so we can delete the function and add the
      read to pch_i2c_wait_for_check_xfer.
      If no ACK is received, the Message will be printed as a dbg
      message.
      
      Fixed print message to be a one liner so we can grep for the
      error message.
      
      Tested on Intel Atom E6xx and Eg20t Chipset.
      Signed-off-by: NAndreas Werner <wernerandy@gmx.de>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      5e47eec0
  6. 16 11月, 2013 3 次提交
  7. 15 11月, 2013 8 次提交
    • W
      tree-wide: use reinit_completion instead of INIT_COMPLETION · 16735d02
      Wolfram Sang 提交于
      Use this new function to make code more comprehensible, since we are
      reinitialzing the completion, not initializing.
      
      [akpm@linux-foundation.org: linux-next resyncs]
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      Acked-by: Linus Walleij <linus.walleij@linaro.org> (personally at LCE13)
      Cc: Ingo Molnar <mingo@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      16735d02
    • J
      i2c: Use stable dev_name for ACPI enumerated I2C slaves · 70762abb
      Jarkko Nikula 提交于
      Current I2C adapter id - client address "x-00yy" based device naming scheme
      is not always stable enough to be used in name based matching, for instance
      within ALSA SoC subsystem.
      
      This is problematic in PC kind of platforms where I2C adapter numbers can
      change due variable amount of bus controllers, probe order, add-on cards or
      just because of BIOS settings.
      
      This patch addresses the problem by using the ACPI device name with
      "i2c-" prefix for ACPI enumerated I2C slaves. For them device name
      "x-00yz" becomes "i2c-INTABCD:ij" after this patch.
      Signed-off-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Acked-by: NWolfram Sang <wsa@the-dreams.de>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      70762abb
    • R
      ACPI / driver core: Store an ACPI device pointer in struct acpi_dev_node · 7b199811
      Rafael J. Wysocki 提交于
      Modify struct acpi_dev_node to contain a pointer to struct acpi_device
      associated with the given device object (that is, its ACPI companion
      device) instead of an ACPI handle corresponding to it.  Introduce two
      new macros for manipulating that pointer in a CONFIG_ACPI-safe way,
      ACPI_COMPANION() and ACPI_COMPANION_SET(), and rework the
      ACPI_HANDLE() macro to take the above changes into account.
      Drop the ACPI_HANDLE_SET() macro entirely and rework its users to
      use ACPI_COMPANION_SET() instead.  For some of them who used to
      pass the result of acpi_get_child() directly to ACPI_HANDLE_SET()
      introduce a helper routine acpi_preset_companion() doing an
      equivalent thing.
      
      The main motivation for doing this is that there are things
      represented by struct acpi_device objects that don't have valid
      ACPI handles (so called fixed ACPI hardware features, such as
      power and sleep buttons) and we would like to create platform
      device objects for them and "glue" them to their ACPI companions
      in the usual way (which currently is impossible due to the
      lack of valid ACPI handles).  However, there are more reasons
      why it may be useful.
      
      First, struct acpi_device pointers allow of much better type checking
      than void pointers which are ACPI handles, so it should be more
      difficult to write buggy code using modified struct acpi_dev_node
      and the new macros.  Second, the change should help to reduce (over
      time) the number of places in which the result of ACPI_HANDLE() is
      passed to acpi_bus_get_device() in order to obtain a pointer to the
      struct acpi_device associated with the given "physical" device,
      because now that pointer is returned by ACPI_COMPANION() directly.
      Finally, the change should make it easier to write generic code that
      will build both for CONFIG_ACPI set and unset without adding explicit
      compiler directives to it.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com> # on Haswell
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: Aaron Lu <aaron.lu@intel.com> # for ATA and SDIO part
      7b199811
    • W
      i2c: wmt: add missing clk_disable_unprepare() on error · 2dc9688a
      Wei Yongjun 提交于
      Add the missing clk_disable_unprepare() before return
      from wmt_i2c_reset_hardware() in the error handling case.
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      Cc: stable@kernel.org # 3.11+
      2dc9688a
    • M
      i2c: designware: add new ACPI IDs · 25b3dfc8
      Mika Westerberg 提交于
      Newer Intel PCHs with LPSS have the same Designware I2C controllers than
      Haswell but the ACPI IDs differ. Add these IDs to the driver list.
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      25b3dfc8
    • J
      i2c: i801: Add Device IDs for Intel Wildcat Point-LP PCH · afc65924
      James Ralston 提交于
      This patch adds the SMBus Device IDs for the Intel Wildcat Point-LP PCH.
      Signed-off-by: NJames Ralston <james.d.ralston@intel.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      afc65924
    • S
      i2c: exynos5: Remove incorrect clk_disable_unprepare · 3cd0c2df
      Sachin Kamat 提交于
      clk_disable_unprepare in remove causes an imbalance and hence gives
      the below crash on module remove. While at it also remove some
      duplicate code from probe.
      
      / $ rmmod i2c-exynos5
      [    6.996374] ------------[ cut here ]------------
      [    6.999523] WARNING: CPU: 2 PID: 1137 at drivers/clk/clk.c:842 clk_disable+0x18/0x24()
      [    7.007403] Modules linked in: i2c_exynos5(-)
      [    7.011747] CPU: 2 PID: 1137 Comm: rmmod Not tainted 3.12.0-next-20131105-00083-g16f4799-dirty #21
      [    7.020696] [<c0014e0c>] (unwind_backtrace+0x0/0xf4) from [<c0011784>] (show_stack+0x10/0x14)
      [    7.029190] [<c0011784>] (show_stack+0x10/0x14) from [<c037acd4>] (dump_stack+0x7c/0xb0)
      [    7.037255] [<c037acd4>] (dump_stack+0x7c/0xb0) from [<c001e0ac>] (warn_slowpath_common+0x6c/0x88)
      [    7.046190] [<c001e0ac>] (warn_slowpath_common+0x6c/0x88) from [<c001e164>] (warn_slowpath_null+0x1c/0x24)
      [    7.055818] [<c001e164>] (warn_slowpath_null+0x1c/0x24) from [<c02dcde4>] (clk_disable+0x18/0x24)
      [    7.064670] [<c02dcde4>] (clk_disable+0x18/0x24) from [<bf0002d4>] (exynos5_i2c_remove+0x1c/0x34 [i2c_exynos5])
      [    7.074736] [<bf0002d4>] (exynos5_i2c_remove+0x1c/0x34 [i2c_exynos5]) from [<c02274a8>] (__device_release_driver+0x58/0xb0)
      [    7.085836] [<c02274a8>] (__device_release_driver+0x58/0xb0) from [<c0227b88>] (driver_detach+0xac/0xb0)
      [    7.095291] [<c0227b88>] (driver_detach+0xac/0xb0) from [<c02271c0>] (bus_remove_driver+0x4c/0xa0)
      [    7.104227] [<c02271c0>] (bus_remove_driver+0x4c/0xa0) from [<c00725dc>] (SyS_delete_module+0x124/0x194)
      [    7.113682] [<c00725dc>] (SyS_delete_module+0x124/0x194) from [<c000e2e0>] (ret_fast_syscall+0x0/0x30)
      [    7.122957] ---[ end trace 23bb6e4e0bf52196 ]---
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Acked-by: NNaveen Krishna Chatradhi <ch.naveen@samsung.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      3cd0c2df
    • M
      i2c: i2c-st: Add ST I2C controller · 85b4fab2
      Maxime COQUELIN 提交于
      This patch adds support to SSC (Synchronous Serial Controller)
      I2C driver. This IP also supports SPI protocol, but this is not
      the aim of this driver.
      
      This IP is embedded in all ST SoCs for Set-top box platorms, and
      supports I2C Standard and Fast modes.
      Signed-off-by: NMaxime Coquelin <maxime.coquelin@st.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      85b4fab2
  8. 01 11月, 2013 3 次提交
  9. 31 10月, 2013 4 次提交
  10. 30 10月, 2013 1 次提交
  11. 24 10月, 2013 1 次提交
  12. 11 10月, 2013 1 次提交
  13. 10 10月, 2013 9 次提交