mei: expose device state in sysfs
Expose mei device state to user-space through sysfs. This gives indication to applications that driver is in transition, usefully mostly to detect link reset state. Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
这个提交包含在:
@@ -669,7 +669,7 @@ int mei_cl_unlink(struct mei_cl *cl)
|
||||
|
||||
void mei_host_client_init(struct mei_device *dev)
|
||||
{
|
||||
dev->dev_state = MEI_DEV_ENABLED;
|
||||
mei_set_devstate(dev, MEI_DEV_ENABLED);
|
||||
dev->reset_count = 0;
|
||||
|
||||
schedule_work(&dev->bus_rescan_work);
|
||||
|
在新工单中引用
屏蔽一个用户