usb: common: debug: Check non-standard control requests
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 28 Jul 2022 01:38:01 +0000 (18:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Aug 2022 09:04:25 +0000 (11:04 +0200)
commitb6155eaf6b05e558218b44b88a6cad03f15a586c
tree276b8b853d3202d9cd5d06ebb814b63f04f9a73b
parent808e8bff6fe4f229fab68da468d9d418783bf38f
usb: common: debug: Check non-standard control requests

Previously usb_decode_ctrl() only decodes standard control requests, but
it was used for non-standard requests also. If it's non-standard or
unknown standard bRequest, print the Setup data values.

Fixes: af32423a2d86 ("usb: dwc3: trace: decode ctrl request")
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/8d6a30f2f2f953eff833a5bc5aac640a4cc2fc9f.1658971571.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/debug.c