linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shinya Kuribayashi <shinya.kuribayashi-jaWZhaxaiAMAvxtiuMwx3w@public.gmane.org>
To: Jean-Hugues Deschenes
	<jean-hugues.deschenes-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>,
	Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
Subject: Re: [PATCH v2 0/3] i2c-designware: Allow mixed endianness
Date: Thu, 21 Jan 2010 14:25:33 +0900	[thread overview]
Message-ID: <4B57E54D.8020909@necel.com> (raw)
In-Reply-To: <20100119140234.689304000-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org>

Jean-Hugues Deschenes wrote:
> This is the v2 version of the patch which adds support
> for the i2c Designware controller when its endianness
> differs from that of the cpu.
> 
> ---
> Changelog v1->v2
> - rename i2c_dw_(read|write)l to dw_(read|write)l (Shinya Kuribayashi)
> - rename dw_(read|write)l's addr argument to offset (Shinya Kuribayashi)
> - replace (if constant == x) with (if x == constant) (Ben Dooks)
> ---
> 
> 
> Signed-off-by: Jean-Hugues Deschenes <jean-hugues.deschenes-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org>

All three patches look good, and work for my BE machines.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi-jaWZhaxaiAMAvxtiuMwx3w@public.gmane.org>

---

diff --git a/drivers/i2c/busses/i2c-designware.c b/drivers/i2c/busses/i2c-designware.c
index 362dd9e..ce20fc8 100644
--- a/drivers/i2c/busses/i2c-designware.c
+++ b/drivers/i2c/busses/i2c-designware.c
@@ -778,6 +783,12 @@ static int __devinit dw_i2c_probe(struct platform_device *pdev)
 			r = -ENODEV;
 			goto err_iounmap;
 		}
+
+		printk("### comp_type = 0x%08x\n", comp_type);
+		printk("### ___constant_swab32(0x44570140) = 0x%08x\n",
+			___constant_swab32(0x44570140));
+		printk("### swab = %d\n", dev->swab);
+
 	}
 	{
 		u32 param1 = dw_readl(dev, DW_IC_COMP_PARAM_1);

[...]

i2c /dev entries driver
### comp_type = 0x44570140
### ___constant_swab32(0x44570140) = 0x40015744
### swab = 0
### comp_type = 0x44570140
### ___constant_swab32(0x44570140) = 0x40015744
### swab = 0
### comp_type = 0x44570140
### ___constant_swab32(0x44570140) = 0x40015744
### swab = 0

-- 
Shinya Kuribayashi
NEC Electronics

  parent reply	other threads:[~2010-01-21  5:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-19 14:02 [PATCH v2 0/3] i2c-designware: Allow mixed endianness Jean-Hugues Deschenes
2010-01-19 14:02 ` [PATCH v2 1/3] i2c-designware: Use local version of readl & writel Jean-Hugues Deschenes
2010-01-19 14:02 ` [PATCH v2 2/3] i2c-designware: Check component type register Jean-Hugues Deschenes
     [not found]   ` <20100119140234.870830000-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org>
2010-01-24 15:40     ` Ben Dooks
2010-01-19 14:02 ` [PATCH v2 3/3] i2c-designware: Allow mixed endianness accesses Jean-Hugues Deschenes
     [not found] ` <20100119140234.689304000-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org>
2010-01-21  5:25   ` Shinya Kuribayashi [this message]
     [not found]     ` <4B57E54D.8020909-jaWZhaxaiAMAvxtiuMwx3w@public.gmane.org>
2010-01-21  5:46       ` [PATCH v2 0/3] i2c-designware: Allow mixed endianness Shinya Kuribayashi
2010-01-24 15:41   ` Ben Dooks

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=4B57E54D.8020909@necel.com \
    --to=shinya.kuribayashi-jawzhaxaiamavxtiumwx3w@public.gmane.org \
    --cc=baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org \
    --cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
    --cc=jean-hugues.deschenes-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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 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).