Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1842598pxb; Mon, 8 Mar 2021 07:39:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOeQxXB5AAjppttcDhDTukSTCaqqXDoj/BzNtliaHlmu4hARD3QWM9PIDK00osrt63nAuB X-Received: by 2002:a17:906:706:: with SMTP id y6mr15565144ejb.274.1615217977227; Mon, 08 Mar 2021 07:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615217977; cv=none; d=google.com; s=arc-20160816; b=SchRF1TiFB+tjgXCJszMYv93jnnCFUcQCehEjeRpif7573JSShUsSiylL8ATNJUzST Y4MYKzLMaaJ8OYdyG1ticdLZhVExYkXJjdEDWG53C077IA6YsitpnSmrmwu+rCALeSZ7 /F9OYzSE82TozrPUxL7XePyGwPQt0IQFvuhDcXT+gCDR7YJOzk0oEjzdVBaWAOezr6+0 6SJbr/twNqTCIyCyyHbOzZp27Rpvw/U5F6fzjrYQAtoPkd1MKypuzYj2h22snJIZXg7z K1B+o5WK/sUxPc/Duml6Fc6cOmfptl7wjjc9PXKEfMH4YMt3KYWYiCPHQGscqGNqG4Vk uAUA== 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 :ironport-sdr:ironport-sdr; bh=cqzhhPkDI3+OLUMQ+VE3B3x4dDu7cdF19HF/kXgs0O4=; b=yV/R7SrrwF8TNbl7l+nUpY/gmDtgNbXxXuGJ+x8cNJuGbbn0sjTqeCFz4nmPxoPJjL gWXr+zGZGouf9kmolpuvDO9lL9Qg2AJtBUDwC4UzvMRkoWYUDnl3ndmwpNgnHO7v9IKq 3Rj99ykyRJY08Q8YDaW0OnsjjX3Km36kEDfWieOrCG5ra6mUxhLgQhoFzGjvhJsGtiUN pgKWpkkbV8pOGgOg7vnGKFCirY6SgfpWiv+kn44ksHaGbjQRWdyH8cPMAW6PsKSpWfLy PlQvU5CIn3PWzuYRqnXJ9Pl3dp9GKhW9wmHzsERAdEHHIUJBRNboIG/fJ6p6ztitL3uW jADg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si6631215ejq.118.2021.03.08.07.39.13; Mon, 08 Mar 2021 07:39:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbhCHPgN (ORCPT + 99 others); Mon, 8 Mar 2021 10:36:13 -0500 Received: from mga11.intel.com ([192.55.52.93]:46195 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbhCHPgI (ORCPT ); Mon, 8 Mar 2021 10:36:08 -0500 IronPort-SDR: T/jzm5ekm7G7kb3w/vWln+K79bRWAuJ9dLiTl9RDAZm7JHywFwQjbAiU6A4neujWWMWBGG7xW9 l9Cme0P2TW+A== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="184687237" X-IronPort-AV: E=Sophos;i="5.81,232,1610438400"; d="scan'208";a="184687237" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 07:36:04 -0800 IronPort-SDR: H+LKcMc4tq8UM/ho9ms7idR2V26uKk6ASKgTiCHCT7PAcnMYF6Rv7fcI62aO0obnCvQ+u0HbvE f4bkWLH/JMzQ== X-IronPort-AV: E=Sophos;i="5.81,232,1610438400"; d="scan'208";a="508960716" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 07:36:01 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lJHvL-00Aqdb-DP; Mon, 08 Mar 2021 17:35:59 +0200 Date: Mon, 8 Mar 2021 17:35:59 +0200 From: Andy Shevchenko To: Maximilian Luz Cc: Mika Westerberg , Linus Walleij , Daniel Scally , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "pinctrl: intel: Split intel_pinctrl_add_padgroups() for better maintenance" Message-ID: References: <20210308152505.3762055-1-luzmaximilian@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210308152505.3762055-1-luzmaximilian@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 04:25:05PM +0100, Maximilian Luz wrote: > Following commit 036e126c72eb ("pinctrl: intel: Split > intel_pinctrl_add_padgroups() for better maintenance"), > gpiochip_get_desc() is broken on some Kaby Lake R devices (specifically > a Microsoft Surface Book 2), returning -EINVAL for GPIOs that in reality > should be there (they are defined in ACPI and have been accessible > previously). Due to this, gpiod_get() fails with -ENOENT. > > Reverting this commit fixes that issue and the GPIOs in question are > accessible again. I would like to have more information. Can you enable PINCTRL and GPIO debug options in the kernel, and show dmesg output (when kernel command line has 'ignore_loglevel' option) for both working and non-working cases? Also if it's possible to have DSDT.dsl of the device in question along with output of `grep -H 15 /sys/bus/acpi/devices/*/status`. > There is probably a better option than straight up reverting this, so > consider this more of a bug-report. Indeed. -- With Best Regards, Andy Shevchenko