Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1707529lqg; Mon, 4 Mar 2024 00:50:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWB10iGG19/eTlVAhZ91WTzm7xrzPhUte3U/EoxAPFN5Gs6XYZWmAGJn1BmxWImJB7oUAlgGbMVs/wvks82AlNe81KfjJ7Qv0sEWP75BQ== X-Google-Smtp-Source: AGHT+IGdADlQFrGhVAZIeN0T9l1KISy7QpcFqU446hUIFTt5pe81KVf7HGGA8pL9f45hfkqU8ur3 X-Received: by 2002:a17:907:20b9:b0:a3e:7dbe:298b with SMTP id pw25-20020a17090720b900b00a3e7dbe298bmr5074672ejb.24.1709542221624; Mon, 04 Mar 2024 00:50:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709542221; cv=pass; d=google.com; s=arc-20160816; b=QfZb9hK7OJk8PAWuLQQFLmlQw3qi0ypdAJj3KWnwCrWBsxXNhf6tawBGgFWPoeIR8b d1Q6f5q8XG4t1b9+RsmKx9BmcvOKSk8XB6y4v66IQcCxS0QDSm5izoAFmVhHRqhF7ofU M1u5a00kN+XWt9fBHBkeOGE7m4nCRQkEmvgCvmgzNXGn3AvSuKZkG6ksDq3upurX4K14 LuaFBUQxb4FZCuRGpI7+DgiUWSqVMVU4igrmYiz6jct4Y1YN0Z/YZz88MXdThQ50e6XB qh3g5rk+KWVlLlskRwnjJQtXhF+2dYa4FfoCSLLyEBT0PHTe6IJvx28vhH4aLCubgh1w 3K1A== 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:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8IehB76z/20zCRhLCSHXBaJqjNcC1VZKG8GtwjkkPUo=; fh=uad4+PVxCPccLTRPFc371CedjAHJElVAgbeIDT8HDh8=; b=gyqepf11U7rpPf8drCALo2hi+yjB0UYF/k53SzLvj5w4xBsPFEb4utbNNME5jsqPIy xnRbJE+pNAWECvH/wfgZUNJ9PBfldK5U40XrNAVkH0osXA1PLzVSV8KnX0jGqKKsBThV Y6fqsm6vJJm4YKo8iq648QoxEujdzFDfEwKoyZRVzBhdmpyQOi6n/ur+HRq8trHdoSxE ppoyXQq9TXPyBOoKOlmaH2hiN6yvFcVxp8TqtNUFdC/jLD13vyhtzG3LbiITMXHQFnma XyUGPIaALPLwfmloIwNfLJ3B6nKth3s7nkUJXqfjX/p5po7s6ZgObv/72KIAQIs+SpIC 77ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXE51NYD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90237-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kv8-20020a17090778c800b00a4557d7e2d1si488405ejc.543.2024.03.04.00.50.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 00:50:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90237-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXE51NYD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90237-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90237-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5D5C91F21361 for ; Mon, 4 Mar 2024 08:50:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 831323D0D0; Mon, 4 Mar 2024 08:44:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GXE51NYD" 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 9E1F11DA5B; Mon, 4 Mar 2024 08:44:17 +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=1709541857; cv=none; b=Z/YOcVD7FlkLgfutSGPiyQaUfkf3BI5BkPihzBd/L/BELEmT0ASHDIjjDYbsKUX+qAxRMaMe+/sIcq3Gbs1/vMe8Q1ytbTbQdAqQZCShz4SoQgEdKhLrzCulX2jzgo/0x1NGbOYCm7EYqrsYhrHofOmVCOi0RuZ9+bSE5t+FQL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541857; c=relaxed/simple; bh=m3btwuB1XUM+0/1Srhrmy8oBrwYrCSMk8C4cHIhZwpI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h8//Pn/8aHczXdhdITMkbuoWyNbn3fJiFBrsNln9Ub4R1wkPgydhVBH0yQidmnROAm7SV3Boq0tDsLbjsr9Azd9mpMBVZIqBeHbORynRXi8OeMH7brpc5hc5VC4qz4Qlipdoh8Zevnr0kPc1wopNIoRkYoWgohR5ARRV+jdM668= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GXE51NYD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E0C3C43399; Mon, 4 Mar 2024 08:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709541857; bh=m3btwuB1XUM+0/1Srhrmy8oBrwYrCSMk8C4cHIhZwpI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GXE51NYDqpQ6Rpt9NCI+I0KTgTxx8Ob9USgAHcXYvtmVdkGqv9AJOiPikODi/j8+J 7JMubxXRMWEnVhoLTktK0+ZSoBnHvSbaG7TShTXMSmNd9wdyeXvcVBKx5E859ICTT4 HBoz1rjslk7YRW72BGTovEg/P++8uW9LfQTYy3vhl5wn0yn/ioLGvJ/fW707WhVa78 m216Hm24/eDT/aA9PiVuIvA2ukGsRri5g7nghmfQOMZv6wHhIPtASbOLZCoWVsjGHV N/uK6O2Dkz6XaukXb+Ik9dnu49PD3loVvBZsOhM/NIJ7CUuAonay1v5ra93D6LBqYR PKHtKW3BB9x3g== Date: Mon, 4 Mar 2024 09:44:09 +0100 From: Lorenzo Pieralisi To: Bjorn Helgaas Cc: Frank Li , 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> 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: <20240301190931.GA403500@bhelgaas> 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 will fix it up. Thanks, Lorenzo