diff options
| author | Matt Johnston <matt@codeconstruct.com.au> | 2026-01-13 17:41:34 +0800 |
|---|---|---|
| committer | Corey Minyard <corey@minyard.net> | 2026-02-03 21:06:18 -0600 |
| commit | 9f235ccecd03c436cb1683eac16b12f119e54aa9 (patch) | |
| tree | a0cd483876696ef2f472fc20d4a15ce88ca7729a /drivers/char | |
| parent | 1d90e6c1a56f6ab83e5c9d30ded19e7ac8155713 (diff) | |
| download | linux-9f235ccecd03c436cb1683eac16b12f119e54aa9.tar.gz linux-9f235ccecd03c436cb1683eac16b12f119e54aa9.tar.bz2 linux-9f235ccecd03c436cb1683eac16b12f119e54aa9.zip | |
ipmi: ipmb: initialise event handler read bytes
IPMB doesn't use i2c reads, but the handler needs to set a value.
Otherwise an i2c read will return an uninitialised value from the bus
driver.
Fixes: 63c4eb347164 ("ipmi:ipmb: Add initial support for IPMI over IPMB")
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Message-ID: <20260113-ipmb-read-init-v1-1-a9cbce7b94e3@codeconstruct.com.au>
Signed-off-by: Corey Minyard <corey@minyard.net>
Diffstat (limited to 'drivers/char')
| -rw-r--r-- | drivers/char/ipmi/ipmi_ipmb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_ipmb.c b/drivers/char/ipmi/ipmi_ipmb.c index 3a51e58b2487..28818952a7a4 100644 --- a/drivers/char/ipmi/ipmi_ipmb.c +++ b/drivers/char/ipmi/ipmi_ipmb.c @@ -202,11 +202,16 @@ static int ipmi_ipmb_slave_cb(struct i2c_client *client, break; case I2C_SLAVE_READ_REQUESTED: + *val = 0xff; + ipmi_ipmb_check_msg_done(iidev); + break; + case I2C_SLAVE_STOP: ipmi_ipmb_check_msg_done(iidev); break; case I2C_SLAVE_READ_PROCESSED: + *val = 0xff; break; } |
