]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: stash hd as context for all URBs
authorAlex Elder <elder@linaro.org>
Tue, 18 Nov 2014 19:26:45 +0000 (13:26 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 20:48:54 +0000 (12:48 -0800)
commitfa23ffeee6949ab5962fe2727ffb107574123aaf
treec63265a26fcd476684892ea97cc38f49c072de40
parenta9163b2c30c9e110530ed5f56bc5296bb152aa98
greybus: stash hd as context for all URBs

This changes the context value stashed with each USB URB so that it
is always the host device pointer.

In cport_out_callback() this allows us to get away with *not*
requiring the gbuf for handling completions any more.  We are
(currently) ignoring the gbuf status value returned anyway, so
we'll skip setting it altogether.

Greg's comments in cport_out_callback() point out that ignoring
this was misguided, and handling send errors will be put in
place in an upcoming patch.

The context is set to the host device pointer for SVC receive and
CPort receive URBs for consistency--because we can.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c