diff mbox series

usb: gadget: fsl: Enable usb snoop on PPC64

Message ID HE1PR07MB4169B7A47CC7105A9FC3E993ACFF2@HE1PR07MB4169.eurprd07.prod.outlook.com (mailing list archive)
State New, archived
Headers show
Series usb: gadget: fsl: Enable usb snoop on PPC64 | expand

Commit Message

Qianbin Zheng (NSB) June 3, 2024, 1:46 a.m. UTC
Turn on usb snooping on PPC64.

Signed-off-by: Qianbin Zheng <qianbin.zheng@nokia-sbell.com>
---
 drivers/usb/gadget/udc/fsl_udc_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Greg KH June 3, 2024, 6:41 a.m. UTC | #1
On Mon, Jun 03, 2024 at 01:46:50AM +0000, Qianbin Zheng (NSB) wrote:
> Turn on usb snooping on PPC64.

This says what you are doing, but not _why_ you are doing it?

What changed to allow this to now work properly?

thanks,

greg k-h
diff mbox series

Patch

diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c
index 3432ebfae978..a0f3498086d5 100644
--- a/drivers/usb/gadget/udc/fsl_udc_core.c
+++ b/drivers/usb/gadget/udc/fsl_udc_core.c
@@ -328,7 +328,7 @@  static int dr_controller_setup(struct fsl_udc *udc)
 		__raw_writel(ctrl, &usb_sys_regs->control);
 	}
 
-#if defined(CONFIG_PPC32) && !defined(CONFIG_NOT_COHERENT_CACHE)
+#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. */