linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: i2c: i2c-mv64xxx: rework offload support to fix several problems
@ 2015-07-04  6:59 Antony Pavlov
       [not found] ` <20150704095908.18a15912ceff03764ed15ff1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2015-07-04  6:59 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hi!

I have found your commit in the linux kernel mainline

  commit 00d8689b85a7bb37cc57ba4c40bd46325f51ced4
  Author: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
  Date:   Thu Dec 11 17:33:46 2014 +0100

      i2c: mv64xxx: rework offload support to fix several problems

see also https://patchwork.ozlabs.org/patch/420180/

Here is a fragment:

+static bool
+mv64xxx_i2c_can_offload(struct mv64xxx_i2c_data *drv_data)
+{
+	struct i2c_msg *msgs = drv_data->msgs;
+	int num = drv_data->num_msgs;
+
+	return false;
^^^^^^^^^^^^^^^^^^^^^
+
+	if (!drv_data->offload_enabled)
+		return false;

So mv64xxx_i2c_can_offload() is always returns false and offload is always disabled.

Please comment this.

-- 
Best regards,
  Antony Pavlov

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

* Re: i2c: i2c-mv64xxx: rework offload support to fix several problems
       [not found] ` <20150704095908.18a15912ceff03764ed15ff1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-07-04  8:15   ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-07-04  8:15 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Gregory Clément

Dear Antony Pavlov,

On Sat, 4 Jul 2015 09:59:08 +0300, Antony Pavlov wrote:

> I have found your commit in the linux kernel mainline
> 
>   commit 00d8689b85a7bb37cc57ba4c40bd46325f51ced4
>   Author: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
>   Date:   Thu Dec 11 17:33:46 2014 +0100
> 
>       i2c: mv64xxx: rework offload support to fix several problems
> 
> see also https://patchwork.ozlabs.org/patch/420180/
> 
> Here is a fragment:
> 
> +static bool
> +mv64xxx_i2c_can_offload(struct mv64xxx_i2c_data *drv_data)
> +{
> +	struct i2c_msg *msgs = drv_data->msgs;
> +	int num = drv_data->num_msgs;
> +
> +	return false;
> ^^^^^^^^^^^^^^^^^^^^^

Wow, thanks for spotting. This is indeed a big mistake that has
apparently do been caught at review time. This means I'll have to re-do
some testing to validate that the offload is actually working. We had a
specific device that is making some specific I2C accesses that
triggered the need to rework the offload handling, so I'll have to test
on this platform.

In order to not forget about it, I've added an entry in our Marvell
related bug tracker:
https://github.com/MISL-EBU-System-SW/mainline-public/issues/75.

Thanks for reporting!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-04  6:59 i2c: i2c-mv64xxx: rework offload support to fix several problems Antony Pavlov
     [not found] ` <20150704095908.18a15912ceff03764ed15ff1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-07-04  8:15   ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).