Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp491249lqg; Fri, 1 Mar 2024 11:09:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXeuwsCuP/aCqaIqYzDrqmpGIcf9T5ZtTyZoC+CORSQxzakg12QB087zTXkCAYbAupOMoj3FjtlruZKeqOHKsRs2a+dyrZaUu1OVBalrA== X-Google-Smtp-Source: AGHT+IGjN06QDtVxGqFIxvvTG0GqTpzRZw7ML6fnl9nBIPPL5mcBBItmulQHsxTVBng86+J9we1L X-Received: by 2002:a17:90a:5385:b0:29a:ee6f:58cc with SMTP id y5-20020a17090a538500b0029aee6f58ccmr3630857pjh.6.1709320184061; Fri, 01 Mar 2024 11:09:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709320184; cv=pass; d=google.com; s=arc-20160816; b=VdBxRgE9267+9N18gkRE5EQFsIc0SYbuXMAfe140+g6LSdXRCH50+WNW7fGLGn+Xj+ Ry9PHzNLykzOl+4WDVB0+DZKyLZYNqEZtIHAtMeyH/s+wwdKuZbahGxwj7YZjFwsYhG4 KtIhMYNmRniBiu6mS+PPWxwVWJWufewQruRN4VHZ9M4DeJy1exkqWNrgAzo5caoBar6T g1d7K2U5AHPv4IgI5ESh61B3SAl5pXYVyUh3gzbjQL1syi1Nx6ZLVEQ/DuzdjjAbAjh1 /rDD1wxVAHPbcaXvm2Rcd14CR/FLuXBxyfLqZvCS8njzFewdpezlEGeJBxzqXzlKR88d wlCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=j4tv2cEw7eFnQJvxv1S0JA0FCvu5V52bWrAzO7aw/yw=; fh=oCefQMz3mQeMd61E2sIeTbPnctyGipA5Us8aEpxip0s=; b=qBLUw4jq3z5CjGvKui+2vutb7QlyTTXYBhfXOEzRA6yNQggnhs5HOP1DpHR0rsIowS ergW/H0P7ycf2B2vt6Otj5/tUpmjSE9SkFAz2KWCYW+K8+7rDPdP7lDQ7dmF05MLPfg1 DThk+Bv4FwaYDa0NNhGde4WFh2/lZYQnLOfynRthKwoYJgUE53up/Tf7roMKqDoy7c9V ZFJXN+CaqO5u2oEY14Z+afng8P4czLsFxEBVx5sOXOLK16SsCvYaKL+z84DwWeuNYDEl WL3GmqXKQsIylQI6BfR1/TKvDshdC37hcJuRjpiY1UPojFUVRlGCCauUjgToQ0X/pfhh PQGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VNPV1sby; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88995-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88995-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z33-20020a17090a6d2400b0029a49075b90si6133373pjj.13.2024.03.01.11.09.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 11:09:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88995-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VNPV1sby; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88995-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88995-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 891772877E4 for ; Fri, 1 Mar 2024 19:09:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FCC63A1A7; Fri, 1 Mar 2024 19:09:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VNPV1sby" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 256E8848E; Fri, 1 Mar 2024 19:09:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709320174; cv=none; b=apMJC5OsD68+icEX0VuBZibGQL8hzwOnKHgDVdQ/TiVfZG0X9TeddgRzgszXsNj3WB72em3J32WgWrx9nXIHh/1vIMZe6BWvd3BYJYYCVX1r9URGUWdA8he3aoHJVvksIGxVjV1/Lm2gfhD8pf9MQf91/Qev5JIYxF3x8u/IPvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709320174; c=relaxed/simple; bh=baHSsvEGjsVt+7v/liOi4Y7CvASDhD35gdGFuKH30K0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=Lrufhd67QF2S4JKk3pnui4FqxOQ6SuC4sH+iwpmm0UBsGNMDdWNYPBHzKIVCci1TG81dfe5nv8vbHBEsRpQk4WQwImzHQByYJTxemFey6gnBp5hoLsKJ5NLAr0R5jhELNeGrzr03VTs1r1bk3TTrmzh4bngE3q4RvX24XsayOXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VNPV1sby; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4757FC433C7; Fri, 1 Mar 2024 19:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709320173; bh=baHSsvEGjsVt+7v/liOi4Y7CvASDhD35gdGFuKH30K0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=VNPV1sbyzb+ixQL1A9VSdpxDFMaC+8Xv3GJsfotzFBOC/p5jdgyYIkHNomT2PmQqT 6IgpMsQTIoSKD/PBZdBwmYn4TlP/Q4ivCd/llN8QGG40huQDMEZ6Mi7RotZdh1Lbom Ix1ANFbLTQ43PG7M8aC9prTFKg5XR0/zNyxU8gkKw194cpektuFP4t5oYiefKRGqaH M9tNsRpE5zrbjIt1pu94bq5Fm3mSnu5HP8soVK4mTz608m81/NXC7o9I0z9qS5sk5U eyLCycUwMMwk8WRLjiXx1oRbZWgnnTmchPJXq9dLkXoUgsUACq4HmZh3H5jHyDC2JC lZlFSM6rIZn/w== Date: Fri, 1 Mar 2024 13:09:31 -0600 From: Bjorn Helgaas To: Frank Li 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: <20240301190931.GA403500@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240205173335.1120469-4-Frank.Li@nxp.com> [+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". Bjorn