Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2819561pxb; Fri, 12 Feb 2021 02:03:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEJl65q20y7/88CIZVn0L4hndjUGxGdj4vsZadoRasCLM6Fucul2U1NHYdAE64ku7AVosf X-Received: by 2002:a05:6402:268a:: with SMTP id w10mr2485674edd.331.1613124183085; Fri, 12 Feb 2021 02:03:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613124183; cv=none; d=google.com; s=arc-20160816; b=azwqpklsRWxlLSQ42RiaR0QfAdNIKDwABZTqr2JoWuYahad+ZbMshosTEMNnBSRVUc HiBVCu/JHoYqOjdD+OuKBPXyRi8eH6e7/lcHtU9gpcgesn8MS5k+Cw+/mrfg1RMGm5dM oX1vTtKpriR9lW0lOwOZrPkth3EsRuqfS9tW57Xa+g6J30dD42yMIQseO27zmGjIQ+cI zWTH6LDnJ+FvwFejczjJbDLaPSMhKmM1PjtCIiiiz/5wXdG+leAcdxD4jV2Pl34b5pmg fCzl/Cet9zkUbVya2PI12k9qL/Z6nCUiOMXWcJ1Fn+IePHuzrjW056/URxDqFJKwYtsW F7wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tLlrWyTZLhWtvJX5ISjbWHYe1Ufjgw1DCNKqvjlN6Ew=; b=A6S2q+ZE6UMCCP63F2fne/9DqBV1ZtI0mVItBwNRFT0Tmq/Q2Xx3Q2eCeJDYnBnhjM AG/sTPK3ErxK0WbHAwkQnNV+B5IxS+y3d8nfZV9We5K367e3YeKhbcTbeHaVRnUzHMmB ic8dKIRen1XBP0UqsF1498EVo97Zdn5LT8duXjyk0y9XfFHu8XR8+3aUQugsLL9cU2ws 2QS4yBytBhCccUJ6rjMtGnPgTqWMIO0cWrX5c2NDOj2IrT1LziFirB28+cylW4e5Gn0F zwhj9JX/lTRxj4yN10YTNt4D5zQmsOptrLZ8NRG7I6lmucpiTVJbfk6rZZnKQKECfIfE 8zfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b7fER4au; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si5972935ejz.642.2021.02.12.02.02.39; Fri, 12 Feb 2021 02:03:03 -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=@linaro.org header.s=google header.b=b7fER4au; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbhBLJ7z (ORCPT + 99 others); Fri, 12 Feb 2021 04:59:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbhBLJ7v (ORCPT ); Fri, 12 Feb 2021 04:59:51 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8CEDC0613D6 for ; Fri, 12 Feb 2021 01:59:10 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id r23so10899769ljh.1 for ; Fri, 12 Feb 2021 01:59:10 -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=tLlrWyTZLhWtvJX5ISjbWHYe1Ufjgw1DCNKqvjlN6Ew=; b=b7fER4au/hDtj5RxerKEesoEVvekR6JUiQahf30QSd5ysKZH5oOy11ckX2lDrByzvM SfV/jEaeocNKPQVGFOtBW44H9EdHFwrDYVQ1VqXs/KvoGescTn5ENp+iaj744bO0uFoL ZC7mBFSfQUlNkVSGzujcpGcqzNlkwkXoqYuDDTRA/mNdtghGYfrBTy7wrVakNG8JaTPL FGGXjstoKVnLST3nkzDrsPyoztBhOo+Z4xGlqUGISi0gO6uETYRuxslmF7u62XEmohHN XxImKGER3ECbOvQXn5uOIFJdGlX0STjSwro+M7OagOcPwuCPoLd8IKIeJ0z/cMBN0nXL kvIw== 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=tLlrWyTZLhWtvJX5ISjbWHYe1Ufjgw1DCNKqvjlN6Ew=; b=RMutqt8oQn9c1ITmvGdUufQMSH6DvwkeEAHl7B+Yg4HCXGAKNW72dwCsTc2XKMQaye LIFZtiX2do93uuWLGlE41UDUQ72ahqypEWv1VWEUV8kR5V1SiKETzgAZywUxanFcVGYb HnKdzoi4c6fufw1VjKXTtSuAXlJCl7Jn344DwDre5xcdwy6QErmkBm82ROaDdYy7sK/N xIOAS3nvkrBr1QzRO8SL9+s5mzFJQ5WWgGU2QyES60C4B903RO/WQefJqJwGP30reFW6 AiU0ETFX0XWOOAfZMbnkkHN9M9vRkrYm+BslrZMGZkx+A+MzalAs6HqZYVFKHeBCayYl 6tKg== X-Gm-Message-State: AOAM532jye6lmwZPKizG3bQ7tGrs+At/GpVc+h947TX8cU4/LRWmc9AA TiQEWx3GEfnGX+v0iRzNLoRf4FYj5rDauQ6NZqk4qA== X-Received: by 2002:a05:651c:32a:: with SMTP id b10mr1250383ljp.438.1613123949271; Fri, 12 Feb 2021 01:59:09 -0800 (PST) MIME-Version: 1.0 References: <20210208222203.22335-1-info@metux.net> <20210208222203.22335-12-info@metux.net> In-Reply-To: <20210208222203.22335-12-info@metux.net> From: Linus Walleij Date: Fri, 12 Feb 2021 10:58:58 +0100 Message-ID: Subject: Re: [RFC PATCH 11/12] platform/x86: skeleton for oftree based board device initialization To: "Enrico Weigelt, metux IT consult" Cc: "linux-kernel@vger.kernel.org" , "Rafael J. Wysocki" , Bartosz Golaszewski , Rob Herring , Frank Rowand , Pantelis Antoniou , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Hans de Goede Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 8, 2021 at 11:22 PM Enrico Weigelt, metux IT consult wrote: > Lots of boards have extra devices that can't be fully probed via bus'es > (like PCI) or generic firmware mechanisms like ACPI. Often those capabilities > are just partial or even highly depend on firmware version. I think Intel people often take the stance that the ACPI DSDT (or whatever) needs to be fixed. If the usecase is to explicitly work around deployed firmware that cannot and will not be upgraded/fixed by describing the hardware using DT instead, based on just the DMI ID then we should spell that out explicitly. It feels a bit like fixing a problem using a different hardware description just because we can. Look in drivers/gpio/gpiolib-acpi.c table gpiolib_acpi_quirks[]. It's just an example how this is fixed using fine granular ACPI-specific mechanisms at several places in the kernel instead of just tossing out the whole description and redoing it in device tree. I haven't worked with this in practice so I suppose it is a bit up to the people who end up having to fix this kind of stuff, Hans de Goede and Andy are fixing this kind of stuff all the time so their buy-in is important, we need to see that this is a real, useful tool for people like them, not just nice to have. Yours, Linus Walleij