All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] enable I2C on Renesas EMEV2 and KZM9D board
@ 2015-07-06 21:46 ` Wolfram Sang
  0 siblings, 0 replies; 40+ messages in thread
From: Wolfram Sang @ 2015-07-06 21:46 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA, Magnus Damm, Simon Horman,
	Laurent Pinchart, Geert Uytterhoeven, Wolfram Sang

So, I picked up the old series from Ian and reworked it significantly. While
his series was already an improvement from the driver found in the BSP, it was
still not ready for upstream. It should be now :) My idea was to start simple
and improve incrementally, so e.g. clock handling was broken, so clocks are
always on for starters. Major changes include:

* clock handling simplified and adapted to current EMEV clock handling
* switch from wait_event to completion mechanism. The old one was basically
  some kind of completion with custom code around wait_events
* dropped using signals; they always cause trouble with I2C
* simplified the bus free logic. If it turns out to be too simple, we'd need
  to switch to the bus_recovery infrastructure probably. But we'd need a test
  case for that
* error handling improved to match subsystem standards
* removed some BSP angst code
* lots of refactoring to make code simpler, more readable...
* bugfixes

I also added all the glue code to add clocks, disable reset etc which was
missing before. I'd prefer to take the first three patches via i2c myself,
and the latter two via Simon's tree.

A branch for testing can be found here:

git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/emma-i2c

Please test, comment...

Thanks!

   Wolfram


Wolfram Sang (5):
  clk: shmobile: emev2: deassert reset for IIC0/1
  i2c: emev2: add binding documentation
  i2c: emev2: add driver
  ARM: shmobile: emev2: add IIC cores to dtsi
  ARM: shmobile: emev2: kzm9d: enable IIC busses

 .../devicetree/bindings/i2c/i2c-emev2.txt          |  22 ++
 arch/arm/boot/dts/emev2-kzm9d.dts                  |   8 +
 arch/arm/boot/dts/emev2.dtsi                       |  48 +++
 drivers/clk/shmobile/clk-emev2.c                   |   6 +
 drivers/i2c/busses/Kconfig                         |   7 +
 drivers/i2c/busses/Makefile                        |   1 +
 drivers/i2c/busses/i2c-emev2.c                     | 334 +++++++++++++++++++++
 7 files changed, 426 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-emev2.txt
 create mode 100644 drivers/i2c/busses/i2c-emev2.c

-- 
2.1.4


^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2015-07-09 15:20 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 21:46 [PATCH 0/5] enable I2C on Renesas EMEV2 and KZM9D board Wolfram Sang
2015-07-06 21:46 ` Wolfram Sang
2015-07-06 21:46 ` [PATCH 1/5] clk: shmobile: emev2: deassert reset for IIC0/1 Wolfram Sang
2015-07-06 21:46   ` Wolfram Sang
2015-07-06 21:57   ` Stephen Boyd
2015-07-06 21:57     ` Stephen Boyd
2015-07-06 21:46 ` [PATCH 2/5] i2c: emev2: add binding documentation Wolfram Sang
2015-07-06 21:46   ` Wolfram Sang
2015-07-07  8:41   ` Geert Uytterhoeven
2015-07-07  8:41     ` Geert Uytterhoeven
2015-07-07  9:17     ` Wolfram Sang
2015-07-07  9:17       ` Wolfram Sang
2015-07-07  9:22       ` Geert Uytterhoeven
2015-07-07  9:22         ` Geert Uytterhoeven
2015-07-07 17:26   ` Laurent Pinchart
2015-07-07 17:26     ` Laurent Pinchart
2015-07-07 19:43     ` Wolfram Sang
2015-07-07 19:43       ` Wolfram Sang
2015-07-07 19:47       ` Laurent Pinchart
2015-07-07 19:47         ` Laurent Pinchart
2015-07-07 19:53         ` Wolfram Sang
2015-07-07 19:53           ` Wolfram Sang
2015-07-09  0:35           ` Laurent Pinchart
2015-07-09  0:35             ` Laurent Pinchart
2015-07-09 15:20             ` Wolfram Sang
2015-07-09 15:20               ` Wolfram Sang
2015-07-06 21:46 ` [PATCH 4/5] ARM: shmobile: emev2: add IIC cores to dtsi Wolfram Sang
2015-07-06 21:46   ` Wolfram Sang
     [not found] ` <1436219188-4325-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
2015-07-06 21:46   ` [PATCH 3/5] i2c: emev2: add driver Wolfram Sang
2015-07-06 21:46     ` Wolfram Sang
2015-07-07 18:40     ` Laurent Pinchart
2015-07-07 18:40       ` Laurent Pinchart
2015-07-07 19:49       ` Wolfram Sang
2015-07-07 19:49         ` Wolfram Sang
2015-07-06 21:46   ` [PATCH 5/5] ARM: shmobile: emev2: kzm9d: enable IIC busses Wolfram Sang
2015-07-06 21:46     ` Wolfram Sang
2015-07-07  8:38   ` [PATCH 0/5] enable I2C on Renesas EMEV2 and KZM9D board Geert Uytterhoeven
2015-07-07  8:38     ` Geert Uytterhoeven
     [not found]     ` <CAMuHMdUwivjTgj-nOKnHhmmU2po0JMPDhHqW6z7ngiO-D+a6iA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-07  9:10       ` Wolfram Sang
2015-07-07  9:10         ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.