summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorLi Jun <jun.li@freescale.com>2015-06-29 18:05:26 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 10:59:18 -0600
commit26ad2bb0bd90641015335f5bafe7f7e665b4ae5a (patch)
tree0c5511d9623f432acb049127674bfaed7c9243a2 /include/linux/usb
parentb4112ddd136ab5774380bb327c173f2fb202b3c2 (diff)
MLK-11200 usb: otg: avoid DMA to kernel stack for HNP polling
HNP polling uses a kernel stack variable when sending the HNP polling control message, which causes dma-debug to complain, fix it by adding host_req_flag to otg_fsm struct, so it's done by kmallocing. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit 05b5f53b2c4d71761454b47852d5c5a48c5cc93a)
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/otg-fsm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/otg-fsm.h b/include/linux/usb/otg-fsm.h
index eb304d5ab1e3..89cce2362415 100644
--- a/include/linux/usb/otg-fsm.h
+++ b/include/linux/usb/otg-fsm.h
@@ -140,6 +140,7 @@ struct otg_fsm {
/* Current usb protocol used: 0:undefine; 1:host; 2:client */
int protocol;
struct mutex lock;
+ u8 host_req_flag;
};
struct otg_fsm_ops {