From patchwork Wed Oct 18 15:48:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 15552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4886609vqb; Wed, 18 Oct 2023 08:48:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYMju923ycCRwrj7hTBYcjiTRR3cnWoOt4mItxQ/XVNZEjnDKA0+uuIOwOnJ3ZlhYAbhjr X-Received: by 2002:a05:6a00:1d12:b0:6b2:51a0:e1c9 with SMTP id a18-20020a056a001d1200b006b251a0e1c9mr5767945pfx.1.1697644124226; Wed, 18 Oct 2023 08:48:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697644124; cv=pass; d=google.com; s=arc-20160816; b=Jtwu1LC89O1uhwRvmQXz9gWolSVpoKL9Ox94RxlujgeGE7l5fzk/FxKi94NxoD5iAN dB1+b13TKK5W5DOO1uJFnsjZ9aINMur7uPJby7iRlUxvpc1ELs4lLye8y6gDHdy0wpGA 3j8n/Pq6ZBmNbqrIuoKdmaYUTj64kyrXLpLTFX7xbckBA90qrJN3IEu1WNHcf8akc1gX Iy1FJv++HWThO4k81lYCI+gpgH65Z45odoDAXTZOGyyWinvtZoPDg42658D+la9Luqqj hDr44GxZ8WefmJn0LTZSPvOGdBqYjsVjgD9XboF5JF+JnMEx0HMaidQoCInsFNjysjnr wcTg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=iwb1VsNDBbozmsOUcMb3xZ3G29YwvH4CvTUONoNOp+w=; fh=sDe3TG6/b46JEOvF2xh0f1K4oYWCH8cpxTVfh1/w/G8=; b=xfi8TGgoGOJ5suro3FViuyA9Z0XGLfhk++PTiNa3Lt6nPbm34CpE/Urg/Y1fJm0JQi cR4RBJXYZ3rKAWCIvdud+F/khMjuzy0Ut1+NtwZUSki/ZpEDGv3OnRcPE66vLXhnkckh joLwSqDlY6sdbC0G7mB3B+UdRzpLowLyubgZKT8sdRtyt6V/pdhzyMEvpc2ZsYOKMHJm PYgvQiiPMm/qigdKvhDVwlglgbLTeqzfb4c1rDhgZzxndUS/0CmdSyH6n3/kcjcCVHgS ZsNwmdCMKGofqfsUcwjhX5JrenMiBGF+qIeLgPefxvqkSifdC6hb/dcSxr0/rEkmzqUb 4RSg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=g7rO4BhC; 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.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u17-20020a656711000000b0059f0cebd052si2354438pgf.436.2023.10.18.08.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:48:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=g7rO4BhC; 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.32 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 agentk.vger.email (Postfix) with ESMTP id 7542880F8F47; Wed, 18 Oct 2023 08:48:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232057AbjJRPse (ORCPT + 23 others); Wed, 18 Oct 2023 11:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231764AbjJRPsc (ORCPT ); Wed, 18 Oct 2023 11:48:32 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2089.outbound.protection.outlook.com [40.107.6.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C078111 for ; Wed, 18 Oct 2023 08:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hft0OZUzi267r/Y59gfOEaksV7+F5W3Q1Mtg1rNRbuzdtqIpLqPR+TktFe/DqxhMsk9mH8CExstb4ktBqHjyom+/uCqZRidbhS7xv4hIHrwFB+4EgHes8g/Fqxfi/eFXiCgRudPOsMDMXPDcTxPREYPKxxP//OYFNW/JLGUZafc4CkJ727a8W+MLznRLoEDPZDYhgdSgfukc5Z8m5Hv/hEBuRYyoe3Rn9LSfHsfDsZfJq4ouiaqcBzefc7jxcFP8ZiFYJAsBwT1pqv3OGd2o/RDeuLbUdS6nJxSgYxDymYKPIDmFKNs2euGxgR6RfzpUNyx6S70pjnTxVgc8HtKdlA== 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=iwb1VsNDBbozmsOUcMb3xZ3G29YwvH4CvTUONoNOp+w=; b=f905wwBdJEPBFVodch/ZymsptFwSk17aa/USZ271WJt9yoRHM8StqVzHtUqeKwnwFI13fdhCDX0bek7Wf0KgVLQ97+5AxmYW8BafFyb30m7iOg1quBPMi5CZehg2o1NDD3DEtfVMq4USXwCaZ7+pCY2/EbamF0ZTqPKrst3Ps3/CeEgGIZyD3GnVmt7OvQfmq3X5YCzln2LK8d8tGeAN1npiHBIeC/nIY26CorGx7GPEEWWR+fbxl+6yz/q7t2OItKpVOIsjov0KQZo1y5DkyeurIcvY32YJztF9m70TAk5Aai+Y8o2klnIbjFbrCLE1BkcDqcgqGc7+efICfZlBfw== 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=iwb1VsNDBbozmsOUcMb3xZ3G29YwvH4CvTUONoNOp+w=; b=g7rO4BhC6CYUKbsPz/Qy1BIa0cJ8+9J3FGCf0nx95tIX6/2eEAau3qULy9bSXrxEfDurK0GKAQgVPxZQM/i18GomNVRRRIN7d8KMkUmz1K3zV5pLuVWs6dZ178JOCfyoJkOu/LxxLxlQZp+iFiF3CFcBMWkSRqNfH503wg2EtH8= 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 GVXPR04MB9777.eurprd04.prod.outlook.com (2603:10a6:150:115::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Wed, 18 Oct 2023 15:48:27 +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:48:27 +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 0/6] i3c: master: svc: collection of bugs fixes Date: Wed, 18 Oct 2023 11:48:03 -0400 Message-Id: <20231018154809.3304558-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR03CA0087.namprd03.prod.outlook.com (2603:10b6:a03:331::32) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|GVXPR04MB9777:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d20cd03-fc1a-46c6-3d14-08dbcff1aaf5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I0Q+FtdOLGZgi/2QIqQf7ndIAFaaguvX1eEP1SWBOk6QtNN3eTQnMYUSjp+Vfv2SiDEWF6CVU39T2WiZ7pib1kowFKEQd2lg5peWfDx4WV6uM9PobOrszhQ64aklA372PFEALsXbq+MekEo68vIe9qMKjyquo5MGhgIrLLFVWtI0lMWrL6GykCTR6toM6UTnuxgvjsTBLejkTnkqE2fzH7bxy8M4i5Fl2n84gstjGWSs8L6Gt4lhe2fENYuAn/wYKeU/IYE+wAREBjYd40ZsJrWJqQCzm2/gEcBVeozxJ8nEN/SyQuMQgqjhs7Tug+1WA0Eng6aRx/l4sOrEcpxzfYdkeiqPkjlyMuoYMdzwHMNmryd+do77nOjsvejS+DtdmSPaAA+WgMxRPVpQGK5fzucL+/a5Z3uDfDdVPZLM4ENxZztyCoIKn+0nz4uxbPbWwVjyw1Y1yK6W9fkfoeivqb2cYzF7RTuMeMdPvnYZ620ja3M/HbH1VYv7tkSlL18XsTWMyLxAEenLTaz5qRKHgctsIoA2BFVNfWcXr95u5U6zbDNsr2wbotzIUt0LjAlGA5qADmTSzdqZi4a7gfSYm4/v6Q1O0/T1w0qgvC3/6ZbbJOIwtFOMigkyxeIqM1rH 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)(396003)(136003)(346002)(376002)(39860400002)(230922051799003)(64100799003)(186009)(451199024)(1800799009)(38350700005)(52116002)(6666004)(6486002)(6506007)(6512007)(478600001)(66556008)(6916009)(66476007)(316002)(66946007)(36756003)(2616005)(1076003)(83380400001)(26005)(41300700001)(38100700002)(5660300002)(4744005)(8936002)(4326008)(8676002)(2906002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4gUNWBBWWsp7+1oGjEUJrI1FklmY?= =?utf-8?q?bYuEpzoqWbKzilM+2wuUIGN7lCdN0agQLh6IlQlCKH7Y6j1K0qnSIvod87E9YBOk6?= =?utf-8?q?xpfYflTw7G0Fr20v+MZMn/ejQAH56mllDdI/tlqLSECGpa1HpzAGeXgMljVhYnmQ6?= =?utf-8?q?+BLh4oqV6ffomfYczi+MutE124vYlaJNQ3xOiE6JqaAqN3WMS2WiOKbxD0wPurQj8?= =?utf-8?q?dwZoPbU8J2yILyvSXzd+dw/PWZ+aHpIOvxIj1jAcJvwnrpeS6dupJE+njA26t8uS8?= =?utf-8?q?lI96emn6NG+Y/cRpYe+xG996GiXDqUaa5OjuBps59s4dB2HTpXyCxJp1kAJKWmVjf?= =?utf-8?q?e6Dvu9VsI0M8ixE6jIeoQybjweqzX9KESkntcUinMkJVEyacZbBah4/6Hc0G1Cqfv?= =?utf-8?q?Z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utf-8?q?dCwWI3MxdweF0YrheAAT4if5Z0G7ezIageDNCd9nWgEAGdoGr5FrI1dLI2PCtnz0C?= =?utf-8?q?15CmwwUd6erVlK/BTmHVvZ3Nwd8cnu+zupSqW4lQPhHk7/eN23S5c7MEO+/dWufKt?= =?utf-8?q?tLv+mZuCRMO/dIL6CS5yvzkvoa9EQjWKb72Dl/fuN6B5c5eO5dQtfgOT+NSxLKvaP?= =?utf-8?q?2yt+TQ/r+FFz3Ex6G6LvaW0UKRAgGCNyh7gytJLbknCdGLsmi9RGis1T1Rpe6tPc2?= =?utf-8?q?m2yJ/ZOL7Mk4?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d20cd03-fc1a-46c6-3d14-08dbcff1aaf5 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:48:27.3516 (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: SxvUDA1b5uwfpNFKnj24//qfc3oOI9rWQZKaIrnZuNXVNy5p/9w4NSzSPGaJhbeEkvo/Bj4hszHTBXQoF2IeXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9777 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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 08:48:41 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780108885340122737 X-GMAIL-MSGID: 1780108885340122737 Each patch is indepedents. See commit message for detail. Change from v1 to v2. See each patch notes Frank Li (6): master reduce clock i3c: master: svc: fix race condition in ibi work thread i3c: master: svc: fix wrong data return when IBI happen during start frame i3c: master: svc: fix ibi may not return mandatory data byte i3c: master: svc: fix check wrong status register in irq handler i3c: master: svc: fix SDA keep low when polling IBIWON timeout happen drivers/i3c/master/svc-i3c-master.c | 49 +++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 3 deletions(-)