Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp747420imm; Fri, 28 Sep 2018 06:15:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV62r0oB0vwafIe00D7hrEWCy+2iW8Y9ugDYDiexg5cEmBUEPhqEUNkktKdTuUeNS1T8IgUXP X-Received: by 2002:a62:5f82:: with SMTP id t124-v6mr16706510pfb.223.1538140511876; Fri, 28 Sep 2018 06:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538140511; cv=none; d=google.com; s=arc-20160816; b=DXgPiMHaRtqrNcbAmy1a133KRewSyJ6aIL4lA0rF0XjCah02BEvLwaM4L9/wLqB5ji j3zeEg4JFNFkwF88HWzyu1yllVRitQNnBZ0u9XSHgtKnaBD/JYvvDs2ixLWLQFDTXCmw gPfHF0QrOFYumfyV1FLvTtNX3Ep/WK7WRnXajBL9IuHo9ZNYaJqSGn30VngO/R8bwBcF enJCkggFRIP/bDXnT6wbIgbC+A0WyBCxMY73wgkQgi6LNXiVCCj0Wacq/JPN8EKkdm/S M2GQI+3We48B4YAMIxtn/+d75AQ+E9z47y4ThOpB1isxx0gSv170ObVGSwGoAHvbGmjQ fJkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+xvCAP5NTwbSHjqmkd3Iz1A7oKKr+ZYMVP63d5r08D8=; b=woLuOBu7UllewJe1xHl+1AmikONLDRjkP+f5tMyT7KX7aLRbPm06I+WvgnBACBJF5X hy2GCD1ZIYrvOrDpqv7+VZO7D17jryKg7nv8hL8VXIip8niC32ByI/LhsnzznVIt78yk ylKy4u0LjjxHaQqJraTC40376L9AohT/gxTP0ysZfexY9sRB1B/8hghKjVHWJesbNZTe OqdHkDURvc6bT2cUpWP8fAISkTRq9ZvrlnlaWL2O7et7WqYDoJqS9nWj1IwwEtIbpqiz SYbI2A/gqRba5Ph/k9BfmP8mv1GeTVUbdbYkdm3zLBHIkcA6PAP7t+D3b2wtxes+DSJb BzFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UodrHhur; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si5018675pld.322.2018.09.28.06.14.25; Fri, 28 Sep 2018 06:15:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=UodrHhur; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729093AbeI1Th1 (ORCPT + 99 others); Fri, 28 Sep 2018 15:37:27 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]:38916 "EHLO mail-qt1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729041AbeI1Th1 (ORCPT ); Fri, 28 Sep 2018 15:37:27 -0400 Received: by mail-qt1-f176.google.com with SMTP id c25-v6so6522391qtp.6 for ; Fri, 28 Sep 2018 06:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+xvCAP5NTwbSHjqmkd3Iz1A7oKKr+ZYMVP63d5r08D8=; b=UodrHhurJ/nUZUNFJCeFLbsXxxOeF9oIf/z4gxySACqJzdPUNSFBYZoybqcnr1L1C4 /qvg0P4HGBQAQYtCLPMHUkqxU7oQZHjylaaBsh9aBr+Dg+AXhSsoHBjmsRabO7skdfxQ Pr05rgGTj8Rrw/ckKdyJFmVp+sYT37op8i/CQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+xvCAP5NTwbSHjqmkd3Iz1A7oKKr+ZYMVP63d5r08D8=; b=Z4zsFvw81HFADcSVB0l3JwMY6DsqDN0rqkvIat/iuOH7C2ttFbuW9dGu9lLaF1FpX4 2AFyOR2s+kY8emmLKOZcbnVZLHRQoPfmgSJODJ/fvgaDofFsR4bd5pUwfBrVC8BbJTqj W7i0pFQpmBDwAB7j9JaSDX1TBZYjbeC/0c1yd8NZExySiVyp/jSOvAOhD6C/4J83Lho4 hbXpQ3Tyq69A1/nmBE+fVEkhwsTXQOMy+TyRae45yOokYZ7zUu8G1Z2qfdAMDyE2R82B p8TuqlkyVXFP77oIAlAuBKy1xMotao6z6YNGwMVUq/2k2/1JFnJ/Xb2wUrtB+/ebgahY W0dw== X-Gm-Message-State: ABuFfogPSE0NQ2ubsMw79Il0bwAFz57O7Admv/huQUtBsCo8xxV2iBq+ b3jtdMExbw3PomkcDQvgVEWFN4ScPC2rP6X/xua3uQ== X-Received: by 2002:a0c:c202:: with SMTP id l2-v6mr11751484qvh.209.1538140422952; Fri, 28 Sep 2018 06:13:42 -0700 (PDT) MIME-Version: 1.0 References: <20180926074756.GD2664@lahna.fi.intel.com> In-Reply-To: From: Linus Walleij Date: Fri, 28 Sep 2018 15:13:31 +0200 Message-ID: Subject: Re: sdhci driver card-detect is broken because gpiolib can't fallback to _CRS? To: rajatxjain@gmail.com Cc: Rajat Jain , Andy Shevchenko , Mika Westerberg , Andy Shevchenko , Dmitry Torokhov , "open list:GPIO SUBSYSTEM" , ACPI Devel Maling List , "linux-kernel@vger.kernel.org" , Adrian Hunter , Ulf Hansson , linux-mmc Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 28, 2018 at 2:34 PM Rajat Jain wrote: > > This is not looking good at all. > > > > Andy should we revert the patch or do you have some other > > quick fix in mind we could do? It seems reverting the patch > > could be bad for the mctrl patches IIUC, but this regression > > seems even more serious. > > Sorry, I may have made it sound like more serious than it is. Yes, > what I said is true, but we (Google) does not plan to update those > devices to the latest kernel. That regression will only be seen by any > developers who try to do it on their own. Given the number of core kernel developers using chromebooks and relying on them to be working as expected, these are the users I am most worried about, really. If only 3 users in the world can't read photos from their SD-cards that may sound like a small problem, but if those 3 users are core kernel developers reporting bugs, I as maintainer have a big problem. So not all users are equal, or how should I put it. > Also, the commit I mentioned above was put in long time back, and I > think it is more reasonable to put a fix in the sdhci driver instead. OK cool. > - It seems that 1 SDHCI device may support multiple slots. It was not > clear to me if they could share card detect interrupts, or should have > separate ones? Also, the driver may not really know? So should I add 1 > or two pins using the devm_acpi_dev_add_driver_gpios(). > > - I was unsure what should I set the active_low to. > > Given these concerns, it seemed the easiest fix to me, if we can call > mmc_gpiod_request_cd() twice, once with "cd" and then with NULL as a > fallback. That sounds like a resonable fix to me. Yours, Linus Walleij