Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp976366pxb; Fri, 15 Apr 2022 17:10:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+4Tog32YyaF2EknKK+M4dSFpZQByvuPSlXd9XdSXtAr7kWt6JfgIiwZu8FvJKKxyislep X-Received: by 2002:aa7:8d47:0:b0:4f6:a7f9:1ead with SMTP id s7-20020aa78d47000000b004f6a7f91eadmr1314625pfe.42.1650067827244; Fri, 15 Apr 2022 17:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650067827; cv=none; d=google.com; s=arc-20160816; b=VdFA5VHODtnR05o//9ANiDZ45IhURccRt1OyVbPJ104kNgt4f6QUjFFznR2+rdauGz S15uCJ+i1DYi+1IGC4jgd4rZjKekBSLqFvPBQ1XP6DdsVifiZvSIuRtuo6abf6DlSJbv mt5TPD4n3xeLHyyAPJ6JGnpPpuo0nqzoZzongOv/iOOLGTu9/ELpR6LzU9R2XM4U66A2 nOcy8+ksqKun+6ZdkrPdD0Ka0+WdWra4vLdFexXwM0zhOk0FRIvxli6/qJXrGzz2XU5H vx6j7uKzXcLOMuVlkPinPckKjt0GQQOlXv9PkXzAF44QkiVTjHxMij/k/LvUuiKejiib vBug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hqQz6Sy8iPcNgo0agYhGYSlGZpSsIcSuZz/K4M5uzaQ=; b=Q9iqc9BG2BZfnNcZzTcJudTPLOW7hHa0FpXsL6Y6boZazT61VkX3LdwYlfv2mjZMFM 1KMv0mO+btu8VxqoAlCcNNc13EPI1kFlk6Cy23j4h+S+GDBxW/Y+bcD1vBNmsOQGOvYx Tzh6ak4ObQC3Ags1Iijur5CAk4E/4dhBen/CFjCxUOL9BKxc/6P8usNw04hUfo8GYo6+ zPp3hMyhpJeQmCvY05KI7O9gw4d/LL9AiOA7QogLt9gDJEyd4TKW/fjcDQE6ZPgxMeMD 2RtGKii7F9+4pU3AoMOG5KcoPxewLTcxhBOmP5+iv0n7yF2cyBF5kJEqXDKtafuzGxBk DB+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UiZS2R5P; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s14-20020a056a0008ce00b005058961217asi3024141pfu.216.2022.04.15.17.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:10:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UiZS2R5P; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D85F2FE7B; Fri, 15 Apr 2022 17:10:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244614AbiDNSbK (ORCPT + 99 others); Thu, 14 Apr 2022 14:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232933AbiDNSbJ (ORCPT ); Thu, 14 Apr 2022 14:31:09 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40223EBBBC; Thu, 14 Apr 2022 11:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649960923; x=1681496923; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ms5h4jAz7I7FYnpzjU8QQ1aLktOyBK/CNSFMTkKzozo=; b=UiZS2R5PXEjNByYd6e4ZtIqd8EAKYPhrnVBfvleAXHnFf90BDr/jjM/N X6wUnMpnxUZ0P5h7VaSVzcdvay0EJQis9UKm3LHZBrhXCVU7TFyIJUBYe MwI6W/V6iy7iRFJZ6/qu1ryQ9xE+9Zp/TzslPNgP7Swgw/8rmXTkeqCgw un//0Obm1ggOE9f+/a2cOvNihlXLlm3K/mE4ezkmZ9IvMtAppzXjLAWAf LFuFt6WQRzd3c3VdhNfyWwOvZawW+nu7I1JNCcLKc2/zGeUXYapaY7voF mYhBA+4VfDX7PiKnZn5kkXx/V4Gl1njdfuUxgNUM1ncDt9oKDu4sG13Ob Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10317"; a="323447285" X-IronPort-AV: E=Sophos;i="5.90,260,1643702400"; d="scan'208";a="323447285" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2022 11:28:42 -0700 X-IronPort-AV: E=Sophos;i="5.90,260,1643702400"; d="scan'208";a="527016674" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2022 11:28:34 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nf4Ck-002Rse-LK; Thu, 14 Apr 2022 21:28:30 +0300 Date: Thu, 14 Apr 2022 21:28:30 +0300 From: Andy Shevchenko To: Martin Blumenstingl Cc: Marek Szyprowski , Qianggui Song , Geert Uytterhoeven , Krzysztof Kozlowski , Marc Zyngier , Fabien Dessenne , Linus Walleij , "open list:GPIO SUBSYSTEM" , linux-arm Mailing List , linux-amlogic , Linux Kernel Mailing List , OpenBMC Maillist , Linux-Renesas , Linux Samsung SOC , linux-stm32@st-md-mailman.stormreply.com, Neil Armstrong , Kevin Hilman , Jerome Brunet , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Tomasz Figa , Sylwester Nawrocki , Alim Akhtar , Maxime Coquelin , Alexandre Torgue , Bartosz Golaszewski , Philipp Zabel Subject: Re: [PATCH v4 11/13] pinctrl: meson: Replace custom code by gpiochip_node_count() call Message-ID: References: <20220401103604.8705-1-andriy.shevchenko@linux.intel.com> <20220401103604.8705-12-andriy.shevchenko@linux.intel.com> <3a24ef01-3231-1bee-7429-dce5680c5682@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 14, 2022 at 07:06:21PM +0300, Andy Shevchenko wrote: > On Thu, Apr 14, 2022 at 6:32 PM Martin Blumenstingl > wrote: > > On Thu, Apr 14, 2022 at 3:51 PM Andy Shevchenko > > wrote: > > [...] > > > > This patch landed in linux next-20220413 as commit 88834c75cae5 > > > > ("pinctrl: meson: Replace custom code by gpiochip_node_count() call"). > > > > Unfortunately it breaks booting of all my Amlogic-based test boards > > > > (Odroid C4, N2, Khadas VIM3, VIM3l). MMC driver is no longer probed and > > > > boards are unable to mount rootfs. Reverting this patch on top of > > > > linux-next fixes the issue. > > > > > > Thank you for letting me know, I'll withdraw it and investigate. > > If needed I can investigate further later today/tomorrow. I think the > > problem is that our node name doesn't follow the .dts recommendation. > > > > For GXL (arch/arm64/boot/dts/amlogic/meson-gxl.dtsi) the GPIO > > controller nodes are for example: > > gpio: bank@4b0 { > > ... > > } > > and > > gpio_ao: bank@14 { > > ... > > } > > > > See also: > > $ git grep -C6 gpio-controller arch/arm64/boot/dts/amlogic/*.dtsi > > > > Marek did not state which error he's getting but I suspect it fails > > with "no gpio node found". > > Would be interesting to know that, yeah. > > The subtle difference between the patched and unpatched version is > that the former uses only available nodes, it means that node is not > available by some reason and then the error would be the one you > guessed. Looking into the difference between iterating via available nodes I have found nothing suspicious. Your DTSes do not have status property, so it assumes the node is available. I'm quite puzzled what's going on there. Because I can't see what the logical difference the patch brought in. P.S. In any case it's withdrawn now and shouldn't appear in the next Linux Next. But I would really appreciate more input on this. -- With Best Regards, Andy Shevchenko