Re: [PATCH] i2c-ali1535: enable SPARC support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "corentin.labbe" <corentin.labbe@xxxxxxxxxxx>
Date: Thu, 24 Nov 2011 12:01:36 +0100

> 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.
> 
> Thanks
> 
> Signed-off-by: LABBE Corentin <corentin.labbe@xxxxxxxxxxx>

Jean has asked for some more changes, please follow his suggestions and
resubmit, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux