From patchwork Mon Oct 16 15:32:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 153502 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3543621vqb; Mon, 16 Oct 2023 08:33:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLRahCxj9YuiJ17iD3r8IdQHeForC4qTsvVuMlIvcfwVGx5dYaZVXooQUvQvai8/gk0kNz X-Received: by 2002:a17:90a:3da1:b0:274:60c7:e15a with SMTP id i30-20020a17090a3da100b0027460c7e15amr31754832pjc.4.1697470391476; Mon, 16 Oct 2023 08:33:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697470391; cv=pass; d=google.com; s=arc-20160816; b=Xt3qW51GsXAfj8nA9NY6xETIcAQHY10kCGvPQVfs3M6nltHRN9jY8/mTBOug6ugtwB utmK+DQrqXgFKGoo9lxj7Ao4+qp0JpkxeEZdX/k51GV6xcavUfNHIQ7QHCoSSUSfQBAs rIhHaQSXZ4aysHL4RtANMpmVgizFFhAaEXuQ+QMFDIVm98UriVXqlR3Hzai2SQQT5Tqc SJDF7rHw8B4khuHVlUJRAoR4zfvm//HfG8QL/L175OryUzlZ9HzzkBtSsFApTFyrC0l1 mIr0MQILe/CHZ2l3NJ290Xkd/caZoUlW/W4I0Ymn8Cwivfc1XDdogA/z4jbhKEVlroQp 3k3Q== 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:to:from :dkim-signature; bh=Pkwx0UMNI50CmR+xgaVcJ28Fsm+ChWROSyDoeW267Xs=; fh=bn4KwJ7hiZC6iHD6ocv1YpB9R5Bd8J/ZarfJ7QImr28=; b=fQqHjK0n7Jv4knAwO8IZlqQDkQiZn65aSYEzjUXliSSTBa/+LzGP5t2U6IDOZtk9Jn ZoHTcF79LJOBLruZLjl3a/ZDoZ2XoTwGUwEKZy/IW2q6Xw3qRbxrAXeo6pfBNzm6rweq S+YpXExIHx3xrWyEmYyBj2ARbTauOnW9VyJCT7H2ppDxLXijTU3bvhELffV9cvEHnp+9 l+upFmr5Py+ha3Y5eCM6SlNMATqBYkOWOpOAgEVdW9E+u6kWQZT/yOkpS9A+CZ2ob6xR hC+KCUlhxuFCTlKaGWFqK6UhL6xlKp73nKHQj8gHFwRifWIuEVQUmajwb0WrkByZtITw SkNg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=S19mgDaQ; 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 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id nv11-20020a17090b1b4b00b0026b365096e5si1202268pjb.53.2023.10.16.08.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=S19mgDaQ; 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 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C9449802FD02; Mon, 16 Oct 2023 08:33:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233738AbjJPPdG (ORCPT + 18 others); Mon, 16 Oct 2023 11:33:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233725AbjJPPc7 (ORCPT ); Mon, 16 Oct 2023 11:32:59 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2062.outbound.protection.outlook.com [40.107.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70CD3FF for ; Mon, 16 Oct 2023 08:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QmC7We94+7hL4bCAfvFTxmKhDQjf597L1h2l7xaIz96qN8zbSbn5DhXaovLwBgj+7BfC5bDv+Dk1BQL4iSIFqyfG3CZaeMhiI8U4TkIsdj1qI1JZge5YCr5x7+CgYuIUadW4LrGedDy5Lb66dVN/2BgRHeH00FEDQzIbNqUi9n15PX6qqfiNVjJmzPjEobl0SdzUUzGc5Mq11UFaGJCeYcCX3gtiORm8DNOjcNCNpGf/gDNN4Gj4XfHPOg5W5LiQQdd4pTQZyHv3WodhjvlxqRoQbhRjdyJfMPfKHsBntcq1ZR09JRGPjUjWA7JM6qdIYWOBwx17GZ2a8vUb+UYxTw== 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=Pkwx0UMNI50CmR+xgaVcJ28Fsm+ChWROSyDoeW267Xs=; b=mWAKQJCSfP2rL0HC9WYZ0dOlhNVbG/G/G8E3fN14Rh+ZE8xTPQ4fMK6bVlvsRpCzINKmrRp/c3fZG06/BenZg85FbIjxELnD6RM6OmPVe9sLKg1yvymN6p5PRuEO1itGNCkIYZCh+O+AV85fkL5wulOKwKfaed+m9+r7H6HN/VCpkMACVwDcvekFvdLPFqlxSIT+cRaid/8m+efq1we7EaTMvu+6OsvC/7Jxc1wOZGgXhYNV/hwH5u60exKirKMMi6q9E0bxvKfKk2xJoJI+Bkmdwvp5FC0jtl/hWIO7nn6O2EnUptHuWV1KdgCN0YcMYI6qpEk+aycx9/qs5pQj3Q== 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=Pkwx0UMNI50CmR+xgaVcJ28Fsm+ChWROSyDoeW267Xs=; b=S19mgDaQjfosE1u4yCHEYBHim0Lk8UVm+DNfqJGKImpYY06pW24UaN5CLRVkMSe+G0sOMTkfaDbajlwUjrc4Hm4nlRo8C6q/tQKu2Iti5B07g6D7lYtkdvfHYjrBsUXbOYKveotgW4TsayYR9kEVXZMisM79fFW05ZjVm/WNvTE= 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 AS8PR04MB7592.eurprd04.prod.outlook.com (2603:10a6:20b:23f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Mon, 16 Oct 2023 15:32:55 +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.6886.034; Mon, 16 Oct 2023 15:32:55 +0000 From: Frank Li To: miquel.raynal@bootlin.com, conor.culhane@silvaco.com, alexandre.belloni@bootlin.com, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH 4/6] i3c: master: svc: fix check wrong status register in irq handler Date: Mon, 16 Oct 2023 11:32:30 -0400 Message-Id: <20231016153232.2851095-5-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231016153232.2851095-1-Frank.Li@nxp.com> References: <20231016153232.2851095-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0P220CA0029.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:41b::13) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS8PR04MB7592:EE_ X-MS-Office365-Filtering-Correlation-Id: 958d9ac9-255c-4b13-75bb-08dbce5d2ab0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AklonxF0IOuaSK2EjHqFsyVkmMVH8hR0oPnavOguDnuEPcqXborvhO+eyJiu0p9JOxfs+0vT2wcBNSbQpo6LTkGGHPQxg58SIE7BErt4Qdy6GpJScW4bji/zJotVhQ8hsM/yhlpGClF5f8nHX3w+nFLV4P+vRupDxH2tTGZbnlfWMpq5jGGBpkDQMDcqGqwn3RdcQmoO6AJ6lVr0d1QKln5WITxNMOxHeLdCrEuvrP1xYg63r6HR+0Q4UpCVfcNIOL/Y3BklMv3CS4lAoWznlrP+l0Zz7AsKvE4DzK/JPJ56kGB6ZnnzDuRKjS+rf+m/fr3r6q9L9xdxOC+w+HsWD2zX9kCnFfhE8ENTAX26Eup67UTZo9N952Sk769fW0CBR6slQ8hfxPuXI5/39hljd4Y39FtxFGA1XeufEYpCkDgAON4NocaTZFWsYpTiedRGUroigBhtxXdiyGLigcgZ8Q/76SqbKw+dbCYvuUmnG234L28dv2ggryd5hpbb5Cf8uK+kYJeXr1yaOi+YNE2HTMD2vRbrcUBNYFfDSdKGZyn+q+Yk502ubKtgI4xPUH99BWfW7CBIuHVkeDqJJ2ajq8J/4nT+Js0Gd+lOuzaS0PM= 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)(346002)(136003)(376002)(366004)(39860400002)(396003)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(6486002)(38350700005)(36756003)(38100700002)(83380400001)(6666004)(6512007)(26005)(6506007)(316002)(66946007)(66556008)(66476007)(478600001)(1076003)(2616005)(52116002)(2906002)(41300700001)(4744005)(86362001)(5660300002)(8936002)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lL9nJCaNBMiAiZmDrLSExmgDbVk5kNZIGKh+DReo98rM3GhTegQ2pxcll6UlwtcKVmpEr8aq2muDMSzl1uPdrYLIsKiyQ20J21gduummISRSAuW4WS0FamTs8J+xE8s3r5q15F0WnbylMctO8CVbmY8+2o5CH0iyOD5FIgtdQg/1KlWpzuCpGdrqgMPK5EStsu2KUOdpawwBQha5MmQ8taEdYBA0ijcAJGJQfgVnLH6zaYn3QScVbfRSQp+IKagRidRktf9KG94crRikgqOQFe4Fh8xKUMmMERfJpG5AqhmB0lEJfhB/vZXtxhj03jWt/y42lb3bUhB77HhWFDl1AmCF6tCvfONCahUVJE0AL/19Sw5UYJLzO3ouMDVaVLL7SaNbm/2t4SEhA8pAsf2zp/oQFQmi9evQ5UQOYZfKDGnVp2Wb9GRe2lamd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ufCTkm+ZmGsvLvjMX3RTi9rGdmQfBjJ6UyIxK0ieNnETYUBVS0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 958d9ac9-255c-4b13-75bb-08dbce5d2ab0 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2023 15:32:54.9788 (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: 7BOtF7WycGyecc2Dfcew75vgAOWUtH/EnHsxEo0uhrCqGi4+kSv/Ye/59Sz5srvnI0PNtTVm8VMPCRmumKbPTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7592 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:33:10 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779926713429900350 X-GMAIL-MSGID: 1779926713429900350 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 Signed-off-by: Frank Li 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 c252446b2bc5..5ab68d6e439d 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -475,7 +475,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;