Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3897494rdg; Wed, 18 Oct 2023 09:01:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3CyKjwpYm6S2MMhKfMnrT9ey2jPAOztSJYYyHouP0ithkD05kaZE2etstaTsWNCJosMBg X-Received: by 2002:a05:6a00:2d19:b0:6b2:5d32:57d with SMTP id fa25-20020a056a002d1900b006b25d32057dmr7750003pfb.5.1697644883982; Wed, 18 Oct 2023 09:01:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697644883; cv=pass; d=google.com; s=arc-20160816; b=mlCDxY28vhilwvamLECxdFmaTo0pUmAZ2bcz3cT3Pd7ghrVjKNqF//xGQnxdz1NZs8 86v28c8JBX5Jj2Gug3oc2+Jy9PwUBXI+xD59WIULcjKUP7yL4hL2J6oEUJuJZk5q8rfe DVKXGA2PCkQdPHmDp32zzmkmInJ5e5NXEl58WMmNbaHigpT/VVJC+PAfKykDWsBIJUkV MsC2nW246mu5ZLskQEtMcw9hHXc4N0pHRJzi9ztiY4We/7n0X4Ki2/jVwyU8tsUdLHe0 GsoEE1c8NQjZzfQvSfRx/Ig7cT5B3QMeo9AYh1IHGj3ilLV0m/zRPmdd2O2uKJM8pBJR 2ixA== 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=zHb12mv+q3aGo0I2rsYzw2ekSQUgct9J7kDTDT4SLykm+JGB+S82aoQEKTf2OA7bOZ 6VS2gW1kFRhDa74XrdhcxWVnOguI7VcUEgwtuH5LEwd6t/EB3h5qS93bqaqDU2mdCZjG pj7h6GikRV6vD2uaxiAgJUgYlzcVqbhB2sH2hUDpjkS9ZujmzGR2H2kYpIDeBhsmT6s/ mYYUIIXMhnJ5bIfJP8rhnzeU4Rij5M1rHn4Uh7+yo+LaBaspQj8U/2sVB7VXlb6gylSZ yMkdZJPpUfWxprXYVWO0IF4mnsEWutbvoZuz7Eqi3nILpXHPJokHf+3b3zbMEFg9sitT Ag2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=lGEcrEyc; 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.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id s69-20020a637748000000b005a1d8815ebcsi2291638pgc.288.2023.10.18.09.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 09:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=lGEcrEyc; 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.31 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 morse.vger.email (Postfix) with ESMTP id 6ADFC80A135C; Wed, 18 Oct 2023 09:00:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232153AbjJRQAE (ORCPT + 99 others); Wed, 18 Oct 2023 12:00:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232335AbjJRQAA (ORCPT ); Wed, 18 Oct 2023 12:00:00 -0400 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2047.outbound.protection.outlook.com [40.107.13.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2427511F for ; Wed, 18 Oct 2023 08:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MduOfhjH/LdwUtG06Ew2098PgJ41MQQqrwjzuPOmaMZ+kdfrCdAo5mkdBECZ7KY7cyTnL8sussEv294xYC35MXlJoQlmof8tnn0N7a2FbhdzVVbKnfA/Z2YG5SYMkl74zAxlG4GdqQoyiVRpJx3zJHDHODWAPn7f7n0+5Zs+laiflvXFmesFp/kgGa9YW3SCez6ro1U/CqBo4M87ELzR4If62Ig7Vyx7NJ+e+gxjMw945t6VaFUkkAiwpJrMuoz9UcqIpDT2p7YEo8uxx00+amz7uIuYhLAIR9sUmfHWAna2cfmN+OM2gUMJQO3+5sleqa0/YaKeKsIPXPyiARmS+Q== 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=IqOEH9CJS+j9dxZgR2yEbWh+JmUh/sLcmKqYDT1JcInjEj1q1OpVah+1MS5UlNqst2JKpLe+NaAJSGEGY4YxkjEBEsjhlP6QYLMvLmmJTmn66WBKKrSH/65++LyaFneKf36pBNftWNLolvw0UKmclVJENRLruGPU18sJN/yDNlI5NRXSPx0w7c4Lb/SuLqTX0gQ7Iz4gJFRGv0EVxKDR5VmVQ+Ja5fkz/68AJi6H3nAbhneS3uOA5oNpspcBNo3T+IVuACxGXis6xHp9HoIg9JiudVmsyYI/aHWHzDtaIdC4g9GQqJqCINTFl03FhtQ2Yf06tGuGmin00kBSvSy68A== 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=lGEcrEycImBcT70mVsCuAnZY21OYSVIRJDOB7ZuJ0h3aiJ7OhrKCnbpR3uK8N8/IE/IrAC5nhfzjtUvCGegecrC/uaZi2t8mXE4rbYwT6Bz+QyhfDGYHquIcicAB8lYZ1nv+8oM5pEZGXLrmUAOEB01edQxL7bJOV8fnlTQf1DY= 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 AM7PR04MB6966.eurprd04.prod.outlook.com (2603:10a6:20b:109::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.23; Wed, 18 Oct 2023 15:59:54 +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; Wed, 18 Oct 2023 15:59:54 +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 v2 Resent 4/6] i3c: master: svc: fix check wrong status register in irq handler Date: Wed, 18 Oct 2023 11:59:24 -0400 Message-Id: <20231018155926.3305476-5-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231018155926.3305476-1-Frank.Li@nxp.com> References: <20231018155926.3305476-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0210.namprd05.prod.outlook.com (2603:10b6:a03:330::35) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AM7PR04MB6966:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e072b63-f091-45d3-ba7f-08dbcff34432 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o4fWw9ZM8N/m5xDM33uJ4HdiK1ld3pQPedGUKi85zJ7BYmqeKNBHHm3k3uncepvDYDO1wxa+PDeIvF9WgX/GG9grnqHKs7d5lgUeSwFXaVKI+o+epSOt+8MtfzQw2za0T/6WyO9dYtxIe7D+zCEGdCcUa9lMEwSYowBoM9Ciz4EiGDFIMYo8XETPKBkr+DvX0cvmriEDGtwIXBo94yPEdhauW3RKMeFd6yoBY/ZieUYvOR+qg9JebAVKQ0k0phl3LDlbqp+VG6ZiGur0MgUWze6c37H5iCpb2+rl5dgX40HUe/Vh3/Kp2lHf0n7iZP4XlVnOtTxk4CVkKWxFP/n8xcDMlK+X8DrQnPwqAjOtJJLlrs+gacZOytas2CB4im5CoR1V6+IQHdj1Lm2ZhDRs5iHlpe/LUTcEpQMJWeL2/TGKE4Q3qXeSPudiA5wiXFF81XOpw5gwQ3/aAK9Xsnl7b+brW1Jw5EdIN1cNoNMbbruwrinynuWX3q55flh7p8/UfXKSz2q+FyrXf+6PMOjEntJ8nLg4jXrfa0Eh6xXygVRbdCO0qbBal7zguc6xNFxeaTIN7FFNgTP1MLcwBKTjuHL+w1RNVcUOBy4NQavVp2DFrgZhkJ7N7WU6KakYi1E7 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)(366004)(39860400002)(346002)(376002)(396003)(136003)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(2906002)(478600001)(6486002)(6666004)(38100700002)(8936002)(5660300002)(8676002)(66556008)(4326008)(66946007)(316002)(36756003)(66476007)(6916009)(86362001)(41300700001)(6512007)(52116002)(1076003)(6506007)(2616005)(26005)(38350700005)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?h90RWPYZsEHs1ff8kqjfxPnbhINnOxCeSY332nStR/VX5ag39/snqoQidqGQ?= =?us-ascii?Q?fFQIoJu66AxPZnlc7kTOL4jNfcd9iWiWUe9vVQusFbKJBCBmvc7r5f6Y3cVF?= =?us-ascii?Q?PXO/R86DAQVpsxnNS+Ti+c1g1hCyBFmWYZN9LLzXUd+hVDMTpb4wg0y9D6c7?= =?us-ascii?Q?0EJRvx/4B7QEg0IbOcRlk11lmJTsAfZp1K9dgaNMGmgBOWEnpa/fi3O3Xm/7?= =?us-ascii?Q?BExA+wPTq0XQdalEi+bM7ysipCgvUkgWulMzxr9Ll1U7vlPi0/sEtRfdzD8p?= =?us-ascii?Q?wrnEDP8htgArNkTYOmZ4tbFhrcw0AOHsdeqxEtnUQ3QbCiaKQETj/iAJZ1Yi?= =?us-ascii?Q?rBhU6b/ZWzHicsUEEzEDFKOEmagUWI9RBySckoOO2hcp3XVpXHhSVq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koZqX3SqU77iM9/SxMus0zv?= =?us-ascii?Q?i3B2+dbYMGBga+1PQuDU5R7gHaGqLRD10N5ixb71+vUhvA1SqGmUqokCOhlB?= =?us-ascii?Q?8LZwQLpAeVOaTS5nT9wtD6NSnNTtdsDCLJ9Hes/ck2z3Kge3GtPY4M7RjFuc?= =?us-ascii?Q?ZVQEBTVIXDFynsqv8HO5VviDzgx0gHEVQeGtOPuDEJ4LphG3PtISW43/7Nxe?= =?us-ascii?Q?0qgItvDh27N786+2F7LXUdTnAq3E2wAOxP7Y0lRq5AAG4IMPnxsLJjQTYvzt?= =?us-ascii?Q?6W00SFhUlRFw8O5xC34HpCGQ8degTr4nKXLGPbbm?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e072b63-f091-45d3-ba7f-08dbcff34432 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 15:59:53.4539 (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: duZdMaKarVguVUIRRqL/0gLXw2QgJ+bKMv4PdDEGBcDAaZZbZctCzUTZ9QG7jSWK/DUfqaV3aileL7rRYj++VA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6966 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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 09:00:45 -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