ismt: Fix ISMT_DESC_ADDR_RW macro, slave addresses are already left-shifted
Reverts r293369. The macro was orginally correct, since our SMBus framework, unlike i2c, already requires addresses to be 8-bit, LSB-cleared. MFC after: 3 days Sponsored by: Juniper Networks, Inc
This commit is contained in:
parent
4c8f64714a
commit
d681bc9e64
@ -72,7 +72,7 @@ __FBSDID("$FreeBSD$");
|
||||
#define ISMT_DESC_LPR 0x80 /* Large Packet Received */
|
||||
|
||||
/* Macros */
|
||||
#define ISMT_DESC_ADDR_RW(addr, is_read) ((addr << 1) | (is_read))
|
||||
#define ISMT_DESC_ADDR_RW(addr, is_read) ((addr) | (is_read))
|
||||
|
||||
/* iSMT General Register address offsets (SMBBAR + <addr>) */
|
||||
#define ISMT_GR_GCTRL 0x000 /* General Control */
|
||||
|
Loading…
Reference in New Issue
Block a user