Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp654650rdb; Thu, 19 Oct 2023 15:28:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+XyJPFmJsfha+pa0+QfFGK78In2pOd08www8MRmi7N71/+pC3P5eRYe2MXQU115QMgzRn X-Received: by 2002:a05:6a20:9155:b0:160:83e1:712f with SMTP id x21-20020a056a20915500b0016083e1712fmr173984pzc.23.1697754517245; Thu, 19 Oct 2023 15:28:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697754517; cv=pass; d=google.com; s=arc-20160816; b=A3+Gy+dJd1lPIkoHlVEOW7McBbCESjcV3lQbt1sGnX7IjWX5CqcYiNWfJcJUtadyy+ FT4/ViOn2zPqTcA0ogSZ+YtkfO7hUJ2mafDnopzKKWQfZfwzx/jY/zJMV4yQYh6xpixD 6/sOf9++twu05w4AdM6gHevP1DxXt2AxJsMBhofb3LZoP20gZismcYVYobiq9dJ5Ln36 rFXPMhc5yUS5wXYxx6aq9HDAt5CaoAg2ScaIvv6Nv9RRaELqtnBBe2XDlOWl8owplPJ0 K3VXMIuyLgrLo7ORU5X6Tc2AIAE8l2svxKWSCk2zWq/dBjeHV4iedV2MBn7EUo/Cboic 89bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ghMi/AjqmeuflsZPjowu1AoqUyQlM4/JO+IAd05K8m8=; fh=sDe3TG6/b46JEOvF2xh0f1K4oYWCH8cpxTVfh1/w/G8=; b=ziswejnfN6L51DOl5qu/qY7r0EXFdiKrT/nTocecPHHjfhkCL4iXQvS/wbPTZwq51M TwqmuPol651Wqo+G4x7eYtNLPefotv893C0zWZRmqweLAyUW3Sj1X1+9rRUMP4FmRtMQ C7etUzfyqe35RLc75OO5riL8kWhujLG89f/eB6FMuET3aEU+u8HvTXFTCCAxev8fI8Tp kJ1fpHeHeHtBjTN9BqCMz+8PhaNrMTGSO8ww4LE+h2hrNKd2n6fj6kkw4Aw6Ogyvl8Ii 16M1iItvFIj9OYPMqiHPCnjQmcrGt9uByiMQ858JV9kHzlC805VpAkKA4u48DuSrLyHN nXJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Tdiaah2y; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bw34-20020a056a0204a200b005783367f97fsi608402pgb.342.2023.10.19.15.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 15:28:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Tdiaah2y; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CFFF381E5564; Thu, 19 Oct 2023 15:28:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346649AbjJSW15 (ORCPT + 99 others); Thu, 19 Oct 2023 18:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346636AbjJSW1y (ORCPT ); Thu, 19 Oct 2023 18:27:54 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2071.outbound.protection.outlook.com [40.107.22.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 810B9112 for ; Thu, 19 Oct 2023 15:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iKbOHy+o3VwCdz6G4CPqj3/ZEtGhNBkThMsBR+FKR0du7EAlHuy5O4GpUVujI3wXVYxDmrasfWD415z2SJvDFJAqN9yjdz8l3OSQExOVT7jcHxdI5QLEZQfSjsusszAnFVsYqSDYxqkswcVlxqglLj9cQw/+EXXirZnfyHVlNV6vzauSbMs3yAaYyQok0NntIyVmrCqawASPa7lTCOkqD17vzVwzuhfHrA7X05Uve58j8F/lLci33zos8C5/iZIc/IbVFwZyYHkXY9PUavYrot5moCl/3yjF+XdOc+iAqfbwVw5iFYTtBPDF+CP1/o/iuevPWJoVtnTvnYVdhnhj1g== 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=ghMi/AjqmeuflsZPjowu1AoqUyQlM4/JO+IAd05K8m8=; b=LKa+Q+cIBBI4VOo8n+jXBuDCCEvgPX1ZxIym0ZI5GnpDKGn1FnhOoD9K2GFX4gvmjdOref1UVOM73i9owLZM84Qi5N/oxyWYre+Uu5qD0CoZXZwfbBtIy/Gmq280/kX9+UsboVOdAM1XFAg7hqnJac9IyH1OI2qGZuckG2ycEvwLC+uJ8PI2yittoxIxxNIDok6dAkq5Z7UPLupjRjVap0IhAYwX2J4SlPs/6PyOd4eD8NVPcvg4eRwPPrPScF13fzrRxSx6O/UNhLLAFVa4pffAdcod5AcfVClkN0iz4+VmXSYMo6iXr1Yg7VDxmZVHSXn5YQSrJ9vLib7Sx/TOCg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ghMi/AjqmeuflsZPjowu1AoqUyQlM4/JO+IAd05K8m8=; b=Tdiaah2yXz74YD/N5Cqwi/OB+DLbE472SGwRW8G4DBK5bCdefMFZNIzyq6ClRpeRbrsbYkoy9w9wWSVxbYsSCRUc4Ouzxk0enJTQ6BnzXEl1PxJB0dCmI+tdFCP1AxhoQoYp62LiJ4A6CewYl/GNMQkq98/gLOac+GaYtI/atKA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by DBBPR04MB7708.eurprd04.prod.outlook.com (2603:10a6:10:20d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.10; Thu, 19 Oct 2023 22:27:51 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2%4]) with mapi id 15.20.6907.022; Thu, 19 Oct 2023 22:27:51 +0000 From: Frank Li To: miquel.raynal@bootlin.com Cc: Frank.Li@nxp.com, alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, imx@lists.linux.dev, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/6] i3c: master: svc: fix check wrong status register in irq handler Date: Thu, 19 Oct 2023 18:27:23 -0400 Message-Id: <20231019222725.3598022-5-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231019222725.3598022-1-Frank.Li@nxp.com> References: <20231019222725.3598022-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH7PR17CA0042.namprd17.prod.outlook.com (2603:10b6:510:323::21) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DBBPR04MB7708:EE_ X-MS-Office365-Filtering-Correlation-Id: b8d65c76-b00d-4f54-353f-08dbd0f2a135 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mTZ6lEItdrFHmEZu+5m6mBF8BlYcmFPwlP3p9xc+cyzpL3T6Dnr7OcS2BGB30+fB+LExQ02+iSHqcSSCD9BgVjZqH/yZ3qfP0tHLtG/wkj1SqkkAzV97ih5gTlTPQsNVJ0KO2dZNeX4f3yl+5jBx3jErA8IOzjJdgYTdtVkrJtTVC87DL11gnriEiFECQqPW7MxpCf/ZsiCefFvdYFbpBP40lpV6X9g96+vGgfOl9NeJCCIIIPkP/FW4MAJUfRlfCSOqnXvof6PFMCSIMnKatYJRcl/luSZEZnhPAyVmkZ4LpMRSaWTlCCsS078135h80CMohdKzrUVTa234fr/R6rX2N3yT0mGFOTKY4xDKPTn5pXDU8RGqnuAO8OlJ44xQktw1rGWywIgLzL80EyhqgJs2opOI1rCvS6n7RAqqYCgF4n/DD3JrUH5CPnvOc/3zspqv8wjOEesZED6wyFK9mbnryrHoqamrO96RP6mmBczE34Wrfg9AIJeR83rLCzGvSKA5WP8AuFtSleYGyCPKH9tn8D4HkKM5r5mWcf7xgRl7n17yHynNd6evseq86e2pi8iCbAXTCLouzL6YkQ846tRBDmicQsBNFKqVJRkRzdWP/xYGijMqyF4lbsQwCFSxemSdm//+I5/8mrVElfc/EhB3Ms+x1MYnCkUtqXxHWR0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(136003)(366004)(346002)(39860400002)(376002)(230922051799003)(451199024)(1800799009)(186009)(64100799003)(6506007)(83380400001)(6512007)(38100700002)(478600001)(36756003)(66476007)(66556008)(66946007)(316002)(6916009)(86362001)(6486002)(52116002)(2616005)(1076003)(26005)(6666004)(5660300002)(2906002)(41300700001)(8676002)(8936002)(4326008)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?g3RXzKyWyGbdomcsJaPgK+NIvibljavZG3h0HhdHuMb8YN4Hk9tSpuLmPin3?= =?us-ascii?Q?e1Vycs+dW/ZHC2AmX+/yTHTJw5m/hmt+SejgDn4Xb5CKqi9XZrlhw3jyYTJk?= =?us-ascii?Q?mfUJdnq7fsPP1kVK10AbC1/+iwWr/Gl8npp8I+skjWwFA33UBf4THLaGkb8p?= =?us-ascii?Q?dADWZqWtdwJm7pQYVgqaQD867FdW8KaMWHa54r+n3VmLZYG2Q1/gMRQw9O93?= =?us-ascii?Q?hGi4LBL0n4hUPOhZip4LX1n+ywEBxvjaON3805aZVUBsR5zYmCnT6JlYxxXB?= =?us-ascii?Q?egSICZl6NzKjow+du83dAy04FS0HNq217KJ3+7sVe1VI9koO9zFo4ZZGtp1X?= =?us-ascii?Q?kdTMCzPftgG/LQ+2j1ILq7F4gCr8G2rtLUiiWden4Y48gi4KRHItAJ+7kqBD?= =?us-ascii?Q?wk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WIAKSEVSZLFRdKC9ogSE7u9ZjNS?= =?us-ascii?Q?9axdLkEdBBtLDUrTDwUkkCM8Iac5mw6RaOsU1Py7ztaMhO53MQQ6m5+19h8J?= =?us-ascii?Q?9BDH8h7kLFjI6tLFjpj/mrXYXJ23DtcH3G+Gb5hOuu01f4e0ZjAbbzgWTqNb?= =?us-ascii?Q?vSdgIdu9AbiZ+8GyruCu4+dwZEGaafyAeiy1zunB8J/9aJTBjuzaxogN4pmd?= =?us-ascii?Q?2sAhWQmgvi7MPUzqv7FUsmtsU3w915e8uGVdM/WFe55BG2ePHFl7BhSp0c5d?= =?us-ascii?Q?Ctdyz75lZ8JgKq6cFRTWZbzFnSIMOJu6uBUnzDBi?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8d65c76-b00d-4f54-353f-08dbd0f2a135 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 22:27:51.1204 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AA2YbLLQv4FwuwezwivnpX1Hl7M34lta86SY/+4Au/KRK4VYkBikaVI0PZdqg6lhjUAtsol6+PaXOiyB9zKDxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7708 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 15:28:34 -0700 (PDT) svc_i3c_master_irq_handler() wrong check register SVC_I3C_MINTMASKED. It should be SVC_I3C_MSTATUS. Fixes: dd3c52846d59 ("i3c: master: svc: Add Silvaco I3C master driver") Cc: stable@vger.kernel.org Reviewed-by: Miquel Raynal Signed-off-by: Frank Li --- Notes: Change from v1 to v2 - Add Reviewed-by: Miquel Raynal drivers/i3c/master/svc-i3c-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c index dd06b7c9333f1..b113460f059c3 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -476,7 +476,7 @@ static void svc_i3c_master_ibi_work(struct work_struct *work) static irqreturn_t svc_i3c_master_irq_handler(int irq, void *dev_id) { struct svc_i3c_master *master = (struct svc_i3c_master *)dev_id; - u32 active = readl(master->regs + SVC_I3C_MINTMASKED); + u32 active = readl(master->regs + SVC_I3C_MSTATUS); if (!SVC_I3C_MSTATUS_SLVSTART(active)) return IRQ_NONE; -- 2.34.1