mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] i2c: Don't assume bus nr 0 if none was specified
@ 2012-03-27  9:10 Karol Lewandowski
  2012-03-27  9:10 ` [PATCH 1/2] i2c-pxa: Drop leftover comment Karol Lewandowski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Karol Lewandowski @ 2012-03-27  9:10 UTC (permalink / raw)
  To: w.sang
  Cc: ben-linux, m.szyprowski, linux-kernel, linux-i2c, kyungmin.park,
	hskinnemoen, bigeasy, dirk.brandewie, linux, Karol Lewandowski

Changes since v1:
 - Dropped reduntant i2c-octeon change

i2c controller drivers used to assume bus number 0 when none (-1) was
specified.

This worked on non-device tree systems, where one could explicitly
specify bus number via platform data.  On DT-enabled systems bus
number is always -1.

This patchset reworks few remaining drivers to use dynamic bus
allocation when no id has been provided.

[ I've found out this when I've tried to instantiate more than one
  i2c-gpio instance on DT-enabled system. I've, hopefully, fixed few
  other drivers too. ]

Karol Lewandowski (2):
  i2c-pxa: Drop leftover comment
  i2c: Dynamically assign adapter id if it wasn't explictly specified

 drivers/i2c/busses/i2c-gpio.c         |    7 +------
 drivers/i2c/busses/i2c-pca-platform.c |    2 +-
 drivers/i2c/busses/i2c-pxa.c          |    5 -----
 drivers/i2c/busses/i2c-versatile.c    |    9 ++-------
 4 files changed, 4 insertions(+), 19 deletions(-)

-- 
1.7.9.1


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

end of thread, other threads:[~2012-04-18 10:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-27  9:10 [PATCH v2 0/2] i2c: Don't assume bus nr 0 if none was specified Karol Lewandowski
2012-03-27  9:10 ` [PATCH 1/2] i2c-pxa: Drop leftover comment Karol Lewandowski
2012-03-27  9:10 ` [PATCH 2/2] i2c: Dynamically assign adapter id if it wasn't explictly specified Karol Lewandowski
2012-04-18 10:55 ` [PATCH v2 0/2] i2c: Don't assume bus nr 0 if none was specified Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®