From: Baruch Siach <baruch@tkos.co.il>
To: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Cc: linux-arm-kernel@lists.infradead.org, linux-mips@linux-mips.org,
linux-i2c@vger.kernel.org, ben-linux@fluff.org
Subject: Re: [RFC] i2c-designware patches
Date: Wed, 14 Oct 2009 21:02:48 +0200 [thread overview]
Message-ID: <20091014190248.GE11789@tarshish> (raw)
In-Reply-To: <4AD3E974.8080200@necel.com>
Hi Shinya,
On Tue, Oct 13, 2009 at 11:44:04AM +0900, Shinya Kuribayashi wrote:
> Here're various improvements / bug-fixing patches for DW I2C driver.
> I'm working with v2.6.27-based kernel, but they must work fine with the
> latest mainline kernel.
>
> It's stil in RFC, and I'm working with it for some time. Any comments
> or suggestions are highly appreciated. Then I'll respin and give it a
> test, thanks.
>
> Baruch, I'd say the base driver is in good shape enogh, so I'm having
> a fun with modifing the driver. Thanks for the initial work.
>
> P.S. ARM and MIPS lists are Cc:ed as I believe there must be potential
> users of this driver.
>
>
> Shinya Kuribayashi (16):
> i2c-designware: Consolidate to use 32-bit word accesses
> i2c-designware: Don't use the IC_CLR_INTR register to clear interrupts
> i2c-designware: Use platform_get_irq helper
> i2c-designware: i2c_dw_read: Take "struct dw_i2c_dev" pointer
> i2c-designware: i2c_dw_xfer_msg: Take "struct dw_i2c_dev" pointer
> i2c-designware: Remove an useless local variable "num"
> i2c-designware: Set a clock name to DesignWare I2C clock source
> i2c-designware: Improve _HCNT/_LCNT calculation
> i2c-designware: i2c_dw_xfer_msg: Fix an i2c_msg search bug
> i2c-designware: Do dw_i2c_pump_msg's jobs in the interrutp handler
> i2c-designware: Set Tx/Rx FIFO threshold levels
> i2c-designware: Divide i2c_dw_xfer_msg into two functions
> i2c-designware: i2c_dw_xfer_msg: Introduce a local "buf" pointer
> i2c-designware: Deferred FIFO-data-counting variables initialization
> i2c-designware: i2c_dw_xfer_msg: Mark as completed on an error
> i2c-designware: Add I2C_FUNC_SMBUS_* bits
Great job.
Your contribution to the implementation of transactions that are longer than
the hardware buffers is very important. I wrote this code as a theoretical
exercise, as I never had access to an i2c slave which requires long
transactions. So I'm not surprised to find out that this code was broken.
For all these patches except no. 7 (Set a clock name to DesignWare I2C clock
source) and no. 16 (Add I2C_FUNC_SMBUS_* bits) you have my
Acked-by: Baruch Siach <baruch@tkos.co.il>
Thanks,
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
WARNING: multiple messages have this Message-ID (diff)
From: baruch@tkos.co.il (Baruch Siach)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] i2c-designware patches
Date: Wed, 14 Oct 2009 21:02:48 +0200 [thread overview]
Message-ID: <20091014190248.GE11789@tarshish> (raw)
In-Reply-To: <4AD3E974.8080200@necel.com>
Hi Shinya,
On Tue, Oct 13, 2009 at 11:44:04AM +0900, Shinya Kuribayashi wrote:
> Here're various improvements / bug-fixing patches for DW I2C driver.
> I'm working with v2.6.27-based kernel, but they must work fine with the
> latest mainline kernel.
>
> It's stil in RFC, and I'm working with it for some time. Any comments
> or suggestions are highly appreciated. Then I'll respin and give it a
> test, thanks.
>
> Baruch, I'd say the base driver is in good shape enogh, so I'm having
> a fun with modifing the driver. Thanks for the initial work.
>
> P.S. ARM and MIPS lists are Cc:ed as I believe there must be potential
> users of this driver.
>
>
> Shinya Kuribayashi (16):
> i2c-designware: Consolidate to use 32-bit word accesses
> i2c-designware: Don't use the IC_CLR_INTR register to clear interrupts
> i2c-designware: Use platform_get_irq helper
> i2c-designware: i2c_dw_read: Take "struct dw_i2c_dev" pointer
> i2c-designware: i2c_dw_xfer_msg: Take "struct dw_i2c_dev" pointer
> i2c-designware: Remove an useless local variable "num"
> i2c-designware: Set a clock name to DesignWare I2C clock source
> i2c-designware: Improve _HCNT/_LCNT calculation
> i2c-designware: i2c_dw_xfer_msg: Fix an i2c_msg search bug
> i2c-designware: Do dw_i2c_pump_msg's jobs in the interrutp handler
> i2c-designware: Set Tx/Rx FIFO threshold levels
> i2c-designware: Divide i2c_dw_xfer_msg into two functions
> i2c-designware: i2c_dw_xfer_msg: Introduce a local "buf" pointer
> i2c-designware: Deferred FIFO-data-counting variables initialization
> i2c-designware: i2c_dw_xfer_msg: Mark as completed on an error
> i2c-designware: Add I2C_FUNC_SMBUS_* bits
Great job.
Your contribution to the implementation of transactions that are longer than
the hardware buffers is very important. I wrote this code as a theoretical
exercise, as I never had access to an i2c slave which requires long
transactions. So I'm not surprised to find out that this code was broken.
For all these patches except no. 7 (Set a clock name to DesignWare I2C clock
source) and no. 16 (Add I2C_FUNC_SMBUS_* bits) you have my
Acked-by: Baruch Siach <baruch@tkos.co.il>
Thanks,
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
next prev parent reply other threads:[~2009-10-14 19:02 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 2:44 [RFC] i2c-designware patches Shinya Kuribayashi
2009-10-13 2:44 ` Shinya Kuribayashi
2009-10-13 2:48 ` [PATCH 01/16] i2c-designware: Consolidate to use 32-bit word accesses Shinya Kuribayashi
2009-10-13 2:48 ` Shinya Kuribayashi
2009-10-13 2:48 ` [PATCH 02/16] i2c-designware: Don't use the IC_CLR_INTR register to clear interrupts Shinya Kuribayashi
2009-10-13 2:48 ` Shinya Kuribayashi
2009-10-13 2:49 ` [PATCH 03/16] i2c-designware: Use platform_get_irq helper Shinya Kuribayashi
2009-10-13 2:49 ` Shinya Kuribayashi
2009-10-13 2:49 ` [PATCH 04/16] i2c-designware: i2c_dw_read: Take "struct dw_i2c_dev" pointer Shinya Kuribayashi
2009-10-13 2:49 ` Shinya Kuribayashi
2009-10-13 2:50 ` [PATCH 05/16] i2c-designware: i2c_dw_xfer_msg: " Shinya Kuribayashi
2009-10-13 2:50 ` Shinya Kuribayashi
2009-10-13 2:50 ` [PATCH 06/16] i2c-designware: Remove an useless local variable "num" Shinya Kuribayashi
2009-10-13 2:50 ` Shinya Kuribayashi
2009-10-13 2:50 ` [PATCH 07/16] i2c-designware: Set a clock name to DesignWare I2C clock source Shinya Kuribayashi
2009-10-13 2:50 ` Shinya Kuribayashi
[not found] ` <4AD3EB09.8050304-jaWZhaxaiAMAvxtiuMwx3w@public.gmane.org>
2009-10-13 9:54 ` Mark Brown
2009-10-13 9:54 ` Mark Brown
2009-10-14 4:19 ` Shinya Kuribayashi
2009-10-14 4:19 ` Shinya Kuribayashi
2009-10-13 22:41 ` Ben Dooks
2009-10-13 22:41 ` Ben Dooks
2009-10-13 22:41 ` Ben Dooks
2009-10-14 4:19 ` Shinya Kuribayashi
2009-10-14 4:19 ` Shinya Kuribayashi
[not found] ` <4AD5514B.4090504-jaWZhaxaiAMAvxtiuMwx3w@public.gmane.org>
2009-10-14 10:09 ` Mark Brown
2009-10-14 10:09 ` Mark Brown
2009-10-14 19:14 ` Russell King - ARM Linux
2009-10-14 19:14 ` Russell King - ARM Linux
2009-10-15 3:37 ` Shinya Kuribayashi
2009-10-15 3:37 ` Shinya Kuribayashi
2009-10-13 2:51 ` [PATCH 08/16] i2c-designware: Improve _HCNT/_LCNT calculation Shinya Kuribayashi
2009-10-13 2:51 ` Shinya Kuribayashi
2009-10-13 2:51 ` [PATCH 09/16] i2c-designware: i2c_dw_xfer_msg: Fix an i2c_msg search bug Shinya Kuribayashi
2009-10-13 2:51 ` Shinya Kuribayashi
2009-10-13 2:52 ` [PATCH 10/16] i2c-designware: Do dw_i2c_pump_msg's jobs in the interrutp handler Shinya Kuribayashi
2009-10-13 2:52 ` Shinya Kuribayashi
2009-10-13 2:52 ` Shinya Kuribayashi
2009-10-13 2:52 ` [PATCH 11/16] i2c-designware: Set Tx/Rx FIFO threshold levels Shinya Kuribayashi
2009-10-13 2:52 ` Shinya Kuribayashi
2009-10-13 2:52 ` Shinya Kuribayashi
2009-10-13 2:52 ` [PATCH 12/16] i2c-designware: Divide i2c_dw_xfer_msg into two functions Shinya Kuribayashi
2009-10-13 2:52 ` Shinya Kuribayashi
2009-10-13 2:53 ` [PATCH 13/16] i2c-designware: i2c_dw_xfer_msg: Introduce a local "buf" pointer Shinya Kuribayashi
2009-10-13 2:53 ` Shinya Kuribayashi
2009-10-13 2:53 ` [PATCH 14/16] i2c-designware: Deferred FIFO-data-counting variables initialization Shinya Kuribayashi
2009-10-13 2:53 ` Shinya Kuribayashi
2009-10-13 2:53 ` [PATCH 15/16] i2c-designware: i2c_dw_xfer_msg: Mark as completed on an error Shinya Kuribayashi
2009-10-13 2:53 ` Shinya Kuribayashi
2009-10-15 5:29 ` Shinya Kuribayashi
2009-10-15 5:29 ` Shinya Kuribayashi
2009-10-13 2:54 ` [PATCH 16/16] i2c-designware: Add I2C_FUNC_SMBUS_* bits Shinya Kuribayashi
2009-10-13 2:54 ` Shinya Kuribayashi
2009-10-14 18:53 ` Baruch Siach
2009-10-14 18:53 ` Baruch Siach
2009-10-15 3:22 ` Shinya Kuribayashi
2009-10-15 3:22 ` Shinya Kuribayashi
2009-10-13 7:04 ` [RFC] i2c-designware patches Baruch Siach
2009-10-13 7:04 ` Baruch Siach
2009-10-13 8:01 ` Shinya Kuribayashi
2009-10-13 8:01 ` Shinya Kuribayashi
2009-10-14 19:02 ` Baruch Siach [this message]
2009-10-14 19:02 ` Baruch Siach
2009-10-19 1:23 ` Shinya Kuribayashi
2009-10-19 1:23 ` Shinya Kuribayashi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091014190248.GE11789@tarshish \
--to=baruch@tkos.co.il \
--cc=ben-linux@fluff.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=shinya.kuribayashi@necel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.