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>
Wed, 26 Oct 2022 11:25:31 +0000 (13:25 +0200)
commitbeec2f02555c7e9d47fd455f40d7bf7c46fb4b8d
tree7cff9b40f9154be803a85591323d766fcfcca500
parent9d965a22f65716dc452fd682a89c58db9235ec61
usb: common: debug: Check non-standard control requests

[ Upstream commit b6155eaf6b05e558218b44b88a6cad03f15a586c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/common/debug.c