Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp696248lqj; Sun, 2 Jun 2024 18:47:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUBXtUZFYUtN3lg8ZLdlir9p7YT/1EExYfJXvCHdz/HguLjFax0MtiYmqN8gfqox5EVp0VIeI4+MQNioI0Yeh3tnOlFu1QrULJAAdbTw== X-Google-Smtp-Source: AGHT+IESIN1FtQ/1DctQv+NXs1xktngqSDyFz3oXF+JCyqDv3tPLeqxljsxTEMNcAaJEOYd55gfB X-Received: by 2002:a17:906:a242:b0:a66:f8ea:245d with SMTP id a640c23a62f3a-a681fa6aaf0mr539256466b.2.1717379245356; Sun, 02 Jun 2024 18:47:25 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a690c104ad7si54403566b.251.2024.06.02.18.47.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 18:47:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nokia-sbell.com header.s=selector2 header.b=EeEbp9iv; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-198536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nokia-sbell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E55FB1F21ABA for ; Mon, 3 Jun 2024 01:47:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3572F5250; Mon, 3 Jun 2024 01:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nokia-sbell.com header.i=@nokia-sbell.com header.b="EeEbp9iv" Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2064.outbound.protection.outlook.com [40.107.7.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39BE1B642; Mon, 3 Jun 2024 01:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.64 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717379232; cv=fail; b=S1FgmqQH5F1fav1Q2z4qRnKo+dRWRvFVPX086yUBogSn1J2uF7ltb2Jb8p8McjYl5HD+S9P2vNbL6uMUsn4NyTuGmdGwXer/eB5t8xI3qa5hwLTlJFCigFqbamARh4Ri4yTdxnijK8YNeU4BLZVDa1f9Ez0qQkCF6LnsVOzp0Yw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717379232; c=relaxed/simple; bh=Sq7yDLIk4uB6ew9/igF0qfD7kf2JJ4+2w6fYr5hA7wU=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=FpkTlXopek9o/gBccg7eSgYH3qurotoRcjNsl2VRvqetvs+jeEgve9/qYBsCtEDib3x/UEYkuX+xlK1dZ5m1KanSnLxuuPNAGiAnUQ55j9sZcbDJ+YeRtlq2Eirsyv0aG8EAvbEFPMDfZJI2gPL7wqf46CCTLOIQOhE5ZqJgibo= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nokia-sbell.com; spf=pass smtp.mailfrom=nokia-sbell.com; dkim=pass (2048-bit key) header.d=nokia-sbell.com header.i=@nokia-sbell.com header.b=EeEbp9iv; arc=fail smtp.client-ip=40.107.7.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nokia-sbell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nokia-sbell.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RIeIAqfnY+DQJmrZBkV9ZGhY1E8xFNbfRljZ1bK1mmmVFIJVk8srWkiO037v+dXqQ8KIGGv5RxYqVY8HZdIEzqXiGiUHWEeBNC7fNkTCYYNYdOtYqEnOWLWaes9WpLbNPky6fVDbO0tc9j1H3+M948Vmtlkk6gwQNDcJxXCpudBBWU0aj5/T/t/GAnVuwMl9qKAADx68kZofd1bHhEoOfT3sEZfW0WJwcB6JNHnXCXUKxGhLVnjspzx7+9jO3jyOWOGuv7wRUAuws4zBqWNybDIXiWmtHbuxzyXEnapB/57mYIY+UPg92Y48umyuHFHDVuNY3sJThsCU40eVBd9r5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3f5l3jyuUgkJyW0jPm2QZBJLMIq7NSzIo2nuxrTDNq8=; b=eucjbDuQdHOjCEFbjlSUOPdkmbr7wNKUGwt+9pCvDARZxalZxQ0gwj5UINBKK4ifo1Oe6WjNbZ2xDIpPmECi2/vVR5yion/IeS7VVKi8rWoIwZHuy5O2tPgZx4xPM0AbZvxGTs+9Gw5xuvGNrAHYfitCQUvsaoWDHsV0np9pyXgFZDGr2VDrljWrJfBvRrNTm2aax9UqGkeACfUrEXZH8rR5e91++buKsnDeGRsVs8M+Lig5Qj62ckLXLP4JOV0c9Kt2+kB8RwDBBDKZltJCeNvH59sCrnglJu8fjFBIPT06CECVMQ14yVYeU3oaqzuteWTqjS/0ML8YsldyjPtzKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia-sbell.com; dmarc=pass action=none header.from=nokia-sbell.com; dkim=pass header.d=nokia-sbell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia-sbell.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3f5l3jyuUgkJyW0jPm2QZBJLMIq7NSzIo2nuxrTDNq8=; b=EeEbp9ivsJTD8TKa1WTlkqB6vWPmeU8iLnoAT+tzvftgwteTkxgtP+KbwtCmGIXqfkF4Iy8mdCbXJACwijA9/f+IAD9RJ8aWBGpGUtimXkkxkKrLIgIufpF55DXSYI6xsYycATBOsr+L1WQZ6eQRiSt6DIr7sDs52rICTQKVcDtm9H6NoT5R91dovabQ1NkOEy4v92lLeijmUjvAMg+MhsdShADO2QEzptzMziyKlSgT7iOo8U54+G86+IroTVbtPs4KOW1dXQpsdysXqdyWZxZaji7dGM4RitIWupBcO2Mf6/CbrTmKKfWX3X4wM2Qbdou8GxtFhDZohlEW9ZfB5g== Received: from HE1PR07MB4169.eurprd07.prod.outlook.com (2603:10a6:7:9d::25) by PA4PR07MB8390.eurprd07.prod.outlook.com (2603:10a6:102:2a1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Mon, 3 Jun 2024 01:46:52 +0000 Received: from HE1PR07MB4169.eurprd07.prod.outlook.com ([fe80::93cb:c23a:3cda:4fa1]) by HE1PR07MB4169.eurprd07.prod.outlook.com ([fe80::93cb:c23a:3cda:4fa1%4]) with mapi id 15.20.7633.018; Mon, 3 Jun 2024 01:46:50 +0000 From: "Qianbin Zheng (NSB)" To: "gregkh@linuxfoundation.org" CC: "u.kleine-koenig@pengutronix.de" , "linux-usb@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] usb: gadget: fsl: Enable usb snoop on PPC64 Thread-Topic: [PATCH] usb: gadget: fsl: Enable usb snoop on PPC64 Thread-Index: AQHaszupw160VnAcEUi+I4pyUMNTnrGxERVQ Date: Mon, 3 Jun 2024 01:46:50 +0000 Message-ID: References: <20240531091926.3324847-1-qianbin.zheng@nokia-sbell.com> In-Reply-To: <20240531091926.3324847-1-qianbin.zheng@nokia-sbell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia-sbell.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: HE1PR07MB4169:EE_|PA4PR07MB8390:EE_ x-ms-office365-filtering-correlation-id: 7b78c9c9-b7f4-4b06-6035-08dc836f0984 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|376005|366007|1800799015|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?Fu1Zx73sQFZQdLJ1HsrC/1M+FqXhYsaWZOZvdPlRjDWKvNZkgDW0dxvNlaql?= =?us-ascii?Q?PApalWmz+niY7/kqfTwnpvuGTQgzd1LbVYQlmSl9K5X9OCPsUiuaxtL+ys9a?= =?us-ascii?Q?hjLunjrTEL+qYm2ANa3LtvpEQdz0PISqKug3pgmuTKqS/EYeE367r1Fq+01U?= =?us-ascii?Q?AKTMNiVT3/d4cqFyYQe+sUKg+kYWX1Ntnlb9HJWdjSwxXnhYPB4AIxhtJAr0?= =?us-ascii?Q?M3VCadfADsThDwXZ4aBqWd+JEBfJh9B11k1+K7P1FyQOd3gJO5pq4vhOCa5Z?= =?us-ascii?Q?/z14YFsUbNa2VnGgC3jrc3IU+hSiKZrdBuEx93sAYDoglWnpl4n3hHVmn0jm?= =?us-ascii?Q?UeHMC5fbUTKKNQcJxlDb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Im?= =?us-ascii?Q?Z+PVfi7MlN7QPSxfeCPmD0uzxjXfFf0tVqwHMAYsCvyPvb2lh0g1i3vaLlBV?= =?us-ascii?Q?Hjg+T6JQkOkN0xYV5Q4JeyUFvBwRhiI8HciuE73DOKx5kQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR07MB4169.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?c5lMwK3fen+A2UX2JMH0loPTqUh2UgOysh6y/2yf/ZZqcTOQ1hvCXtFmHbDS?= =?us-ascii?Q?DTX9XxRTevTvaqjmsK0QthnLEb7yK5uT7zyynjfCIB5WW5WAktBmMP6B+Xy0?= =?us-ascii?Q?rvSBoCHWwMOGahMduU5BgMy1hGIE1DyZuKEGknr6ZIZ9VLr5esiowVeqRHwY?= =?us-ascii?Q?ayEVRMWL3ODpgxTZRRQ/dELflemXL4jmW4zY4RYEPOcpFXj2hXDpCkvu8p7c?= =?us-ascii?Q?JlNPlgpo15n0lW5SCk77BpenPv2iDpsqmNwpQfMm/3U/sOaaFJPVHLUTpMXp?= =?us-ascii?Q?CQCKSnRR/5/giN31FetVkHPNuH661OgqitQPykpW7uuQsFQCpO5fuvcP6+Lk?= =?us-ascii?Q?b+ictMtU3Xt8/nDppUBdHD7hj4YTVaXRw/FmJ2QTivFtgUBjePsemU8nbqSs?= =?us-ascii?Q?lGgd7MMaFesOjE2nu6WO8mrwXn12N9dlSoHmGDBtMQnqvGG0sLs0UQUGgU1i?= =?us-ascii?Q?cbW5LWDCn17jf9A9w1B4wNARkqHDeU4bmHeZuLlRAF2CACX8NwW3tSVuKGqu?= =?us-ascii?Q?irrLyd6xceXb1POjZlQsQHJZthKQ0RhWdH1smtTcthexJic2d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BGnSVdsrnLaiHKQrPqDRI/TVwgH3f05nM5wpCGC2mEFgAIcvaG4IiSZdfb?= =?us-ascii?Q?gBpyM5IVlBPBn9hJ19H5p0IzPavtnG9VOsx2NBSocbwbrRI9wu9PAwrmXvGp?= =?us-ascii?Q?+9hF+gqsAi3Y87wPaUeahsLEmkwCo8Waezj+UKRSPKPrpspWKl1El2UoWyOh?= =?us-ascii?Q?5g=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: nokia-sbell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HE1PR07MB4169.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b78c9c9-b7f4-4b06-6035-08dc836f0984 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2024 01:46:50.3665 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vXKvjukFJarVPRHJMY6x7wf3N82j4rR2djMptYIyWtzzyDTaXDexUQ0b0Yegc68GaPLuzOtGN7+ZgqR9aqDbPgAXCrPibtM3drO8UwrD2xo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR07MB8390 Turn on usb snooping on PPC64. Signed-off-by: Qianbin Zheng --- drivers/usb/gadget/udc/fsl_udc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } =20 -#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. */ =20 --=20 2.31.1