1. 28 3月, 2014 2 次提交
  2. 14 3月, 2014 5 次提交
    • J
      i2c: exynos5: remove unnecessary cast of void pointer · 0ff83d2c
      Jingoo Han 提交于
      Remove unnecessary cast of void pointer, because 'algo_data' of
      'struct i2c_adapter' is a void pointer. Casting the void pointer
      is redundant. The conversion from void pointer to any other
      pointer type is guaranteed by the C programming language.
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Reviewed-by: NNaveen Krishna Chatradhi <ch.naveen@samsung.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      0ff83d2c
    • J
      i2c: exynos5: add CONFIG_PM_SLEEP to suspend/resume functions · 3917b84d
      Jingoo Han 提交于
      Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
      build warning when CONFIG_PM_SLEEP is not selected. This is because
      sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when
      the CONFIG_PM_SLEEP is enabled.
      
        warning: 'exynos5_i2c_suspend_noirq' defined but not used [-Wunused-function]
        warning: 'exynos5_i2c_resume_noirq' defined but not used [-Wunused-function]
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      3917b84d
    • B
      i2c: gpio: OF gpio code does not handle defered probe case · 40e7b115
      Ben Dooks 提交于
      When using device-tree and the i2c-gpio driver is called before the
      GPIO node has been probed then it needs to correctly defer the probe
      instead of returning a permanent error that the gpio numbers are not
      valid.
      
      This fixes the following error:
      	/i2c@2: invalid GPIO pins, sda=-517/scl=-517
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      40e7b115
    • D
      i2c: Add message transfer tracepoints for SMBUS [ver #2] · 8a325997
      David Howells 提交于
      The SMBUS tracepoints can be enabled thusly:
      
      	echo 1 >/sys/kernel/debug/tracing/events/i2c/enable
      
      and will dump messages that can be viewed in /sys/kernel/debug/tracing/trace
      that look like:
      
               ... smbus_read: i2c-0 a=051 f=0000 c=fa BYTE_DATA
               ... smbus_reply: i2c-0 a=051 f=0000 c=fa BYTE_DATA l=1 [39]
               ... smbus_result: i2c-0 a=051 f=0000 c=fa BYTE_DATA rd res=0
      
      formatted as:
      
      	i2c-<adapter-nr>
      	a=<addr>
      	f=<flags>
      	c=<command>
      	<protocol-name>
      	<rd|wr>
      	res=<result>
      	l=<data-len>
      	[<data-block>]
      
      The adapters to be traced can be selected by something like:
      
      	echo adapter_nr==1 >/sys/kernel/debug/tracing/events/i2c/filter
      
      Note that this shares the same filter and enablement as i2c.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Reviewed-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      8a325997
    • D
      i2c: Add message transfer tracepoints for I2C · d9a83d62
      David Howells 提交于
      Add tracepoints into the I2C message transfer function to retrieve the message
      sent or received.  The following config options must be turned on to make use
      of the facility:
      
      	CONFIG_FTRACE
      	CONFIG_ENABLE_DEFAULT_TRACERS
      
      The I2C tracepoint can be enabled thusly:
      
      	echo 1 >/sys/kernel/debug/tracing/events/i2c/enable
      
      and will dump messages that can be viewed in /sys/kernel/debug/tracing/trace
      that look like:
      
      	... i2c_write: i2c-5 #0 a=044 f=0000 l=2 [02-14]
      	... i2c_read: i2c-5 #1 a=044 f=0001 l=4
      	... i2c_reply: i2c-5 #1 a=044 f=0001 l=4 [33-00-00-00]
      	... i2c_result: i2c-5 n=2 ret=2
      
      formatted as:
      
      	i2c-<adapter-nr>
      	#<message-array-index>
      	a=<addr>
      	f=<flags>
      	l=<datalen>
      	n=<message-array-size>
      	ret=<result>
      	[<data>]
      
      The operation is done between the i2c_write/i2c_read lines and the i2c_reply
      and i2c_result lines so that if the hardware hangs, the trace buffer can be
      consulted to determine the problematic operation.
      
      The adapters to be traced can be selected by something like:
      
      	echo adapter_nr==1 >/sys/kernel/debug/tracing/events/i2c/filter
      
      These changes are based on code from Steven Rostedt.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Reviewed-by: NSteven Rostedt <rostedt@goodmis.org>
      [wsa: adapted path for 'enable' in the commit msg]
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      d9a83d62
  3. 13 3月, 2014 3 次提交
  4. 12 3月, 2014 3 次提交
  5. 11 3月, 2014 5 次提交
  6. 10 3月, 2014 4 次提交
  7. 09 3月, 2014 5 次提交
  8. 07 3月, 2014 1 次提交
  9. 06 3月, 2014 12 次提交