From patchwork Fri Sep 27 13:28:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hardevsinh Palaniya X-Patchwork-Id: 13814309 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1827CDD1B0 for ; Fri, 27 Sep 2024 13:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8B+ctj4wnj1B8HkzVG4H9VH0Yeeb7LHUmfY3cablIj0=; b=eFkHxCEjSOCjL3dtQCBkYzjkkD 7M1IMz+IjT885mEBBQtJoh5xmHwnZpmViEo7pFol5zO6xHEFfROpmno3LxVK8BIidPjd3MHFuTOZM Sd+4aJGaIDnOIi/RykQwdGiYNpQkgAp9p8EFsooPnkxO0C3zEZz9JyBkqyfTB1SwmCLcJyYsFtd36 YwXifZP6lwP/5EF1s9DFmXOY6YMjwNj1YldF3os3ZeREcxkkqvdm1Xx4Jps203qNOBTMUWCYQlU7H Kt1o6YSNdB0u7R9DrnzkiBD/FWyyO5c1OCdiE2XAopuAOvi28Rcu2pofIEJom2NGThRvXe98mtMZ4 jRV4sGiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1suB5i-0000000BIqb-1kRD; Fri, 27 Sep 2024 13:33:02 +0000 Received: from mail-bmxind01on20727.outbound.protection.outlook.com ([2a01:111:f403:2021::727] helo=IND01-BMX-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1suB3P-0000000BILF-1s1i for linux-arm-kernel@lists.infradead.org; Fri, 27 Sep 2024 13:30:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZL2srfy9OE56f1n46WEGbvjRBTxnuFDe1HsovgMJPTCGIBTlzlDWc9e0UkeJYQBg7kO3zl2K4gLGdx0eYAKeXe4/DPiEpQVE/kpIkDya4EN3x+M+4R9DZR8/tmlfsHR4VJVLnz+dJBnc1rvm5Wi4YIwldCbr5Sm3m102dbusuNn6RE7Utp+sTskDMO4lyYbUv88jvZl9Tq7Qt1sGHqOftnak9mBBOFrwFo7ml3j4w5oHzrxWmYgNgHWS4ogbPXOYqHR+IDO/duecyWO+Rzr85oH+vuelwDXx631lnk9Kqa4fLGoLQVY0YOzYBrxrRUy3fkRLipQfmgPhaqbF+Ua1OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=8B+ctj4wnj1B8HkzVG4H9VH0Yeeb7LHUmfY3cablIj0=; b=tPHT029O/uPdO19wH0uPsS+MI3isYhzmbkhNoSuwi9P6YDMYIIzZrdK1PzOi1fiOTQJL0GGtyLN/AdFNPUAU9hH153Dh3gV/cVBJRLpMGv+x2i+3MGVBI4L9AFa/rS09NDYvC2Cpd1KZ8YKjIijODDNHzO0ExnCWokYaLvWyayFeElzG7UUjxNQjk/cySrVjnaXOCjqo9bjSq5W7Ys2uMQ+trAUxM9Hw7TGL7iPn7BseKocU38xW1TtrxmiWLrkA54MsFpW3zJPNrJ8FSMhs3SZQH9gu4tt4cBx+Wi1VEK7zCG/NBsFr7hB1nVtcfniZUJKow4i0pWID0+U8Y0ey4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) by PN2P287MB0416.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:116::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.22; Fri, 27 Sep 2024 13:30:22 +0000 Received: from PN0P287MB2843.INDP287.PROD.OUTLOOK.COM ([fe80::1134:92d7:1f68:2fac]) by PN0P287MB2843.INDP287.PROD.OUTLOOK.COM ([fe80::1134:92d7:1f68:2fac%5]) with mapi id 15.20.8005.021; Fri, 27 Sep 2024 13:30:22 +0000 From: Hardevsinh Palaniya To: linux-spi@vger.kernel.org, olteanv@gmail.com, broonie@kernel.org Cc: Hardevsinh Palaniya , Han Xu , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Haibo Chen , Yogesh Gaur , imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] spi: spi-fsl-qspi: Fix casting warnings Date: Fri, 27 Sep 2024 18:58:33 +0530 Message-ID: <20240927132944.19285-2-hardevsinh.palaniya@siliconsignals.io> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240927132944.19285-1-hardevsinh.palaniya@siliconsignals.io> References: <20240927132944.19285-1-hardevsinh.palaniya@siliconsignals.io> X-ClientProxiedBy: PN3PR01CA0021.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:97::19) To PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN0P287MB2843:EE_|PN2P287MB0416:EE_ X-MS-Office365-Filtering-Correlation-Id: dcebe16e-98a3-4e8a-6569-08dcdef889de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: aVLg4mXO8TIK+QSlOd23eCAHfSR6o5A83RsQMtkbxJj89seqf+7jR85DKzwc53gE1CIZqhG7J/JGRyI74+LXmdtd6GGG3W7OjFnWJpFmdiV47q0zABmHRFECpyc+RHYEVRljSplAfcEjg8XQqPqHC/sqFXBzPiZepH3ZvH7Y2/DUS6XhSTcA9rAo3NUPvDnoW2I0Fwy5FkRHg6WXMp59ze1mD7VdrBaYJNa0LYVlyo5bfRmV9mR2HrQnnsm+fWiOACxN0YanIDLVZtpHxB5hGcpC5PG1I276vPjHtq0h7rL/hEaKWjPyBX9SdkXTWy/jlkj6/KSUe0Hm2wQgP16uo2m92UZjAqB8KbcsjnDIk98A97GCJ5nKaKCOqbaKlUZ5fCSrMdgIDUW7se1fodeEwoHkqjiYL3sGOpXx/tqvOPMfYsVQLdNBkkOMNZE5zsb2/qLNPhy0Y2ZHWuReg6Ajasoe7KcDihFKO8fnBQlhOh8AkarGUdWDfjxMtVnNBMs5d/J9pwptM2XPYvlpXGc5pZL/cSrr08cZwMuaXRW398mR6rtr8Ze2i56UOxTIjHNFNEvw6iptH6nDNLcx17IypjN3g0CzX3d/lPpgLmxxOb9nhsTM9hqCseJCrgXyJRgPoU0Rxz4wfbQVoyI2vbACgFc04AT8U479qm0Sw9LPBn+y1UMhcUvufL+wDLCy+oGx9Kt4qip8CJvh4L1n0yNBuxdld1yuYRAw+D7R1hIlIzoZpr83eHgzyFjDRCukJxBPrMygAHb4Ua4mvqCgSYB+ipxvoDrhsiM6GYGJsV7UjrPsd6hQI3IDIP6sn8S0x6wjNgkVayiEl5OmtElWvSFW6nUJuB6TDC3ZEBpElaseKuvsETVZ3AOpypbcUWhOBXm6UDazH39Ifps6uhqffTuXQw+V6Th2m0PQ8I8yP07RRumttTshsFKQT4o/rAParWSKLmbAR7DitQfSyB9Q2tJ+ZNTM3C6PR5AvvQra969p5+HojSwJbEUeBI/TzyGNGaeYLrdzz4q8dUlApc/HozmRloN9du30xdzepiF+/sJoj35eoCTo+MbAkY2RvLjnqwy0YpYjsgW8u1BKIbk6tBkovbPeqB8V5JcnLrAIzYE1FnzD50uds2cXcMhRa0XS8TH0/X5q/UhZK897x8uuAtawvK6knxTmMXtzKlKzddp+Ep6RJCcK4CMPrRdXyY4nsrgljvuDDofwCYO76Nm//3RRIkFFfBQwOWtf3vuUjyMi6wm01F476mAoFifeeix457DzcHS/YG4D358VqnH9Par3uIAmYTIO3FC3oDkPvMUtIsIWo8KJReLQy0IlJcAmMkqoQFIdUZY4LMKG7blRSKBpQLCEaLqdpM5qMO7H2+Ub/PqxvX4GxMpCTnsJRLL2nHXOqr7BUrFhdcFdzz9X2jrWDw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PN0P287MB2843.INDP287.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Hi7DaCLQo0R/MP94T0K+ZnL37zhFnWesIUERNAsFWRyfHhBfs+mJyw5Lqk3o303Zwsal0aJhaX8ci92GTBSbtcF2ir11kXuS3hv0rJ0E/IX8jnvk0oNhqM1wCNMJkmJoEpyEblBAQMe8DyFPIUiv4u1pH2TWx6xh/OQ5ExPCTJXFpJ0+hmR6O9ZLnvL/hH3esy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Sg/Tfw3qksiMSbPW45dE8R+FQJbmwboj0bMqNSW6t5l4o7EwmOCYNLLfdJu7/x7N1kYQDoKSirU+k8VNloBS/vZjQduTgYG0/PGmgRX/JlLcspQCFpL43sNOyseUrlWG234YfLSYgYx0gv5SLaZZZsU4/aaA54aBjrsgSGZUiGZFToH9pKYwOJb/YRAPBpaXsceNI8W+lJNHm5c516QEW9ls+BaXfirR7LFGrrWavEBjoxWfSpZeV8rU0BWBkW6m2o+SZfNP3vdkXkBBDZHv8B8iVjN2kTWk4OUk8KQyztVgYKJaptqHJ2af4lFhnYewGD5yKJ9UPt4fR7ieQSTHepXtUMtmCTwhKBBK824Mj6XSBBzkAx5GW/yTpOr4pnYt6xM X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: dcebe16e-98a3-4e8a-6569-08dcdef889de X-MS-Exchange-CrossTenant-AuthSource: PN0P287MB2843.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2024 13:30:22.7481 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: olaUcIAEo5Ui5sUbdo+7B1VvzP5Owx+G4KE7L21izKk3pK94b37MevvVj89sfFYlL2dTvGtNc8VNI5k1J7LOK204QzD5T/JlC3nGCbX6Hl3CdHte+ETYkyqJBHxcAOte X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB0416 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240927_063039_509229_89779B70 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Sparse warnings: drivers/spi/spi-fsl-qspi.c:635:25: warning: cast from restricted __be32 Signed-off-by: Hardevsinh Palaniya --- drivers/spi/spi-fsl-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-fsl-qspi.c b/drivers/spi/spi-fsl-qspi.c index 79bac30e79af..e4a2a6049e33 100644 --- a/drivers/spi/spi-fsl-qspi.c +++ b/drivers/spi/spi-fsl-qspi.c @@ -632,7 +632,7 @@ static int fsl_qspi_readl_poll_tout(struct fsl_qspi *q, void __iomem *base, u32 reg; if (!q->devtype_data->little_endian) - mask = (u32)cpu_to_be32(mask); + mask =(__force u32)cpu_to_be32(mask); return readl_poll_timeout(base, reg, !(reg & mask), delay_us, timeout_us);