mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359279
|
@ -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 a new issue