Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp24524pxb; Wed, 24 Feb 2021 17:05:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhoDwnnW88hb5Ur1O1wGsafySTIGArLwrsPzXDfP2YxP+9v4ckRcbDZUTL2tR6X7IxH0CI X-Received: by 2002:a17:906:f9d2:: with SMTP id lj18mr306300ejb.291.1614215100126; Wed, 24 Feb 2021 17:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614215100; cv=none; d=google.com; s=arc-20160816; b=CUqCNr2F6J2C5arbJC9Nup0ot914sp0ZEv1BIek8sMrjM5YYoPiSGGDmgryUPITR45 2+xs0yNF+C38oQ0VGOU7em/WnllyoBKG470AxQ+Nul3JIlt5ce4edPUjO7MyQ/1MWwHN KMpveTztv84GJL8bIIL/t58M4tgZiGo9k8MqGdehpiwOr06dC41d6zoyBOREpUNNkx2w dDUt1KX0Ev0Chc7kkf8Zqn86YK3dRGIWkgKyZkrFWe2UST0yvql1bc5vXoX8uIEYbNIY zpUfN6bY8W3OgDI3JIReQNPlzy6RY9BaEB3PQRgym/AC58KSwUGHxDC7Eea/BDHj1fFG KA1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OkLYtV96SHQi0OlMLkalwjfIxdNtro2r3sCKZZIvvkw=; b=DIQZiM+9cIz18LUTrOK0OTOsXTRbkuapb1KHvQ1GwJmw5U6kgQ1rgAkJnEYX7QrAsP O3NEhvAd3Ojw39I2X4Zwq/0gs+ARjZvOs3LnOVFoozMaYEolBNxcs6S5bhsIbyvC5a+k Gd21gRPlaE3qA3kwGm1nYn4Uqa4e/x0AhcxU1Vmr+SALQjGerd5WRrdfoTKuR0VGjske mXsl+s8X3ri9laHwgPG8o2dBF+efW4KGRXQwPeabOFAJwDx+QOad13zfnRQfpbW+D5+0 61v4UIbwnD10greZLcNDeRISCVJI1FzHRfaA89vM5C7IvfaaD1DxB6lIqoodp0S3cdeu DkFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DnnYjOAQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si2220619edp.254.2021.02.24.17.04.30; Wed, 24 Feb 2021 17:05:00 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DnnYjOAQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232678AbhBXQbB (ORCPT + 99 others); Wed, 24 Feb 2021 11:31:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:33542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233482AbhBXQ3Q (ORCPT ); Wed, 24 Feb 2021 11:29:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD72464DA3; Wed, 24 Feb 2021 16:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614184103; bh=kKdB/WD5paalw9c2TAIpowxNthjQ5ojhimY95FmQYl8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DnnYjOAQtG2XmL/p8DLOl0SJJbMuRxw1x+g3PIkVfd+LT83jAi7/Gy9nHnub5r9cj 8twtkgQcD2Ea9NAtHMgOLD4XtfiKOrs5fHi1Kom0+pJV5Mqf6y6wf8rtCkIpqPdb+n bvdUPoD4gOi+PWt5fsJaTK3K1+Z3g03ZiaknmEd4= Date: Wed, 24 Feb 2021 17:28:20 +0100 From: Greg KH To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, rafael@kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, robh+dt@kernel.org, frowand.list@gmail.com, pantelis.antoniou@konsulko.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [RFC PATCH 09/12] drivers: base: reintroduce find_bus() Message-ID: References: <20210208222203.22335-1-info@metux.net> <20210208222203.22335-10-info@metux.net> <9db34ee4-30dc-9e69-6e82-00cbf4615ed5@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9db34ee4-30dc-9e69-6e82-00cbf4615ed5@metux.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 24, 2021 at 04:30:42PM +0100, Enrico Weigelt, metux IT consult wrote: > On 24.02.21 09:00, Greg KH wrote: > > > Have the firmware code do it itself, do nto try to "reach across" like > > this. > > By "firmware code" you mean Linux acpi core or the board's bios ? either. > a) Fixing BIOS would be the cleanest solution, but we cant expect all > users to do field upgrades. Many of the devices (eg. the customer, > I've originally wrote the apu board driver for, deployed them in > really remote locations, sometimes even just reachable by ship, > heli or horse, litterally) > > b) Explicit blacklisting somewhere in apci enumeration code could work, > but I really hate the idea of such board and bios version specific > quirks in a place, completely unrelated to the actual board driver. We have quirks all over the place, that's normal and how we handle broken hardware/bios al the time. > Actually, I'm also hoping to find a proper way for having those things > in one file per board, in the future. (probably not applicable for > early stuff, or _OSI(Linux), etc) I don't know what "things" you are referring to here at all. > > And what problem are you really trying to solve here by doing this? > > The problem is that *some* bios versions (that came much later, after > pcengines-apuv2 driver went into production) added a few things that > the driver is already doing - different versions doing it differently > (eg. even enumerating gpio connected leds with completely different > names, etc), and still some gpio connected devices missing. Some > versions (just forgot, which one it's been exactly) even enumerate > *some* gpios (and LEDs behind them) as a different device, whose Linux > driver just happens to work. Meanwhile I can't find any reference of > that in the coreboot source, anymore. I have no idea what you are talking about here, you did not describe a problem :( > As you can see: bios is anything but reliable on that platform. I do not understand. > What I'm trying to achieve: the kernel should behave exactly the > same, no matter what board revision, bios version, kernel version, > etc. (there should be especially no need to have special per-board > quirks in userland, depending on board rev, bios version, kernel > version). > > If you've got a better solution, I'll be glad to hear it. I really do not understand the problem, sorry. greg k-h