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-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html