Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3779363ybv; Tue, 25 Feb 2020 07:10:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxDLrFgK19/DzF8umHl1lwqCsPUnpScgRZyOzrgwnWIqoECQwYw7gnr9dgb/FkCupLOe1u8 X-Received: by 2002:a9d:69ce:: with SMTP id v14mr45523475oto.248.1582643451155; Tue, 25 Feb 2020 07:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582643451; cv=none; d=google.com; s=arc-20160816; b=TrclS51bLnvLQkoCKWsnc8NttGd5r64Q7QIsN+5o1V7EzTEbVPUb0h+J/u97mHGJC9 XqHNWMk+wkZm3TanH7kYkDSUkAUNmHkRUsHkdXklFaIvZH3fesyUII8jYPCZ2jrLOCvZ 9lUCxzBUneZ6DibBSsxLbmICEUbCAG+QOCMls0nipT8+kzX/gpEhxeGggbsX/8EI5dtF iIXxzyAXL+reVunF8rBGEoXOiPS2jNJLasv74y51EE20p+1keDszsDby6oMrFC5Bwllo ataxtSIboN0quGRR6LmNKhRBhokI2d7+YBlA7pE+pOaY4vXhfHw4ZIgCWY5adhD6peT4 SKCQ== 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=6bvPtd/198cywXTOvjPU3FjOjwVQjlkyqXViQFJxqc4=; b=e88yGg1DEi80ECZNT2VFwqAHWRpFcFyC3DodB7KOlmUe3yneMaC34OqIQ85hATY060 4mshqOpUmBU1jDaVXGnOFml8gIS5qgIFNzmXexRbq26v1lEgedvOZvT6shuewlC7TqpY QSL4IZrsh6i5QQBiizGq8HmnNXFV7uz1EpEi9Ry7FdMd0wjEVrJcdpBBSnQGWKHzWFa2 drJnbaq3hplNpwuAShLqeYyHpyFFfdRa7aFixIQKN9v8x4D6SSmAe/mee8eYJu1L9DnH NfFegsnwxBYaOiGOqklbpQvM2on1VXzk0AtKcNg4BhqXi7Dt/9bpa8SdGzDEBZQhCBEm 5hGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QyQ7bqVk; 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 n1si1215368otf.102.2020.02.25.07.10.15; Tue, 25 Feb 2020 07:10:50 -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=pass header.i=@linaro.org header.s=google header.b=QyQ7bqVk; 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 S1730984AbgBYPEM (ORCPT + 99 others); Tue, 25 Feb 2020 10:04:12 -0500 Received: from mail-ua1-f68.google.com ([209.85.222.68]:38573 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730818AbgBYPEL (ORCPT ); Tue, 25 Feb 2020 10:04:11 -0500 Received: by mail-ua1-f68.google.com with SMTP id c7so4604347uaf.5 for ; Tue, 25 Feb 2020 07:04:09 -0800 (PST) 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=6bvPtd/198cywXTOvjPU3FjOjwVQjlkyqXViQFJxqc4=; b=QyQ7bqVkPtFxGSpRtJkoyUUpcZUWjPSm67wWaqXgNdhAN9SC1zKQBaYjXRJlPDuVV7 mE6Y8QWd7OTy3FWHGqMnQB4PFJdlq00tF4nmmdbBhzr/UClptbQvq5PqiNJfyon2K6Gg Dnf2HAw1NAMUj+N5oFrdemY8zfdzVYZqJOBqic+gSal+FrLLACyZAoBMmDe1X1+5ua4x YljZ9xLGmdzM9hV2JyCzuDv+xJznShRiFe7pOsOVyrjCnNlUEjwolUHSkL4vEH+Z19ly pYjHxcVUP1RoStnsuJNPITwesICP8UZBTxteLU7K37jscplB0dZftuL/iMJgfox86tG9 BYFw== 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=6bvPtd/198cywXTOvjPU3FjOjwVQjlkyqXViQFJxqc4=; b=CRkgqOIPndL009r7sSxk3IuiF5pT1pVm4FP31oIaE9j49o3T13fNcWoX3MAbObmlSV rpAtUvDFgC/6xPAhZ29cBXTtq4dG4RWnxshnVLY3V+sYOtjxi19VkBfyrewaspG27Z5Q qlYPbX0Purd0GXcpkjer3Au/sYtQRCFyv9gOg6W6/v2Cy9+bsbsXwKm67sIIOzif3ym6 yEvEpLi4c3q6gPA+ttyDeXSLIPjeLUV2G8Fk9XD7E6m4SA4w9b+Lr+JvQVXsRmVIF96U wGk1MdZjOi+Mkp4HdC56cmpOsW4v2MeWBiEXktrAR98kmwxXKAHlsOCgqFKmLql91MHD cZpw== X-Gm-Message-State: APjAAAVAJ/rD7eMFZuGh+zRu90iGGgdYq7ptvId8jq9a225lCjqD1v+X iUHx5VXsyKeBOVqfTCfibAS+X1GNZE0lEArk6tdR9w== X-Received: by 2002:ab0:740e:: with SMTP id r14mr28921662uap.104.1582643048621; Tue, 25 Feb 2020 07:04:08 -0800 (PST) MIME-Version: 1.0 References: <20191029170250.GA43972@google.com> <20200222165617.GA207731@google.com> In-Reply-To: <20200222165617.GA207731@google.com> From: Ulf Hansson Date: Tue, 25 Feb 2020 16:03:32 +0100 Message-ID: Subject: Re: PCI device function not being enumerated [Was: PCMCIA not working on Panasonic Toughbook CF-29] To: Bjorn Helgaas Cc: "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" 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 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