diff options
author | Nikhil Badola <nikhil.badola@freescale.com> | 2014-12-09 13:30:32 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:27 (GMT) |
commit | d00b8e730bc1a0269dc80a241cd470b832b449d8 (patch) | |
tree | 776d8e8f575df9c1f9f6d2965afe32c9278b2853 /drivers | |
parent | 4d29529207741fbe0bbe96412d6425ebcd9e1553 (diff) | |
download | linux-d00b8e730bc1a0269dc80a241cd470b832b449d8.tar.xz |
usb: gadget: Turn on cache snooping hardware in usb gadget
Turn on cache snooping hardware in usb gadget for PPC 64-bit Kernel
Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/udc/fsl_udc_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index 3ffcdaa..240a5ac 100644 --- a/drivers/usb/gadget/udc/fsl_udc_core.c +++ b/drivers/usb/gadget/udc/fsl_udc_core.c @@ -335,6 +335,12 @@ static int dr_controller_setup(struct fsl_udc *udc) } #endif +#if (defined(CONFIG_PPC32) || defined(CONFIG_PPC64)) && \ +!defined(CONFIG_NOT_COHERENT_CACHE) +/* Turn on cache snooping hardware, since some PowerPC platforms + * wholly rely on hardware to deal with cache coherent. + */ + #if !defined(CONFIG_NOT_COHERENT_CACHE) /* Turn on cache snooping hardware, since some PowerPC platforms * wholly rely on hardware to deal with cache coherent. */ |