[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C4A002E.6020100@codeaurora.org>
Date: Fri, 23 Jul 2010 14:48:46 -0600
From: Kenneth Heitke <kheitke@...eaurora.org>
To: Daniel Glöckner <dg@...ix.com>
CC: khali@...ux-fr.org, ben-linux@...ff.org,
linux-arm-msm@...r.kernel.org, sdharia@...eaurora.org,
Crane Cai <crane.cai@....com>,
Samuel Ortiz <sameo@...ux.intel.com>,
Linus Walleij <linus.walleij@...ricsson.com>,
Ralf Baechle <ralf@...ux-mips.org>,
srinidhi kasagar <srinidhi.kasagar@...ricsson.com>,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i2c: Single-wire Serial Bus Interface for Qualcomm MSM
chipsets
Daniel Glöckner wrote:
> On 07/21/2010 07:52 PM, Kenneth Heitke wrote:
>> Unlike I2C, SSBI is a point-to-point connection, and therefore there is no
>> need to specify a slave device address. The SSBI implementation
>> overrides the slave device address to be a device register address
>> instead. This restricts the client drivers from using the SMBus
>> communication APIs unless they update the address field (addr) of the
>> i2c_client structure prior to every SMBus function call.
>
> Is it just me who is uncomfortable with this?
>
> If I am not mistaken, you still have to update the i2c_client structure
> when using the SMBus API.
Yes, you are correct if the SMBus API is being used.
Each SSBI transaction consists of an address and a data word. I need to
get the address information somehow and I didn't want to have to fetch
this information from the data buffer passed in for the clients.
>
> And how do you intend to bind a driver to an SSBI device if there is not a
> single address to bind to?
There is only one device per controller therefore the binding is done
using the bus number. If I have 3 devices, then I have 3 independent buses.
>
> The Qualcomm SSBI patent mentiones the possibility of adding logic to chips
> to be accessible over both SSBI and the three wire SBI interface. The SBI
> interface on the other hand is even closer to I2C and requires the use of
> a slave ID byte. If you didn't abuse the address field, you could write
> drivers that work on both interfaces.
The driver doesn't support the three wire SBI interface. That interface
has been replaced with the single wire interface and won't be support
under Linux.
>
> Why not use one of the special addresses mentioned in the I2C specification
> for SSBI? 0x02 might be appropriate.
>
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists