Skip to content

Commit 3a77df6

Browse files
ausyskingregkh
authored andcommitted
mei: hbm: call mei_set_devstate() on hbm stop response
Use mei_set_devstate() wrapper upon hbm stop command response, to trigger sysfs event. Fixes: 43b8a7e ("mei: expose device state in sysfs") Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Link: https://lore.kernel.org/r/20210129120752.850325-3-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7615da2 commit 3a77df6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/misc/mei/hbm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
13731373
return -EPROTO;
13741374
}
13751375

1376-
dev->dev_state = MEI_DEV_POWER_DOWN;
1376+
mei_set_devstate(dev, MEI_DEV_POWER_DOWN);
13771377
dev_info(dev->dev, "hbm: stop response: resetting.\n");
13781378
/* force the reset */
13791379
return -EPROTO;

0 commit comments

Comments
 (0)