Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp504111lqg; Fri, 1 Mar 2024 11:33:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXfqzAvDWvmLx1KonTHTLwLy6S38VhvfeGgNQnUpNIwPXyxq7sknfHCsBc1gpSQrjh/2bPzTr1WWgr2DcjxDIdKMqIF5+xjtZ3/dYB31g== X-Google-Smtp-Source: AGHT+IEGe7f8iJ4qEKOAYG472Kitk/6q3GJlxwrqSt0M2jFGr7fiYtmFsEFOZp1Y0zA02JEHujGd X-Received: by 2002:aa7:da08:0:b0:566:aba4:7209 with SMTP id r8-20020aa7da08000000b00566aba47209mr2181466eds.13.1709321628742; Fri, 01 Mar 2024 11:33:48 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q12-20020a056402032c00b00564dd8b0d48si1761493edw.638.2024.03.01.11.33.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 11:33:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89030-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=eib7XlaE; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-89030-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89030-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 481B71F22E60 for ; Fri, 1 Mar 2024 19:33:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3139C3B790; Fri, 1 Mar 2024 19:33:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="eib7XlaE" Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2069.outbound.protection.outlook.com [40.107.22.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62A3A7E1; Fri, 1 Mar 2024 19:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.69 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709321618; cv=fail; b=SjuGjCXqoNdGpEtecJKcjGMw01VNpFM8lljmOAjsp8I+70AfPA5pJyqhS56EOXYrl2hr7N5toEpfpkkWUw0M6oX7yTQjjDi0k4iyNfQffF9G8Obab5/jfXfzk+IiD38vXHEeZlyaSq3T3gx87MQZuStTbhdy17UAqalZcE9dDKc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709321618; c=relaxed/simple; bh=D8vo2vWlX9RLHV2L9TsgJLiE4dcjpnAr3LRFtVSbuC8=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=HFxvOHyJMnxh4NOFZ3m+yDuVTKz2Hf5hd2SoFkqWVGJHw8/vWLRxgKP846PrWlPIMD+cuyJlwvI8frSFsrTX9cqNQDMInK/4x7ZcscPrPlDutloLOXWXLDGpygvCCkIoGfi4+MIF/66gQQ2xfJHP3ziDxLkGPyNrcsV6nmU8LO8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=eib7XlaE; arc=fail smtp.client-ip=40.107.22.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LrunkwGyoRSyzZuPgwb2jGUp/GsHPreCt7DnThPaNVPxWlZZS/mPMDfFGIbQGRwOI2hVz07o/6t8MDlunQlTcNO1CjxXappw1fCBEpsG3Bo6fwxBZZ537oS5sWpDDAPFdKBuEis1YlC5Xf4DRXWcVA0lhdaRX7OAtxKxRkrRTECpGKibwZ8fVEvzCk/AxwW5jGWhfSlGeZoqIdZhb9NCNPp2KaZ5E4Jwhg7hChKFwoGLVWfuoUwQ+sUTrHKVleAWG53qJrQJKQaQKgrhXJEfWQb4Swbtc3kPoTFdclLf6z45smC+tFhPBFR65+6Lkk4FPb7O//aAsWLdO1Z8qnPXkw== 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=PK15cUfKPntl1gy1dnTuXS9+GNc2TW3CDtuPtLLqkG8=; b=n4cHjIR2ipIJCN2Y2A5pc4I/yy5YUc0Ty2UIzp4A7R7ObnB4RFx9SywKnxp+WbDUwPy9S9fxnNoJ7YZzJlJiWWDMYDTEN1Sjwgf+Ms3do0E1fjKkWUl4zhd+eQHBffhCukSiSFX8p1jImOrEsE/MCI1M3LPirqzZ++CaLiX/Ob/uFLgZVYDSbbzqx2L4UQXqkUGlAKFETw3x9oU5cC4QR+33oWIEtCy5Wn+Wco5IPFJBM+NNTwUgoE1MFvQp6GGRynkLeCWkxikWUhwBaXoqsFB0qzZxYixbH2pTFf/Ywr4RuDgBFCSiuWwWIGluj2BVRtiyysgDBOLeolJVdyDVaQ== 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=PK15cUfKPntl1gy1dnTuXS9+GNc2TW3CDtuPtLLqkG8=; b=eib7XlaE/PxuS956Jb61iy8lgojw0B9OMsDzXXUevat3GOyAfVr8vYd/nhVCfFHaOKyQyf3FpQmpZ++yDaDeoRPvGWxErnJ5+qBbXGQN9+MwxWNDfP1JmJ7RvUJywpQ8FjhVimKjOOKn8TKqfPWck5uHrlDFLDXUkLyeHk+VYPM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA2PR04MB10213.eurprd04.prod.outlook.com (2603:10a6:102:401::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Fri, 1 Mar 2024 19:33:32 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Fri, 1 Mar 2024 19:33:32 +0000 Date: Fri, 1 Mar 2024 14:33:21 -0500 From: Frank Li To: Bjorn Helgaas Cc: lpieralisi@kernel.org, bhelgaas@google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, hongxing.zhu@nxp.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org, kw@linux.com, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, manivannan.sadhasivam@linaro.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org, Nathan Chancellor Subject: Re: [PATCH v10 03/14] PCI: imx6: Simplify reset handling by using by using *_FLAG_HAS_*_RESET Message-ID: References: <20240205173335.1120469-4-Frank.Li@nxp.com> <20240301190931.GA403500@bhelgaas> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240301190931.GA403500@bhelgaas> X-ClientProxiedBy: BYAPR01CA0026.prod.exchangelabs.com (2603:10b6:a02:80::39) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10213:EE_ X-MS-Office365-Filtering-Correlation-Id: 83341ed4-8c1e-454e-49f0-08dc3a267ac3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LEmL+GRnxTwJRZNNH4uc5LHYA7Iz40d2H26zjmmB+Y3N0UNxhdKkRhqMtKvskL8x/CJ1kAZmjfD2SIgROWhd4SCmulYRvbcTmqV2a2/v6p6n601JhoCdu12nKwA6w+l8vRjBQOEmlq660RvrED87+CbIdJMUUI2JkLBPHw2wVTHVas7GHQqGtufF5bGkkZSO55wQWDn4TJluPG2gnVLh+SV/b5U5j0SJwowoiuuO/Ad5M1gh9aeKQM/Ap07mpyE7N7LmR1H0GSiWWNT3+yUXiQww3myk0C2f6dM2QCAg3P6US4BjtEVzAppZimbz0oWEUVHkRmIZ2wi4TFDjhYBoZWe3qLpCV1wCUh3+Mfs//FcdnAwmLWA26MN7arSRx4c87BCyyKIL4OB+TbsxmC+faiRshfcNZCIMXKY2xXo7J8hv3lbK0N9APqAuCiv2rxYaGL4EYJx9eqtfUkG9K6zrYveL3vjMeD/Gv9E7o2g1x3gBoWR5agATb1nIxENlRcaDxbehvGQ2Y0CSXz/eoXumXxNZUwEeaQvK+L5WCHwbxGlexqeIw33lFYHRVqlcA90nVmxAsrQqPfAzMWvgowd6HP+Bk8UFchRNcpzobcXlw9kDqqN+yRGWCwchnQ74NvYEUax+/ATuHUEuDMk43CmL0BKvXPAXUxOKLQwxoxkbHwY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?+UIyjwFWII4ywRNPthbOCKm4ouuyBOstqqF/ZOpHoaTYzFdeQQ2/a4IXCdWm?= =?us-ascii?Q?yyjMRZ6eNmfdkjmtNkj5lZzD1XQihgfFJ13jm855kaf907jwztHBDLDUY1Sn?= =?us-ascii?Q?AP5Vs5xvFDejavXvbJU53p9GUBMLBVGzrtKkUi1h14Ac6iPC1etm1flTLqEp?= =?us-ascii?Q?Cs7XO4kqtNBoNLEj07CRBFjIWu2WsK+rsOaOSGjc1QXC+KSxh43DukFpIJmz?= =?us-ascii?Q?03RM97a3c2k8y8VZJPeHj5GcU+JeT3Rk/r35C1dBBFYXI8o48Di+inmhLauf?= =?us-ascii?Q?cLhdyMqFa8c/DBARR5kb+SAHSPGiZHlfBQ/ptrirrVgeh4c6wMMES1j4oRW/?= =?us-ascii?Q?al80YvbQ43ZGoaFS4jmFUqQNvaovMjD5BHu3XkRnwxNE+N7Le7aH/nMl0p8v?= =?us-ascii?Q?z3KYMXhxlWEGfZWlJMFD2yLtVYLAjbRrNGP1q2ko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io6f/JzBVsLBLa9WPYxGq2TeTnr6b6nDQM7qikFMLK2?= =?us-ascii?Q?NdCm+Gbe1H05U5duIkdKCBEm1d24yMITSWipvJ3Ny5+rFdchYG9vaMxcXi8Y?= =?us-ascii?Q?sjua0GnUI9G9noES5ws8iblINS9iJ20+rX7DB8uJb4q+vbqWeurOvssF1Vee?= =?us-ascii?Q?Jic7UtfXuMsq2UfWrgxBN6MWdgHrn1XI0iynSVHgajH5GaVMsXaoubwX+QvM?= =?us-ascii?Q?VW9c1Jb1Tf3YycrDOVpjLCo8ayQ411154SQsik63?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 83341ed4-8c1e-454e-49f0-08dc3a267ac3 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2024 19:33:32.3618 (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: fJeL/i26FFDFrjRqjOYlr5M5kq1R8EMY6kgryt+4YYr0xWNI9mgNfIVpHn07f0HLBr+d/siFge80Qd6o7i30aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10213 On Fri, Mar 01, 2024 at 01:09:31PM -0600, Bjorn Helgaas wrote: > [+cc Nathan] > > On Mon, Feb 05, 2024 at 12:33:24PM -0500, Frank Li wrote: > > Refactors the reset handling logic in the imx6 PCI driver by adding > > IMX6_PCIE_FLAG_HAS_*_RESET bitmask define for drvdata::flags. > > > > The drvdata::flags and a bitmask ensures a cleaner and more scalable > > switch-case structure for handling reset. > > > > Reviewed-by: Manivannan Sadhasivam > > Reviewed-by: Philipp Zabel > > Signed-off-by: Frank Li > > Lorenzo, would you mind squashing in Nathan's fix from > https://lore.kernel.org/r/20240301-pci-imx6-fix-clang-implicit-fallthrough-v1-1-db78c7cbb384@kernel.org? > > Also, the subject line has a repeated "by using by using". I think that it is good to squashing it. Frank Li > > Bjorn