Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4294938ybv; Tue, 25 Feb 2020 17:14:30 -0800 (PST) X-Google-Smtp-Source: APXvYqw/9Y5u2jqychzHnkqSH+QSYus6Xjj6tXRHVmsSyDVAPW3ByhmEPfliczzd0DA2muxxc5B1 X-Received: by 2002:aca:3857:: with SMTP id f84mr1195124oia.150.1582679670727; Tue, 25 Feb 2020 17:14:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582679670; cv=none; d=google.com; s=arc-20160816; b=kXtovMm0PicVhU9v8bSBFCTmEXgQWkr2CMZ86XZzVXcTfiEZHvS7g26v6tiZZHvId8 O0djL2yM/aneGWl4AB4ZbPsAT9P08RHhFfVx9+4FIiQ22uvnl91fNX/OJN/8YSCwnuYz AJrhfUf/w6ThoVl6vLVYrUQMicUPVgp/1dx7uPRsIb70CKnqRgrwBMlRHWPUZ2MwulIo GwNZNzi5vFoK97XbFOC72nf8B4fs6cZtqtBB6UU+48p7QdtAUyVErtvbClpuKBjhEAsn KKtyg9qTsdzs+e539qyEDhvVF9kaJ1Du096LVRyg93m+jIyHu6CoZC2tlvhbcc1dQwnT GS+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=g9IVOOyveIOG/WhiBrdQii/HTAWJ7aaj0Z2qhoJV+kg=; b=mwIlPvdjOP1GS3c87ip2rdsrghn/0oL40DpDvQ5OjOFextcVTznj5ez5x38v4w0Fst GkPkKyhQcVXr0rol3xN4cg5brTp0LelYOzOOBkszatA1B4yfAr4YdKHAxXIrA3NmtmDQ BIFYGxWny14hd9DCop9k2e4pIE26K1yWk/Juoes/zPr07ZLI/lp7//nkQcDo90U8T3rJ 1N7aIQhTXGhdm/hs3ahTzawfG7R8P5FA1JHNmK/dn9uhKCO5p6oNRLrGEFXGxvacoXcH Rx0M3jo0btZT+X16raLZOT7b4td8dUy5650zm3MPPI6mPW5jzIRZgrKlX8cwU5sWl/4E w9Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QOfwGYa5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a124si263863oii.138.2020.02.25.17.14.18; Tue, 25 Feb 2020 17:14:30 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=QOfwGYa5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729727AbgBZBNQ (ORCPT + 99 others); Tue, 25 Feb 2020 20:13:16 -0500 Received: from mail-qv1-f66.google.com ([209.85.219.66]:33120 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729376AbgBZBNP (ORCPT ); Tue, 25 Feb 2020 20:13:15 -0500 Received: by mail-qv1-f66.google.com with SMTP id ek2so601562qvb.0; Tue, 25 Feb 2020 17:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=g9IVOOyveIOG/WhiBrdQii/HTAWJ7aaj0Z2qhoJV+kg=; b=QOfwGYa5MV/yzhdx+dRDusu+NUxWqul4DSDbRfveZbqA44oF8qX5RemktrjpArDn5h N+TrwhG1R3JEKXWSLpRzC9+oVOaNLdfeG140uECoHq/z3r+02U+S4Dq3AEkaXXnlJUMe btwCsi3Wyu9q+0+evx7rkITektujyfpQ6sMTtyltsFoWqxWfPBR8LzExhlaNbRk0RNYF Bg9rhIvVI5b7Y7XiH9OuBIBh2+RudzY7zEb41iizlA8r3zYw+bluytOHr74TtHKzKRWi tql2pPMLJF9Vx/UMyDmtrn294A4UPWlo8iZKHhr/V8DUV+QAWNS8EySQbL6/kasnrMBe B/2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=g9IVOOyveIOG/WhiBrdQii/HTAWJ7aaj0Z2qhoJV+kg=; b=IO9hcIut0CTS+sgwpLsKCwF/cqKAZQKqrpynIO5kxVLOsfMY07F9KpzRfUWUKb1OAr VNCvjk/Ex8ZPPERqiNFBjfz0gvtyQ2JC8PSP48POCrd5tUdZW77Q/80gPwLai5XOiPt0 aZdiTF2Xs4c6q82qUuBiX1yLFPcZW0gTAOtMbNb5hMEfzf4HbLK8o7D2ZG6BO7zUnXZV s2i86bjmrSnASABnHBN4aOs7JN7g3iKoA0FisCI1/fb3kCiyjBAFfCRJzoKQ8Fquc8gB sT+3liWR6pmq4D1/rFMB7Mu6yARslWyLxAJLVV8sCxT2Yl+yQHQk0ot0UYsWbS8iHXI5 vZIQ== X-Gm-Message-State: APjAAAWl+9NKBFu9Rlh7j44Ie7SnkGh07wlPBJjCut4h4gMX/n5tEPSu 0k/HakUI5+ChltHLb7EwSQs= X-Received: by 2002:a0c:fb0f:: with SMTP id c15mr2008613qvp.209.1582679594257; Tue, 25 Feb 2020 17:13:14 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id y91sm228656qtd.13.2020.02.25.17.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 17:13:13 -0800 (PST) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Tue, 25 Feb 2020 20:13:12 -0500 To: Ulf Hansson Cc: Bjorn Helgaas , "Michael ." , Dominik Brodowski , Linux PCI , Linux Kernel Mailing List , Trevor Jacobs , Kris Cleveland , Jeff , Morgan Klym , Philip Langdale , Pierre Ossman , Maxim Levitsky , "linux-mmc@vger.kernel.org" Subject: Re: PCI device function not being enumerated [Was: PCMCIA not working on Panasonic Toughbook CF-29] Message-ID: <20200226011310.GA2116625@rani.riverdale.lan> References: <20191029170250.GA43972@google.com> <20200222165617.GA207731@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 On Tue, Feb 25, 2020 at 04:03:32PM +0100, Ulf Hansson wrote: > On Sat, 22 Feb 2020 at 17:56, Bjorn Helgaas wrote: > > > > On Tue, Oct 29, 2019 at 12:02:50PM -0500, Bjorn Helgaas wrote: > > > [+cc Ulf, Philip, Pierre, Maxim, linux-mmc; see [1] for beginning of > > > thread, [2] for problem report and the patch Michael tested] > > > > > > On Tue, Oct 29, 2019 at 07:58:27PM +1100, Michael . wrote: > > > > Bjorn and Dominik. > > > > I am happy to let you know the patch did the trick, it compiled well > > > > on 5.4-rc4 and my friends in the CC list have tested the modified > > > > kernel and confirmed that both slots are now working as they should. > > > > As a group of dedicated Toughbook users and Linux users please accept > > > > our thanks your efforts and assistance is greatly appreciated. > > > > > > > > Now that we know this patch works what kernel do you think it will be > > > > released in? Will it make 5.4 or will it be put into 5.5 development > > > > for further testing? > > > > > > That patch was not intended to be a fix; it was just to test my guess > > > that the quirk might be related. > > > > > > Removing the quirk solved the problem *you're* seeing, but the quirk > > > was added in the first place to solve some other problem, and if we > > > simply remove the quirk, we may reintroduce the original problem. > > > > > > So we have to look at the history and figure out some way to solve > > > both problems. I cc'd some people who might have insight. Here are > > > some commits that look relevant: > > > > > > 5ae70296c85f ("mmc: Disabler for Ricoh MMC controller") > > > 03cd8f7ebe0c ("ricoh_mmc: port from driver to pci quirk") > > > > > > > > > [1] https://lore.kernel.org/r/CAFjuqNi+knSb9WVQOahCVFyxsiqoGgwoM7Z1aqDBebNzp_-jYw@mail.gmail.com/ > > > [2] https://lore.kernel.org/r/20191021160952.GA229204@google.com/ > > > > I guess this problem is still unfixed? I hate the fact that we broke > > something that used to work. > > > > Maybe we need some sort of DMI check in ricoh_mmc_fixup_rl5c476() so > > we skip it for Toughbooks? Or maybe we limit the quirk to the > > machines where it was originally needed? > > Both options seems reasonable to me. Do you have time to put together a patch? > > Kind regards > Uffe The quirk is controlled by MMC_RICOH_MMC configuration option. At least as a short-term fix a bit better than patching the kernel, building one with that config option disabled should have the same effect. From the commit messages, the quirk was required to support MMC (as opposed to SD) cards in the SD slot. I would assume this will be an issue with the chip in any machine as the commit indicates that the hardware in the chip detects MMC cards and doesn't expose them through the SDHCI function. It looks like the quirk was only enabled by default in 2015, at least upstream [1], though in Debian it was enabled in May 2010 going by their git repo, maybe in 2.6.32-16. [1] commit ba2f73250e4a ("mmc: Enable Ricoh MMC quirk by default")