projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
709068b
)
usb: cdns3: trace: fix some endian issues
author
Peter Chen
<peter.chen@nxp.com>
Wed, 3 Jun 2020 06:53:55 +0000
(14:53 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:52 +0000
(10:19 +0200)
[ Upstream commit
65b7cf48c211ece5e2560a334eb9608e48775a8f
]
It is found by sparse.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/cdns3/trace.h
patch
|
blob
|
history
diff --git
a/drivers/usb/cdns3/trace.h
b/drivers/usb/cdns3/trace.h
index 755c565822575589f28e63fff85aa9bb237fa77e..0a2a3269bfac61fcbbd5712b5824ddb0694dacd0 100644
(file)
--- a/
drivers/usb/cdns3/trace.h
+++ b/
drivers/usb/cdns3/trace.h
@@
-404,9
+404,9
@@
DECLARE_EVENT_CLASS(cdns3_log_trb,
TP_fast_assign(
__assign_str(name, priv_ep->name);
__entry->trb = trb;
- __entry->buffer =
trb->buffer
;
- __entry->length =
trb->length
;
- __entry->control =
trb->control
;
+ __entry->buffer =
le32_to_cpu(trb->buffer)
;
+ __entry->length =
le32_to_cpu(trb->length)
;
+ __entry->control =
le32_to_cpu(trb->control)
;
__entry->type = usb_endpoint_type(priv_ep->endpoint.desc);
__entry->last_stream_id = priv_ep->last_stream_id;
),