Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp428991imm; Wed, 26 Sep 2018 00:49:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV63GImIhHmEx5ik3sslvP286te4EuPcfPsN4AWK057w3eD8rq3VgGQfJnLlQbJslYT+0l09o X-Received: by 2002:a62:5d4c:: with SMTP id r73-v6mr5013578pfb.88.1537948186648; Wed, 26 Sep 2018 00:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537948186; cv=none; d=google.com; s=arc-20160816; b=zJfS1TxUTfl5vIdpmDz/yC10w9xqnRm4FMdTfuxVMqNzf8izZlXkqP3nbdkMXutTVk u57NCnDnMF9GsUZS5cpaHp3c8U5ra0QQEEIhRuKtfXK/Kpw2R+impVrSMZrCLx9tCOW3 doynL2w2PxcLqlmPfO/T2FVfzLvTyx/NO/q1wt7jYnMXYU2Nd0G87l+VtxpIqoejXtxR k0Jvigs5heesDEDFEs4P9xTMlKX3zr3Mn59SzaZDQTzmJtBXthL/VNR8PAFc1Dh766xg G02CVIBtZ6cHgpDZ5v2t15mWPqB+Wy+GGDLwwgjAT/hMAwBo3YkamOSqkXXtVUBp3Ekw e+7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jNdBUDs6djpdv1bFIKE/ECUUtAek3oWtyVIY6RKei70=; b=uCJZMMTFf+uYEXR3f2s+sX3efYwfI9rRvdXmUQREHEWVlyET+8Uwb+4i4RAQXVDDs8 Aih42Waa4N2L3WEEfPyTL7FrSbh3IX6YjAxgIi/A9vZ867RpODPEzgjm19e/jrOWbDvq gsJd3PQ8YMolX/BnWCoLEIRirdh7XvoGXfTytvTupI7R21UlYh6CXMNZI1Wmz617KctK 5ewDga0sA78NoQ8xwFGGR6xdm+VcTEn4Keh2EgEjw4COwcn2Q5RNR5qOnz1K1OdjoA4D RdBjz032jZF6hLNnZkKKl/4gKKZ/a6/NiLm5rQiZ1UALTR393db0wTkU1nkm4EHvaWPQ sj0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j62-v6si4491875pfb.348.2018.09.26.00.49.31; Wed, 26 Sep 2018 00:49:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727370AbeIZN7i (ORCPT + 99 others); Wed, 26 Sep 2018 09:59:38 -0400 Received: from mga18.intel.com ([134.134.136.126]:22595 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbeIZN7i (ORCPT ); Wed, 26 Sep 2018 09:59:38 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2018 00:48:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,305,1534834800"; d="scan'208";a="76280579" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by orsmga008.jf.intel.com with SMTP; 26 Sep 2018 00:47:57 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 26 Sep 2018 10:47:56 +0300 Date: Wed, 26 Sep 2018 10:47:56 +0300 From: Mika Westerberg To: Rajat Jain Cc: Andy Shevchenko , Linus Walleij , Dmitry Torokhov , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, Linux Kernel Mailing List , Adrian Hunter , Ulf Hansson , linux-mmc@vger.kernel.org, Rajat Jain Subject: Re: sdhci driver card-detect is broken because gpiolib can't fallback to _CRS? Message-ID: <20180926074756.GD2664@lahna.fi.intel.com> References: 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 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Sep 25, 2018 at 01:54:57PM -0700, Rajat Jain wrote: > * Use con_id=NULL if it is dealing with a legacy BIOS (i.e. no _DSD > properties in the ACPI). > * Use con_id= if it is dealing with a modern BIOS (i.e. > which provides _DSD for the property) Or you can use con_id= everywhere and supply acpi_dev_add_driver_gpios() where needed to cover cases where BIOS does not provide _DSD. See also Documentation/acpi/gpio-properties.txt for more information. In case of SDHCI I think the correct way is to stick using _CRS lookup only because there typically is just one GpioInt() and I have not seen a single BIOS yet where they implement _DSD for this besides yours. If there is not way to change the BIOS implementation then I guess we just need to amend the driver to call acpi_dev_add_driver_gpios().