Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1202181pxb; Wed, 10 Feb 2021 02:41:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbLiX6FaDFnj6SDuFK/elQbLM3uM4ysLdK4n8K2htNJY2df9AKovgb7WodO3bzcF7waaI8 X-Received: by 2002:a17:906:fa98:: with SMTP id lt24mr2287673ejb.213.1612953715850; Wed, 10 Feb 2021 02:41:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612953715; cv=none; d=google.com; s=arc-20160816; b=eeCSXtq4TwD47lst2czvs8ISuIJMYx+aTVa5x/T3AhxWEp6xOJzcSiDaCHeSHZwOxz Uvn/dWJMM8HFx4YoFOMcRI8FxDQsn1yllPovKqKHVPICkDwvKMbo4HXkdD7ier0CF4E9 6UQ26B2GGizgUra1TXh9SLb89EIY/xecyhyA9DSHpS91csni37IoqzH/BzeygxpxoWnv 0Ta0uwqQrSlEGNV+v4OAwHaeE7p9dKdR98axGGLU/dJQY30hSKbFNkm4ieUz7HwASx3i rdBuzp6N2pcmjlBx8NQ0qxRYLof+/N9OjN/1JhaHzoi/DIYKvJaSPQ9jfX0oMdLy3/vt 72Mw== 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=LLdDQUQP13NzlWu2COedE9BO4DgJfjSYV3P0R/5YqEU=; b=pkMdAeqGzNJ8gYp3E9lfxyA4fQfTJnLZtc5KA85pcwc4vv6J0Ft2EtLbmjpaxYoMPq BpU113ODlnjpd+YVr4k5gnr1H0Bo9MeOMqE8Llll7R3aasIVS8+mpWL0EOsiKrfqiF1H p+t9Mi4F/9FZvrb779WAyFxJ7G/Etr50mLhLLZJVhyO8Rn+75aVp4OGWoIKBkaXdIBoO fLldZTcChUJjmSB1QpS3RLBnTc0Z0jgtT3dUCOo5a7TJH1F9O5kbBVbaE9XnbTG8mJvr ZTImhloL8RY4uWuohArxK1Y4BHH5NhUntWjCfNx8URG5BlpqTCaKPDg+32wyx0fHJEgB ZQcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uZplPSuA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si1004957ejg.674.2021.02.10.02.41.32; Wed, 10 Feb 2021 02:41:55 -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=@gmail.com header.s=20161025 header.b=uZplPSuA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231440AbhBJKi1 (ORCPT + 99 others); Wed, 10 Feb 2021 05:38:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbhBJKdg (ORCPT ); Wed, 10 Feb 2021 05:33:36 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36429C061786; Wed, 10 Feb 2021 02:32:56 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id e9so977442plh.3; Wed, 10 Feb 2021 02:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LLdDQUQP13NzlWu2COedE9BO4DgJfjSYV3P0R/5YqEU=; b=uZplPSuADWwkqUO8bgIIajgUW16QAkBvFN94GSmyqwzYunDJNAR7LhwIUkYGnQPD2x nQTx04fiJwt89Q1lD1B3rXIURUfUgplPBo2veVv3N1tXkuX8ZPncFl9NuZhIdu7/KJcN 16e0vSCzMrLr44XWOidlRgn6CbE6OKb6rcyVGvcump3xLxu3uWPthlWDYcpWS6wvU5jN 0kILc0OnaKpZnRkfHVo9fb3awdyhDoE5ix966TYcndXF6TpnKh/aV8Q7T+X+a8vCsoZk m7evANyNAGB0nUEWbMiqt2YBLl0OyCYtM28LLaPVK/z3fC45ijd1hStUBVt7PL8n1vgk XyUg== 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=LLdDQUQP13NzlWu2COedE9BO4DgJfjSYV3P0R/5YqEU=; b=h2egSvydowzp1adDBtoInfa0FFyqxz4UmQeFFis4qPrv/4XHBz2HnIvoHhvsOZ8aBo 6QkEq1wMvOpOxgWbMXtNkMTRQXAtt0DhuXaEyQJKwvh9CxN+pEL34EY6Sxoxt62CQLez EM0U3inhuHvANENaAViUy+NYkQdh3g5Xw8/qONmyhx0dJDhbMUpNygiB1NsdR5NWqvSF BQrpyz6vlS1gbsG0SNgh7PzAJYHsBXeCCdjLAclApBuqj469/yTBeylDAYcE5KPTN2OK zORu0RBm1oaVB4roGH+DEwxphlZHM0ud+qht3/d3UJfghFWH+usPiyRbmMe6sUNzVrGf E0CA== X-Gm-Message-State: AOAM530/0uxzjnDCk9CmZioX0AgYi+JShJrgPIwlAMxytj9/uQwiYbbv EN0Pzp19Scb1jP4wugKjBpadMO8cYna9yUJpMgY= X-Received: by 2002:a17:90a:1b23:: with SMTP id q32mr2522932pjq.181.1612953175724; Wed, 10 Feb 2021 02:32:55 -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: Andy Shevchenko Date: Wed, 10 Feb 2021 12:32:39 +0200 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 Mailing List , "Rafael J. Wysocki" , Linus Walleij , Bartosz Golaszewski , Rob Herring , Frank Rowand , Pantelis Antoniou , "open list:GPIO SUBSYSTEM" , devicetree Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 9, 2021 at 12:27 AM 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. > > Instead of hand-writing board specific drivers merely for the correct > initialization / parameterization of generic drivers, hereby introducing > a generic mechanism, using the already well supported oftree. > > These oftrees are compiled into the driver, which first tries to match > machine identifications (eg. DMI strings) against rules defined in the > individual oftrees, and on success, probes the devices that are defined > by them. > > For the time being, we just support matching on DMI_BOARD_NAME and > DMI_SYS_VENDOR - other criteria, even bus- or ACPI-id's can be added later, > when needed. This is weird and seems it missed the fact of the DMI based modprobe mechanism that the kernel has for ages. -- With Best Regards, Andy Shevchenko