Re: [PATCH] i2c-designware: i2c_dw_xfer_msg can be static

2012-09-30 Thread Dirk Brandewie
On Sun, Sep 30, 2012 at 5:04 AM, Jean Delvare kh...@linux-fr.org wrote: i2c_dw_xfer_msg is only called internally so it can be static. It original was, before the driver split. No idea why it was changed at that time. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Dirk Brandewie

Re: [PATCH] i2c: Convert to DEFINE_PCI_DEVICE_TABLE

2012-01-02 Thread Dirk Brandewie
*/ MODULE_ALIAS(i2c_designware-pci); -DEFINE_PCI_DEVICE_TABLE(i2_designware_pci_ids) = { +static DEFINE_PCI_DEVICE_TABLE(i2_designware_pci_ids) = { /* Moorestown */ { PCI_VDEVICE(INTEL, 0x0802), moorestown_0 }, { PCI_VDEVICE(INTEL, 0x0803), moorestown_1 }, Acked-by: Dirk

Re: [PATCH v3] i2c-designware: add OF binding support

2011-10-20 Thread Dirk Brandewie
devicetree i2c registration From: Rob Herring rob.herr...@calxeda.com Add of_match_table and DT style i2c registration to designware i2c driver. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- .../devicetree/bindings/i2c/i2c

[PATCH 12/13] i2c-designware: Add runtime power management support

2011-10-06 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Add runtime power management to the PCI driver. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c/busses/i2c-designware-core.c | 10 +++- drivers/i2c/busses/i2c-designware-core.h

[PATCH 13/13] i2c-designware: Fix PCI core warning on suspend/resume

2011-10-06 Thread dirk . brandewie
] [c11e9729] async_suspend+0x16/0x3a 4[ 24.194265] [c104de8e] async_run_entry_fn+0x97/0x135 4[ 24.194291] [c1043c34] process_one_work+0x1c9/0x2db Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Alan Cox

[PATCH 10/13] i2c-designware: Push all register reads/writes into the core code.

2011-10-06 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move all register manipulation code into the core, also move register offset definitions to i2c-designware-core.c since the bus specific portions of the driver no longer need/use them. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off

[PATCH 02/13] i2c-designware: Check component type register

2011-10-06 Thread dirk . brandewie
From: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Designware component type register is checked before attaching to the device. Signed-off-by: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben

[PATCH 06/13] i2c-designware: Move retriveving the clock speed out of core code.

2011-10-06 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The clock frequecy supplied to the IP core is specific to a single instance of the driver. This patch makes it possible to have multiple Designware I2C cores in the system possibly running at different core frequencies. Signed-off-by: Dirk Brandewie

[PATCH 04/13] i2c-designware: Move checking of IP core version to i2c_dw_init()

2011-10-06 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move checking IP core version to i2c_dw_init() in preparation for splitting i2c-designware.c into core and bus specific portions. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c

[PATCH 05/13] i2c-designware: split of i2c-designware.c into core and bus specific parts

2011-10-06 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch splits i2c-designware.c into three pieces: i2c-designware-core.c, contains the code that interacts directly with the core. i2c-designware-platdrv.c, contains the code specific to the platform driver using the core

[PATCH 08/13] i2c-designware: move controller config to bus specific portion of driver

2011-10-06 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com With multiple I2C adapters possible in the system each running at (possibly) different speeds we need to move the controller configuration bit field to the adapter. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben

[PATCH 07/13] i2c-designware: move i2c functionality bit field to be adapter specific

2011-10-06 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The functionality of the adapter depends on the configuration of the IP block at silicon compile time and is adapter specific. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c/busses

[PATCH 03/13] i2c-designware: Allow mixed endianness accesses

2011-10-06 Thread dirk . brandewie
...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c/busses/i2c-designware.c | 17 +++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware.c b/drivers/i2c/busses

[PATCH 01/13] i2c-designware: Use local version of readl writel

2011-10-06 Thread dirk . brandewie
From: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Use local versions of readl writel, so per-access manipulations may be performed Signed-off-by: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks

Re: [PATCH 00/13] V4 Split i2c-designware.c to support PCI drivers.

2011-08-03 Thread Dirk Brandewie
. Patch 12 Adds runtime power management to the PCI driver. Dirk Brandewie (10): i2c-designware: Move checking of IP core version to i2c_dw_init() i2c-designware: split of i2c-designware.c into core and bus specific parts i2c-designware: Move retriveving the clock speed out of core code

Re: [PATCH 00/13] V4 Split i2c-designware.c to support PCI drivers.

2011-07-27 Thread Dirk Brandewie
to authors name. Patch 12 Adds runtime power management to the PCI driver. Dirk Brandewie (10): i2c-designware: Move checking of IP core version to i2c_dw_init() i2c-designware: split of i2c-designware.c into core and bus specific parts i2c-designware: Move retriveving the clock speed

[PATCH 00/13] V4 Split i2c-designware.c to support PCI drivers.

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch set reworks i2c-designware.c to enable supporting multiple instances of the driver in the system and adds support for Designware I2C IP cores behind PCI devices. Previous discussion thread: https://lkml.org/lkml/2011/3/12/70 Changes

[PATCH 06/13] i2c-designware: Move retriveving the clock speed out of core code.

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The clock frequecy supplied to the IP core is specific to a single instance of the driver. This patch makes it possible to have multiple Designware I2C cores in the system possibly running at different core frequencies. Signed-off-by: Dirk Brandewie

[PATCH 12/13] i2c-designware: Add runtime power management support

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Add runtime power management to the PCI driver. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c/busses/i2c-designware-core.c | 10 +++- drivers/i2c/busses/i2c-designware-core.h

[PATCH 13/13] i2c-intel-mid.c: Remove i2c-intel-mid.c

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The Moorestown and Medfield platforms are now supported by i2c-designware-pcidrv.c. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c/busses/Kconfig | 10 - drivers/i2c

[PATCH 01/13] i2c-designware: Use local version of readl writel

2011-06-09 Thread dirk . brandewie
From: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Use local versions of readl writel, so per-access manipulations may be performed Signed-off-by: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks

[PATCH 02/13] i2c-designware: Check component type register

2011-06-09 Thread dirk . brandewie
From: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Designware component type register is checked before attaching to the device. Signed-off-by: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben

[PATCH 09/13] i2c-designware: Support multiple cores using same ISR

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Add check to make sure that the core is enabled and has outstanding interrupts. The activity bit is masked due to the fact that it will stay active even after the controller has been disabled until the contoller internal state machines have settled

[PATCH 08/13] i2c-designware: move controller config to bus specific portion of driver

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com With multiple I2C adapters possible in the system each running at (possibly) different speeds we need to move the controller configuration bit field to the adapter. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben

[PATCH 11/13] i2c-designware: Add support for Designware core behind PCI devices.

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile|2 + drivers/i2c/busses/i2c-designware-core.h

[PATCH 10/13] i2c-designware: Push all register reads/writes into the core code.

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move all register manipulation code into the core, also move register offset definitions to i2c-designware-core.c since the bus specific portions of the driver no longer need/use them. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off

[PATCH 05/13] i2c-designware: split of i2c-designware.c into core and bus specific parts

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch splits i2c-designware.c into three pieces: i2c-designware-core.c, contains the code that interacts directly with the core. i2c-designware-platdrv.c, contains the code specific to the platform driver using the core

[PATCH 04/13] i2c-designware: Move checking of IP core version to i2c_dw_init()

2011-06-09 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move checking IP core version to i2c_dw_init() in preparation for splitting i2c-designware.c into core and bus specific portions. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c

[PATCH 03/13] i2c-designware: Allow mixed endianness accesses

2011-06-09 Thread dirk . brandewie
...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Ben Dooks ben-li...@fluff.org --- drivers/i2c/busses/i2c-designware.c | 17 +++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware.c b/drivers/i2c/busses

Re: [PATCH 00/13] V3 Split i2c-designware.c to support PCI drivers.

2011-05-24 Thread Dirk Brandewie
On 03/14/2011 04:43 PM, Ben Dooks wrote: On Sat, Mar 12, 2011 at 12:23:14PM -0800, dirk.brande...@gmail.com wrote: From: Dirk Brandewiedirk.brande...@gmail.com This patch set reworks i2c-designware.c to enable supporting multiple instances of the driver in the system and adds support for

[PATCH 00/13] V3 Split i2c-designware.c to support PCI drivers.

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch set reworks i2c-designware.c to enable supporting multiple instances of the driver in the system and adds support for Designware I2C IP cores behind PCI devices. The patch set has been refactored to hopefully make it easier to review

[PATCH 04/13] i2c-designware: Move checking of IP core version to i2c_dw_init()

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move checking IP core version to i2c_dw_init() in preparation for splitting i2c-designware.c into core and bus specific portions. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware.c | 30

[PATCH 09/13] i2c-designware: Support multiple cores using same ISR

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Add check to make sure that the core is enabled and has outstanding interrupts. The activity bit is masked due to the fact that it will stay active even after the controller has been disabled until the contoller internal state machines have settled

[PATCH 12/13] i2c-designware: Add runtime power management support

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Add runtime power management to the PCI driver. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware-core.c | 10 +++- drivers/i2c/busses/i2c-designware-core.h |1 + drivers/i2c/busses/i2c-designware

[PATCH 13/13] i2c-intel-mid.c: Remove i2c-intel-mid.c

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The Moorsetown and Medfield platforms are now supported by i2c-designware-pcidrv.c. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/Kconfig | 10 - drivers/i2c/busses/Makefile|1 - drivers/i2c

[PATCH 11/13] i2c-designware: Add support for Designware core behind PCI devices.

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/Kconfig |9 + drivers/i2c/busses/Makefile|2 + drivers/i2c/busses/i2c-designware-core.h |1 + drivers/i2c/busses/i2c

[PATCH 01/13] i2c-designware: Use local version of readl writel

2011-03-12 Thread dirk . brandewie
From: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Use local versions of readl writel, so per-access manipulations may be performed Signed-off-by: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses

[PATCH 03/13] i2c-designware: Allow mixed endianness accesses

2011-03-12 Thread dirk . brandewie
...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware.c | 17 +++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware.c b/drivers/i2c/busses/i2c-designware.c index b2b2a19..f58f05d

[PATCH 10/13] i2c-designware: Push all register reads/writes into the core code.

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move all register manipulation code into the core, also move register offset definitions to i2c-designware-core.c since the bus specific portions of the driver no longer need/use them. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com

[PATCH 07/13] i2c-designware: move i2c functionality bit field to be adapter specific

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The functionality of the adapter depends on the configuration of the IP block at silicon compile time and is adapter specific. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware-core.c|8

[PATCH 06/13] i2c-designware: Move retriveving the clock speed out of core code.

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The clock frequecy supplied to the IP core is specific to a single instance of the driver. This patch makes it possible to have multiple Designware I2C cores in the system possibly running at different core frequencies. Signed-off-by: Dirk Brandewie

[PATCH 05/13] i2c-designware: split of i2c-designware.c into core and bus specific parts

2011-03-12 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch splits i2c-designware.c into three pieces: i2c-designware-core.c, contains the code that interacts directly with the core. i2c-designware-platdrv.c, contains the code specific to the platform driver using the core

[PATCH 02/13] i2c-designware: Check component type register

2011-03-12 Thread dirk . brandewie
From: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Designware component type register is checked before attaching to the device. Signed-off-by: Jean-Hugues Deschenes jean-hugues.desche...@octasic.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c

[PATCH 00/13] V2 Split i2c-designware.c to support PCI drivers.

2011-02-10 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch set reworks i2c-designware.c to enable supporting multiple instances of the driver in the system and adds support for Designware I2C IP cores behind PCI devices. The patch set has been refactored to hopefully make it easier to review

[PATCH 04/13] i2c-designware: Move checking of IP core version to i2c_dw_init()

2011-02-10 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move checking IP core version to i2c_dw_init() in preparation for splitting i2c-designware.c into core and bus specific portions. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware.c | 30

[PATCH 05/13] i2c-designware: split of i2c-designware.c into core and bus specific parts

2011-02-10 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch splits i2c-designware.c into three pieces: i2c-designware-core.c, contains the code that interacts directly with the core. i2c-designware-platdrv.c, contains the code specific to the platform driver using the core

[PATCH 07/13] i2c-designware: move i2c functionality bit field to be adapter specific

2011-02-10 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The functionality of the adapter depends on the configuration of the IP block at silicon compile time and is adapter specific. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware-core.c|8

[PATCH 09/13] i2c-designware: Support multiple cores using same ISR

2011-02-10 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Add check to make sure that the core is enabled and has outstanding interrupts. The activity bit is masked due to the fact that it will stay active even after the contoller has bee disabled until the contoller internal state machinces have settled

[PATCH 10/13] i2c-designware: Push all register reads/writes into the core code.

2011-02-10 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move all register manipulation code into the core, also move register offset definitions to i2c-designware-core.c since the bus specific portions of the dirver no longer need/use them. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com

[PATCH 11/13] i2c-designware: Add support for Designware core behind PCI devices.

2011-02-10 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/Kconfig |9 + drivers/i2c/busses/Makefile|2 + drivers/i2c/busses/i2c-designware-core.h |1 + drivers/i2c/busses/i2c

Re: [PATCH 01/10] i2c-designware: Allow mixed endianness accesses

2011-02-08 Thread Dirk Brandewie
On 02/05/2011 09:39 AM, Ben Dooks wrote: On Fri, Feb 04, 2011 at 01:05:55PM +0900, Shinya Kuribayashi wrote: On 2/3/2011 11:19 AM, dirk.brande...@gmail.com wrote: From: Dirk Brandewiedirk.brande...@gmail.com Allows CPUs of a given endianness to access a dw controller of a different

[PATCH 03/10] i2c-designware: retrieve clock frequency based CONFIG_HAVE_CLK

2011-02-02 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com x86 does not have clk_dev support. The PCI variant of the driver sets the clock rate being supplied to the IP block based on config information attached to the PCI ID Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c

[PATCH 04/10] i2c-designware: Add support for Designware core behind PCI devices.

2011-02-02 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Modify the driver to be a PCI driver from the platform template created in the inital split of the driver. Add controller config options attached to PCI ID's. Add for the Moorsetown and Medfield SOC's Signed-off-by: Dirk Brandewie dirk.brande

[PATCH 05/10] i2c-designware: move i2c functionality bit field to be adapter specific

2011-02-02 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The functionality of the adapter depends on the configuration of the IP block at silicon compile time and is adapter specific. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware-core.c|8

[PATCH 08/10] i2c-designware: Push all register reads/writes into the core code.

2011-02-02 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Move all register manipulation into the core code. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware-core.c| 49 ++- drivers/i2c/busses/i2c-designware-core.h|6

[PATCH 09/10] i2c-designware: Add runtime power management support

2011-02-02 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Add runtime power management to the PCI driver. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware-core.c |3 + drivers/i2c/busses/i2c-designware-pcidrv.c | 85 2 files

Re: [PATCH 2/9] i2c-designware: Initial split of i2c-designware.c into core and bus specific parts

2011-01-25 Thread Dirk Brandewie
On 01/24/2011 05:58 PM, Shinya Kuribayashi wrote: Hi, On 1/15/2011 4:27 AM, dirk.brande...@gmail.com wrote: From: Dirk Brandewiedirk.brande...@gmail.com This patch splits i2c-designware.c into a core library and associated header file and two bus specific parts for platform bus and PCI bus.

Re: [PATCH 7/9] i2c-designware: Allow mixed endianness accesses

2011-01-25 Thread Dirk Brandewie
On 01/24/2011 06:28 PM, Shinya Kuribayashi wrote: On 1/18/2011 2:19 AM, Jean-Hugues Deschenes wrote: +u32 dw_readl(struct dw_i2c_dev *dev, int offset) +{ + u32 value = readl(dev-base + offset); + + if (dev-swab) + return swab32(value); + else +

Re: [PATCH RFC] Splitting i2c-designware.c to support PCI drivers

2011-01-17 Thread Dirk Brandewie
On 01/14/2011 01:48 PM, Ben Dooks wrote: On Fri, Jan 14, 2011 at 09:30:07PM +0100, Jean Delvare wrote: Hi Dirk, On Fri, 14 Jan 2011 11:27:27 -0800, dirk.brande...@gmail.com wrote: From: Dirk Brandewiedirk.brande...@gmail.com This patch set splits i2c-designware.c core and bus specific

[PATCH RFC] Splitting i2c-designware.c to support PCI drivers

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch set splits i2c-designware.c core and bus specific portions in to support the Designware core being behind a PCI device. The Intel Moorsetown and Medfield SOC's are supported in the PCI portion of the driver. This patch set is still a work

[PATCH 1/9] i2c-designware: Add designware PCI config option

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/Kconfig | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index f1a6eeb

[PATCH 2/9] i2c-designware: Initial split of i2c-designware.c into core and bus specific parts

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com This patch splits i2c-designware.c into a core library and associated header file and two bus specific parts for platform bus and PCI bus. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/Makefile |4

[PATCH 3/9] i2c-designware: retrieve clock frequency based CONFIG_HAVE_CLK

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com x86 does not have clk_dev support. The PCI variant of the driver sets the clock rate being supplied to the IP block based on config information attached to the PCI ID Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses

[PATCH 4/9] i2c-designware: Add support for Designware core behind PCI devices.

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Modify the driver to be a PCI driver from the platform template created in the inital split of the driver. Add controller config options attached to PCI ID's. Add for the Moorsetown and Medfield SOC's Signed-off-by: Dirk Brandewie dirk.brande

[PATCH 5/9] i2c-designware: move i2c functionality bit field to be adapter specific

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The functionality of the adapter depends on the configuration of the IP block at silicon compile time and is adapter specific. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c-designware-core.c |8

[PATCH 9/9] i2c-designware: Support multiple cores using same ISR

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Add check to make sure that the core is enabled and has outstanding interrupts. The activity bit is masked due to the fact that it will stay active even after the contoller has bee disabled until the contoller internal state machinces have settled

[PATCH 7/9] i2c-designware: Allow mixed endianness accesses

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com Allows CPUs of a given endianness to access a dw controller of a different endianness. Endianncess difference is detected at run time through the dw component type register. This is the hand application of a patch set by Jean-Hugues Deschenes applied

[PATCH 6/9] i2c-designware: move controller config to bus specific portion of driver

2011-01-14 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com With multiple I2C adapters possible in the system each running at (possibly) different speeds we need to move the controller configuration bit field to the adapter. Signed-off-by: Dirk Brandewie dirk.brande...@gmail.com --- drivers/i2c/busses/i2c