Skip to content

Commit

Permalink
usb, kcov: annotate hub_event
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
  • Loading branch information
xairy committed May 27, 2019
1 parent 905708a commit 47bbc98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/core/hub.c
Expand Up @@ -5365,6 +5365,8 @@ static void hub_event(struct work_struct *work)
hub_dev = hub->intfdev;
intf = to_usb_interface(hub_dev);

kcov_remote_start(kcov_remote_handle_usb(hdev->bus->busnum));

dev_dbg(hub_dev, "state %d ports %d chg %04x evt %04x\n",
hdev->state, hdev->maxchild,
/* NOTE: expects max 15 ports... */
Expand Down Expand Up @@ -5471,6 +5473,8 @@ static void hub_event(struct work_struct *work)
/* Balance the stuff in kick_hub_wq() and allow autosuspend */
usb_autopm_put_interface(intf);
kref_put(&hub->kref, hub_release);

kcov_remote_stop();
}

static const struct usb_device_id hub_id_table[] = {
Expand Down

0 comments on commit 47bbc98

Please sign in to comment.