]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qla2xxx: Add I2C BSG interface.
authorJoe Carnuccio <joe.carnuccio@qlogic.com>
Wed, 18 Apr 2012 20:19:06 +0000 (13:19 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 23 Jul 2012 08:02:44 +0000 (01:02 -0700)
commitc10d64da5c894224843a2ad800f077e9ac019750
tree5d269ade03796e59dcebf1e7d153d2106f8fa87c
parent485c378c8e871360885af4ebb7a3d02b68dcdd85
qla2xxx: Add I2C BSG interface.

Add BSG interface to generically access I2C attached devices.

The transferred data limitations:
- the address must be on an even byte boundary,
- the chunk size must be no more than 64 bytes,
(these being limitations of the firmware).

So, to transfer more than 64 bytes, the caller must chunk up
the data into 64 byte chunks and perform multiple accesses.

The caller is responsible for setting the device address,
the data offset, the option bits, and the data length.

JIRA Key: V2632FC-198
drivers/scsi/qla2xxx/qla_bsg.c
drivers/scsi/qla2xxx/qla_bsg.h