Merge 4.19-rc7 into char-misc-next
We want the fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -735,14 +735,6 @@ icm_fr_xdomain_connected(struct tb *tb, const struct icm_pkg_header *hdr)
|
||||
u8 link, depth;
|
||||
u64 route;
|
||||
|
||||
/*
|
||||
* After NVM upgrade adding root switch device fails because we
|
||||
* initiated reset. During that time ICM might still send
|
||||
* XDomain connected message which we ignore here.
|
||||
*/
|
||||
if (!tb->root_switch)
|
||||
return;
|
||||
|
||||
link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
|
||||
depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
|
||||
ICM_LINK_INFO_DEPTH_SHIFT;
|
||||
@@ -1034,14 +1026,6 @@ icm_tr_device_connected(struct tb *tb, const struct icm_pkg_header *hdr)
|
||||
if (pkg->hdr.packet_id)
|
||||
return;
|
||||
|
||||
/*
|
||||
* After NVM upgrade adding root switch device fails because we
|
||||
* initiated reset. During that time ICM might still send device
|
||||
* connected message which we ignore here.
|
||||
*/
|
||||
if (!tb->root_switch)
|
||||
return;
|
||||
|
||||
route = get_route(pkg->route_hi, pkg->route_lo);
|
||||
authorized = pkg->link_info & ICM_LINK_INFO_APPROVED;
|
||||
security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >>
|
||||
@@ -1405,19 +1389,26 @@ static void icm_handle_notification(struct work_struct *work)
|
||||
|
||||
mutex_lock(&tb->lock);
|
||||
|
||||
switch (n->pkg->code) {
|
||||
case ICM_EVENT_DEVICE_CONNECTED:
|
||||
icm->device_connected(tb, n->pkg);
|
||||
break;
|
||||
case ICM_EVENT_DEVICE_DISCONNECTED:
|
||||
icm->device_disconnected(tb, n->pkg);
|
||||
break;
|
||||
case ICM_EVENT_XDOMAIN_CONNECTED:
|
||||
icm->xdomain_connected(tb, n->pkg);
|
||||
break;
|
||||
case ICM_EVENT_XDOMAIN_DISCONNECTED:
|
||||
icm->xdomain_disconnected(tb, n->pkg);
|
||||
break;
|
||||
/*
|
||||
* When the domain is stopped we flush its workqueue but before
|
||||
* that the root switch is removed. In that case we should treat
|
||||
* the queued events as being canceled.
|
||||
*/
|
||||
if (tb->root_switch) {
|
||||
switch (n->pkg->code) {
|
||||
case ICM_EVENT_DEVICE_CONNECTED:
|
||||
icm->device_connected(tb, n->pkg);
|
||||
break;
|
||||
case ICM_EVENT_DEVICE_DISCONNECTED:
|
||||
icm->device_disconnected(tb, n->pkg);
|
||||
break;
|
||||
case ICM_EVENT_XDOMAIN_CONNECTED:
|
||||
icm->xdomain_connected(tb, n->pkg);
|
||||
break;
|
||||
case ICM_EVENT_XDOMAIN_DISCONNECTED:
|
||||
icm->xdomain_disconnected(tb, n->pkg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
mutex_unlock(&tb->lock);
|
||||
|
@@ -1192,5 +1192,5 @@ static void __exit nhi_unload(void)
|
||||
tb_domain_exit();
|
||||
}
|
||||
|
||||
fs_initcall(nhi_init);
|
||||
rootfs_initcall(nhi_init);
|
||||
module_exit(nhi_unload);
|
||||
|
Reference in New Issue
Block a user