mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
mei: hbm: call mei_set_devstate() on hbm stop response
[ Upstream commit3a77df62de] Use mei_set_devstate() wrapper upon hbm stop command response, to trigger sysfs event. Fixes:43b8a7ed47("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c7cac840c2
commit
e2d44809c4
@@ -1300,7 +1300,7 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
|
||||
return -EPROTO;
|
||||
}
|
||||
|
||||
dev->dev_state = MEI_DEV_POWER_DOWN;
|
||||
mei_set_devstate(dev, MEI_DEV_POWER_DOWN);
|
||||
dev_info(dev->dev, "hbm: stop response: resetting.\n");
|
||||
/* force the reset */
|
||||
return -EPROTO;
|
||||
|
||||
Reference in New Issue
Block a user