From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6397AC4167B for ; Fri, 8 Dec 2023 11:49:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573634AbjLHLtX convert rfc822-to-8bit (ORCPT ); Fri, 8 Dec 2023 06:49:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232873AbjLHLtW (ORCPT ); Fri, 8 Dec 2023 06:49:22 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B9B61723 for ; Fri, 8 Dec 2023 03:49:28 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rBZLw-0005Wy-0d; Fri, 08 Dec 2023 12:49:08 +0100 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rBZLt-00EPDB-Se; Fri, 08 Dec 2023 12:49:05 +0100 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1rBZLt-0006SD-2c; Fri, 08 Dec 2023 12:49:05 +0100 Message-ID: <95ef7a9fa76bf3d6fd17c9fbf00d7d561883765c.camel@pengutronix.de> Subject: Re: [PATCH 3/9] PCI: imx6: Simplify reset handling by using by using *_FLAG_HAS_*_RESET From: Philipp Zabel To: Frank Li Cc: imx@lists.linux.dev, Richard Zhu , Lucas Stach , Lorenzo Pieralisi , Krzysztof =?UTF-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , "open list:PCI DRIVER FOR IMX6" , "moderated list:PCI DRIVER FOR IMX6" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Date: Fri, 08 Dec 2023 12:49:05 +0100 In-Reply-To: References: <20231206155903.566194-1-Frank.Li@nxp.com> <20231206155903.566194-4-Frank.Li@nxp.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Do, 2023-12-07 at 12:10 -0500, Frank Li wrote: > On Wed, Dec 06, 2023 at 05:52:23PM +0100, Philipp Zabel wrote: [...] > > I wonder whether we should just defer the check whether apps/pciephy > > resets should be used to the device tree validation, and make this an > > unconditional call to get an optional reset control: > > > > imx6_pcie->apps_reset = devm_reset_control_get_optional_exclusive(dev, "apps"); > > I think double check here is neccesary. No sure if dts file version > binding yaml was exactly matched driver. Sometime user use old version dts. > Double check here will help identify the dts problem. Makes sense to me, Reviewed-by: Philipp Zabel regards Philipp