Displaying 2 results from an estimated 2 matches for "to_usb_interface".
2019 Oct 17
0
[PATCH RFC 2/3] usb, kcov: collect coverage from hub_event
...t; diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
> index 236313f41f4a..03a40e41b099 100644
> --- a/drivers/usb/core/hub.c
> +++ b/drivers/usb/core/hub.c
> @@ -5374,6 +5374,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... */
> @@ -5480,6 +5482,8 @@ static vo...
2019 Oct 17
0
[PATCH RFC 2/3] usb, kcov: collect coverage from hub_event
...> > index 236313f41f4a..03a40e41b099 100644
> > > --- a/drivers/usb/core/hub.c
> > > +++ b/drivers/usb/core/hub.c
> > > @@ -5374,6 +5374,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,
> &g...