summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLi Jun <jun.li@freescale.com>2015-06-29 18:05:26 +0800
committerLi Jun <jun.li@freescale.com>2015-07-22 10:22:07 +0800
commit207c62380be1879288ab018af888bb2b5e346d3f (patch)
treee0668d741d6275cbe8aba1a5b2d728146e4a532e /include
parentf0c63b894a60512318481cb8a7b0777cdb7c46ab (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')
-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 ef3b770ce777..74e4d6345ec1 100644
--- a/include/linux/usb/otg-fsm.h
+++ b/include/linux/usb/otg-fsm.h
@@ -143,6 +143,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 {