Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4587719pxb; Tue, 22 Feb 2022 01:57:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJFyxc8Ayl+FUszqpAHfEsLjDniiYHBIWjm8Qegj2k+8Y5Wmo912puKBcMlZ5UwT4T7bLx X-Received: by 2002:a05:6a00:124a:b0:4e1:7cfb:634c with SMTP id u10-20020a056a00124a00b004e17cfb634cmr24221842pfi.12.1645523858810; Tue, 22 Feb 2022 01:57:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645523858; cv=none; d=google.com; s=arc-20160816; b=C992W8NP3nJnO1ZJTdHelRY6f2CQMqaQRffg4WfJzYJybgbkzvWJ3KKBW7aTB3t94s VMvGC0XM9W3cqOQ4aqNlOJap57XzysWTymRXCpsNaEAHbnktMP5yI6s8lt2cDEFnHm27 qFNioR4P8tw0ez6jye44bVbeS6wTvCALVB2PYqkEknhd4+E+dJ3LVkBlmS/KCPms7etF 3TOk5Ap+a3ijBVBAdTBnpOdLs7ThBDjrelnP33+wMXmkNW08ANLXlHCfsUvyX2I15Gb4 Z9Eo+CJrLJLGhS0vtK3Uv98Xglgd7Htj+a3IUTWO5L3A0yq06l+fr2vKu+lVZFPbJthC Y5rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tG0N4GsMvluqwN7hLyreWf4WVYklGtFdMXvbW9AWJag=; b=lDtcP/C2KG6AREvo4pMwvgYcWDD4wGwKuxfeGWzPUK3gH7hxdJzIswp51ipC2qjM8Q kiHwCE+z+DIDAJZtWfU8eH3JjsIajH0aEEDh49Hu2e1fS9NaawfmPPCWn25VN7UtEB9E SbKf9DZq8dmGCxIlUIlIcyMFiePAOv9pVdtQ3VCNKZRCDfZgdjbXd+2rqsGn2dwU41oo YiJCM1e7LPb8CwhbCdl88m9WSzOmo4W4pI5xJy7vs/lcRY9QN8mL2dN9uzckiUAdEqj8 QhPtDgPKa48KXkBSYXdtX67Ag9KKZCnr1RwG1T3H8j0g1rRxahldZS51FS/YNHkdYtTG QFfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="dnud/zCQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 130si20631709pgh.289.2022.02.22.01.57.24; Tue, 22 Feb 2022 01:57:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="dnud/zCQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230076AbiBVJZS (ORCPT + 99 others); Tue, 22 Feb 2022 04:25:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiBVJZQ (ORCPT ); Tue, 22 Feb 2022 04:25:16 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AD9213D92A; Tue, 22 Feb 2022 01:24:51 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id s24so28926415edr.5; Tue, 22 Feb 2022 01:24:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tG0N4GsMvluqwN7hLyreWf4WVYklGtFdMXvbW9AWJag=; b=dnud/zCQnhD0sZZU8bovA0ObMhMoe/FKEx2PhqHT7SHUuASH4fmXhamRY6HgJg6oJU plhWj8BBtGfmNntw5P1s6WuMtXlTBcrGiGTw7ilx0E//iTUkKW8r5Zf/ShYtamV/HKAY kzjCNt6ldGOThL6gNEdjCS11gdu9cVawSk1QU1k/9m+1bUcOEdzEykQQnm/JmwupRNiX zsYSRg+sQRrtYaOCHdK9rwT3NsDTHTEapOAB1SZWxmrHCXUFHgOeyr17Le62PuU5Vy6R RUFton38ZQ0PctxliCZTRF6YDXStuAOg+uaDQsAF2Fl4O/Z13oMTl4uJ7kfvUcNiNFnt ZFVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tG0N4GsMvluqwN7hLyreWf4WVYklGtFdMXvbW9AWJag=; b=5pDRtp41/M5SDtRZW4gcgdcSVKw9oEcDBAfH8kk3uhWa+DvJoY9P2RYR2UQ8F0Equd j7hnRFggk1iqAXFi2IW96088yPEfm7lOoYPNOL+UQBlLGp59IQzav69tALN25zE9iEKq AtIHiZdze4raQYKc4QteOhZzceyiydy2vVLUXDClt8Syif0hKtTDqmjBVgIDTXxg47PZ 4UuYbmbTrA3oJOZCgMEdwp57CXfWLfmfAPt+MK6mFDKwAEhkjRTCW4HK/zGWWWJ9weDS OcYqJxWhzooVvVlTqTjvZ2Q7AdTerZW/F+bo6rFI0SCRkbDrF2OOYPSt+w1vADjvMY9X OScg== X-Gm-Message-State: AOAM531VeAA9IGNBZqX+iPK4SgZUVTNqjKvG9DhJbDiy+TwjoG2o2Eyn YpO0+cr2BxvM3gMeQ4SKMCGAMMBu+hB/VfggZ0c= X-Received: by 2002:a05:6402:d08:b0:412:a33e:24fe with SMTP id eb8-20020a0564020d0800b00412a33e24femr25921136edb.281.1645521889689; Tue, 22 Feb 2022 01:24:49 -0800 (PST) MIME-Version: 1.0 References: <20220221162652.103834-1-clement.leger@bootlin.com> <20220221162652.103834-3-clement.leger@bootlin.com> <20220222091902.198ce809@fixe.home> <20220222094623.1f7166c3@fixe.home> In-Reply-To: <20220222094623.1f7166c3@fixe.home> From: Andy Shevchenko Date: Tue, 22 Feb 2022 10:24:13 +0100 Message-ID: Subject: Re: [RFC 02/10] property: add fwnode_get_match_data() To: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= Cc: Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Wolfram Sang , Peter Rosin , Russell King , Andrew Lunn , Heiner Kallweit , "David S . Miller" , Jakub Kicinski , Linux Kernel Mailing List , ACPI Devel Maling List , linux-i2c , netdev , Thomas Petazzoni , Alexandre Belloni Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 22, 2022 at 9:47 AM Cl=C3=A9ment L=C3=A9ger wrote: > Le Tue, 22 Feb 2022 09:33:32 +0100, > Andy Shevchenko a =C3=A9crit : > > On Tue, Feb 22, 2022 at 9:24 AM Cl=C3=A9ment L=C3=A9ger wrote: > > > Le Mon, 21 Feb 2022 19:46:12 +0200, > > > Andy Shevchenko a =C3=A9crit : ... > > > The idea is to allow device with a software_node description to match > > > with the content of the of_match_table. Without this, we would need a > > > new type of match table that would probably duplicates part of the > > > of_match_table to be able to match software_node against a driver. > > > I did not found an other way to do it without modifying drivers > > > individually to support software_nodes. > > > > software nodes should not be used as a replacement of the real > > firmware nodes. The idea behind is to fill the gaps in the cases when > > firmware doesn't provide enough information to the OS. I think Heikki > > can confirm or correct me. > > Yes, the documentation states that: > > NOTE! The primary hardware description should always come from either > ACPI tables or DT. Describing an entire system with software nodes, > though possible, is not acceptable! The software nodes should only > complement the primary hardware description. > > > If you want to use the device on an ACPI based platform, you need to > > describe it in ACPI as much as possible. The rest we may discuss. > > Agreed but the PCIe card might also be plugged in a system using a > device-tree description (ARM for instance). I should I do that without > duplicating the description both in DT and ACPI ? Why is it (duplication) a problem? Each platform has its own kind of description, so one needs to provide it in the format the platform accepts. --=20 With Best Regards, Andy Shevchenko