linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Pierre-Yves Rofes" <py.rofes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: "corentin.labbe"
	<corentin.labbe-Um+J1D3rkBVWj0EZb7rXcA@public.gmane.org>,
	Linux I2C <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH v3] i2c-ali1535: enable SPARC support
Date: Wed, 7 Dec 2011 09:04:56 +0100	[thread overview]
Message-ID: <f4dd6eb0ec3cf5cb9c0ce90d6b06d08c.squirrel@mail.rofes.fr> (raw)
In-Reply-To: <4ED36E2F.3010003-Um+J1D3rkBVWj0EZb7rXcA@public.gmane.org>

On Mon, November 28, 2011 12:19 pm, corentin.labbe wrote:
> Le 25/11/2011 14:23, Jean Delvare a écrit :
>> From: "corentin.labbe" <corentin.labbe-Um+J1D3rkBVWj0EZb7rXcA@public.gmane.org>
>>
>> The i2c-ali1535 driver don't work on SPARC, this is because it assumes that
>> ioport address are 16bits wide (address stored with an unsigned short).
>> But on SPARC arch, ioports are mapped in memory and so are stored with an
>> unsigned long.
>>
>> This patch corrects this by using pci_resource_start for getting IOMEM base
>> address, then reading the SMBBA of the i2c busse and using together for I/O
>> access.
>>
>> I like to thanks Jean DELVARE for reviewing of my patch.
>>
>> Signed-off-by: LABBE Corentin <corentin.labbe-Um+J1D3rkBVWj0EZb7rXcA@public.gmane.org>
>> Signed-off-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
>> ---
>> Corentin, I rebased your patch so that it applies on top of the fix I
>> just sent. I also turned one dev_info into dev_dbg, and relaxed the
>> check on the PCI resource flags: I have no idea if the resource is
>> always defined, in particular on x86, and as it will be difficult to
>> find testers, I want to play it safe and guarantee that the driver will
>> behave the same way it used to before your patch.
>>
>> Corentin, Pierre-Yves, please test this version of the patch on top of
>> the fix I just sent, and confirm that it works for you.
>
> It works for me.
>
> Thanks for your work.
>

Works for me too, thanks!

-- 
Pierre-Yves Rofes

      parent reply	other threads:[~2011-12-07  8:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-25 13:23 [PATCH v3] i2c-ali1535: enable SPARC support Jean Delvare
     [not found] ` <20111125142351.739f6b89-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-11-28 11:19   ` corentin.labbe
     [not found]     ` <4ED36E2F.3010003-Um+J1D3rkBVWj0EZb7rXcA@public.gmane.org>
2011-12-07  8:04       ` Pierre-Yves Rofes [this message]

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=f4dd6eb0ec3cf5cb9c0ce90d6b06d08c.squirrel@mail.rofes.fr \
    --to=py.rofes-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=corentin.labbe-Um+J1D3rkBVWj0EZb7rXcA@public.gmane.org \
    --cc=khali-PUYAD+kWke1g9hUCZPvPmw@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).