Skip to content
Snippets Groups Projects
  1. Feb 09, 2017
  2. Jan 28, 2017
  3. Jan 25, 2017
  4. Jan 12, 2017
  5. Dec 24, 2016
  6. Dec 18, 2016
    • Peter Rosin's avatar
      i2c: mux: mlxcpld: fix i2c mux selection caching · 649ac63a
      Peter Rosin authored
      
      smbus functions return -ve on error, 0 on success.  However,
      __i2c_transfer() have a different return signature - -ve on error, or
      number of buffers transferred (which may be zero or greater).
      
      The upshot of this is that the sense of the test is reversed when using
      the mux on a bus supporting the master_xfer method: we cache the value
      and never retry if we fail to transfer any buffers, but if we succeed,
      we clear the cached value.
      
      Fix this by making mlxcpld_mux_reg_write() return a -ve error code for
      all failure cases, just as was done in commit 7f638c1c ("i2c: mux:
      pca954x: fix i2c mux selection caching").
      
      This also aligns the implementations of these two muxes in this area.
      
      Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
      Acked-by: default avatarVadim Pasternak <vadimp@mellanox.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      649ac63a
  7. Dec 17, 2016
  8. Dec 11, 2016
  9. Dec 09, 2016
    • Steven Rostedt (Red Hat)'s avatar
      tracing: Have the reg function allow to fail · 8cf868af
      Steven Rostedt (Red Hat) authored
      
      Some tracepoints have a registration function that gets enabled when the
      tracepoint is enabled. There may be cases that the registraction function
      must fail (for example, can't allocate enough memory). In this case, the
      tracepoint should also fail to register, otherwise the user would not know
      why the tracepoint is not working.
      
      Cc: David Howells <dhowells@redhat.com>
      Cc: Seiji Aguchi <seiji.aguchi@hds.com>
      Cc: Anton Blanchard <anton@samba.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      8cf868af
  10. Dec 01, 2016
  11. Nov 29, 2016
  12. Nov 25, 2016
    • Jarkko Nikula's avatar
      Revert "i2c: designware: do not disable adapter after transfer" · 89119f08
      Jarkko Nikula authored
      
      This reverts commit 0317e6c0.
      
      Srinivas reported recently touchscreen and touchpad stopped working in
      Haswell based machine in Linux 4.9-rc series with timeout errors from
      i2c_designware:
      
      [   16.508013] i2c_designware INT33C3:00: controller timed out
      [   16.508302] i2c_hid i2c-MSFT0001:02: failed to change power setting.
      [   17.532016] i2c_designware INT33C3:00: controller timed out
      [   18.556022] i2c_designware INT33C3:00: controller timed out
      [   18.556315] i2c_hid i2c-ATML1000:00: failed to retrieve report from device.
      
      I managed to reproduce similar errors on another Haswell based machine
      where touchscreen initialization fails maybe in every 1/5 - 1/2 boots.
      Since root cause for these errors is not clear yet and debugging is
      ongoing it's better to revert this commit as we are near to release.
      
      Reported-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      89119f08
  13. Nov 24, 2016
Loading