From patchwork Wed Oct 18 15:59:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13427310 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 C0EF7CDB483 for ; Wed, 18 Oct 2023 15:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=RBF6h1kLS6YMocMcwArdaf54XAl2cE+mWHkFsIz3ycs=; b=wyGrHRAhYUhLXH Fdfw+oi9YWXjUai3Xb1Ta1FNB+0bQ6W5R3xm15/61MTMxKeuEI4ng6NLD6DeaFq0UHmkn62xREX1H 5tHwqiQV/RObKEsm20gAfOBLIOL9K2p4tPlbkDn9ackX/lJMsls84Rq5Njxde0QcIVeG14aaY6DVU 584wtatgbf8xzeZaGMctYRu1PFoWAlvaS16U/KIrpXbWliqn+Qw8iWtzRkT9K59qdPddUstdB6TkK 1baJ77jBsGNCnnbPyOIP37BAtXCq4SMayBPnwftZ/MPjUdWhT+mibeIwsKUyPp4pUKpTpvrbbOuUZ vdO3x/LjzRX/7F1AKjFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qt8xd-00F7pE-19; Wed, 18 Oct 2023 15:59:53 +0000 Received: from mail-vi1eur04on060c.outbound.protection.outlook.com ([2a01:111:f400:fe0e::60c] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qt8xa-00F7oP-2v for linux-i3c@lists.infradead.org; Wed, 18 Oct 2023 15:59:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BBIxLMjS6juDiDwqMNG4163QzuLgz6MaJ1X1M9F7UspP76FQejTLYSHn4enVz77pTzE25mB6VoQRYuKB+MfctHv04kmgIlsY60C6MLzgaX7YN05ikQyuVwtpSDHtVT7r8F81mw6ScywcKunnLKZGyqdc4ZSQPtlUYVcTZ+bixuKsKHuOmP/BoY2nX3u9qhzfjC40Yd3oVgFteG7KWEOWh7LNCWJVgdqKV3eWpuuggsSmu2TDQYJVCldu660xuPoljcPP5bKtTETDodoKx/wCrmLJAGtE2EZHb/vbVguhuiTWz2xEZ3B1Nf2l3HX8ZWz0TMChuTia/MeNN8PUkZ6EGQ== 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=gn2I1Ac2i9h01JOuAJ9cuH/paKtcsCnttLjp96r4TZM=; b=gDoTk3oOzTKF6KM4us3KBmOiHRJCxuJ0t0bGQSn042v9B0zGtC0L+0hcP49b/RFfWNgySZWyxZnb47GZQWT0B32EllFwrbSHeZuZ/aw9oJzrADbPif7Vl6KddtXBizMz3Zst1FqBpXRkSg1nXgOQJeVt8UAbbLNLDHlFnfPFjkTzjwgEtm5fy9GlrMq9SVTtOm7912YHHXUf7zXZXhm37FF+D0rvHFDUegUvP/jnfwq4oZIRzp8HTDx3Os2YSTjB2AhYAJNFc/yOwqMkL3s0AG3Y0JtvC2Vf14Ln1CvNfVWRipGsUW22YuZ/aB+j5xxzvYnwk9mD1BkK5SK2cwQuKA== 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=gn2I1Ac2i9h01JOuAJ9cuH/paKtcsCnttLjp96r4TZM=; b=VseUyNErH2+Yj/Oq32yl0Sf5IuBkx4tIwoCb68GdNQdXZ+aprThTeQecPhbC1yvmGlLlifYugcwnatRlOsHoZ6zKad8WJTe+QfDwe9V07mHNzU+goNdCA0smColiwne3EiiPyU3WeHSIZHMNzfEh9YLpYnq0wY2TUIV2QGzZcmM= 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 PA4PR04MB7694.eurprd04.prod.outlook.com (2603:10a6:102:e7::18) 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:42 +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:42 +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 0/6] i3c: master: svc: collection of bugs fixes Date: Wed, 18 Oct 2023 11:59:20 -0400 Message-Id: <20231018155926.3305476-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 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_|PA4PR04MB7694:EE_ X-MS-Office365-Filtering-Correlation-Id: 9bd8d4e6-9209-46d5-943f-08dbcff33d93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cTb2s6pT9D4aIasjS4YQSaU1vMBGHur3pt+OHpWVW3fGcgljTaAUlVs0XwlKPFxvFakr2HdtNEK2eBD3jVrv3VChLjIxm0ErUE0lxbIoODXxM4ltE1nPHR47/Mj63KmCbaQ8+TbJCX1Po3sYy0HUtZomF+VAUD2+RinRVfyK+w7ikuXnou+duza6+Y0aW7J3Jwjlv24rzRKmtzqU0teQmf3oCWuA8ozwSp0m7+JC4mONH1J4xUeHkFW2eJhUA/+TzwUSCikaZMKhl4cZJZA9vjFbWVjTW0Qj0ntlA30YEu+cC+w7rVNAub36FVJn7HYQBHv30HSmhuyH7ERKP8aER9cCHxX8JfP8H2ugdRl+jINqFw58CvYTZyXqaC+blFpuIYXIJrNjSmWRFII2bzvw71KQdeFS7TviYFwJy31eWR03M6N6qnZZ1aMgaNomRlnT/4Hi0uOPrJs+VYVBcwlCY8LnjMDay4MAEUjSQ3QVOZgY7HTgbZwvr8vYDoe4CtccSej9hI8fMdEJlvFDI5hTCYTUheohzTwYxE7R6Bhig5dayTUyVmfS1goR1eM5vz8DCEk460cCWKDorvDqn28xAzrcRenxR/JzwgAZX2WbfzTVJ/xqiS9hfg7C4sWxeERE 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)(376002)(136003)(366004)(346002)(396003)(39860400002)(230922051799003)(1800799009)(64100799003)(451199024)(186009)(66556008)(66476007)(66946007)(6916009)(316002)(6486002)(478600001)(6666004)(2906002)(38350700005)(36756003)(86362001)(5660300002)(4744005)(8676002)(8936002)(4326008)(41300700001)(26005)(1076003)(2616005)(83380400001)(38100700002)(6512007)(52116002)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?7ZwkA375na5/WJiMotvytOTSzSjX?= =?utf-8?q?dfeBk5AYH9h3rYbNtxiiOmPvye9ieD7kOhMRR+P9ovyBi+vK50g6asrFss7YJoeaF?= =?utf-8?q?YFYk4iA9hAGcs8gH89kg0exGR1cOiZ5mk1goQ9ZThhet+em97qqSgPJ2dvhvd1UJF?= =?utf-8?q?1H2VYJUHLZetdY23qfwiNaBfHHr45P63YD9HsisxW7eaeiQAKeKgia/gV447ZUBM6?= =?utf-8?q?MhKM36lOILVAgwYIpCiuwGddQ0wanKP0YhzqxVhwTJ5XhBOV2hMivvqEOB63jPCfG?= =?utf-8?q?aiamB7NGjhE2lRFoYE3GHgT5A3OogCzcoU4tbga7EaPYigctHqpQmHQPV8qN5ExwE?= =?utf-8?q?MeZxUadmbf+GDF4TtJSa3wgvM7fnG0GprYQcgAkcIt1uYVPvDd54Uur2Wh+hpiypG?= =?utf-8?q?2jXJPDxrD/n/i1jbQw53vJJFU/2CKMfXF7nONFDbOyolBUAkKzKaWNFl1urIjx6/5?= =?utf-8?q?lbjlM8wWyvHciH44dqDCzwHLw+y502bwnDR1ku+xyfYmn/qhW72IDbFkiA5IlOJHn?= =?utf-8?q?J+1lln70WWJj1L/D/+Exs0aa+VYlRMiaGEXUthchnfBssojrTbiGyZ6wgig8pb0ZN?= =?utf-8?q?WQWcfBUj8y0G3KoJol0TNPP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tOXG7XL4/24XWWK0ObsMiQEaX3LqhsNC?= =?utf-8?q?5Kasadhm/Y8O?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9bd8d4e6-9209-46d5-943f-08dbcff33d93 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:42.3045 (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: cTsQj+D4nuPhRAMrXIu+jJgK3wbH1WEBHVfFY9H7MuqD16zc0Wd8YfCHkScagp5Z67X+1r2qI1+73bA8E5pzgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7694 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231018_085950_949370_4BE0ABC5 X-CRM114-Status: UNSURE ( 5.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-i3c@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-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org Each patch is indepedents. See commit message for detail. Change from v1 to v2. See each patch notes Frank Li (6): 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 i3c: master: svc: fix random hot join failure since timeout error drivers/i3c/master/svc-i3c-master.c | 51 ++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-)