Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EEA1EB64D9 for ; Thu, 6 Jul 2023 12:30:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbjGFMaZ (ORCPT ); Thu, 6 Jul 2023 08:30:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbjGFMaY (ORCPT ); Thu, 6 Jul 2023 08:30:24 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA46119B for ; Thu, 6 Jul 2023 05:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688646578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iNNsAgLd/8S5YeBehDMR1r5KyYGS/cglxlPiEpZL+5s=; b=OrRA5ou9hqPvSjMMWSzLQw+dZwe25qunp2NElQ9wmxXzHpPS/cgDRQKBxTk93NM9NR/Q9F ww5G+h4Bso+T5kGGDJA2PekhghuDNnsKWD9TuwqZUOmAWyqwKAsD/1ktPRpNiuqfcK7Ito 83c40nJNHaGHW/ORufznV2y5/3R6Evk= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-211-fY6Gsg1OO62A5GmO7R6RFQ-1; Thu, 06 Jul 2023 08:29:37 -0400 X-MC-Unique: fY6Gsg1OO62A5GmO7R6RFQ-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-988907e1b15so54358266b.3 for ; Thu, 06 Jul 2023 05:29:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688646576; x=1691238576; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iNNsAgLd/8S5YeBehDMR1r5KyYGS/cglxlPiEpZL+5s=; b=bt2vRQuYyep4vaeemjRPpfuAPrZdzXsGcZrBVquAdpm5EwL+UsB4r40PMvb9SXWwxo r6JuKrldS7zhkeK4ISrmy5M6qA40I/CYsroYNJsYLoydOqUO6DrTAB5vGJUaN39KohZ8 QBBnyqI0xdSxexGE7iJNauaMgcuytIxilgkI2pNwG3F8biCxO6A2zYfST/YSehiw0vQT wI1CKc+XLKRJ2FTHcaQ+AeQUExjtQ45ZzoPFycmT7D3Fj/E0HLcq8WuN2SsP0O60BBdp ev7/jbe+dcxyb0MG+jXfogGWxomVLuedgLCU9p7AJLNW+IHOE5yKrHoGDan8zn6edL/J Mwtg== X-Gm-Message-State: ABy/qLbknB4WOqMAfBUKJkv+O0EMiHbMEO0r6ri1KDe6jlr5KWmYvFRl EWBKXC886FTATk8XHuHDWNEINEP/LF6L2LTPjl0MxW5OCQbhf47UPOwvPL60i75B1QCUcR/fGXu 3pwMoODKCExZlcvgKoauj9aQ= X-Received: by 2002:a17:906:64d0:b0:98e:43ce:93fa with SMTP id p16-20020a17090664d000b0098e43ce93famr1406702ejn.8.1688646576582; Thu, 06 Jul 2023 05:29:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFBA0gDV322GYWvT4dnBfVBLV56ukKBeESbb0KAL9RD8snA12DvEJ3vdSMxPHn9d2RMoSp6Vw== X-Received: by 2002:a17:906:64d0:b0:98e:43ce:93fa with SMTP id p16-20020a17090664d000b0098e43ce93famr1406683ejn.8.1688646576326; Thu, 06 Jul 2023 05:29:36 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id gf3-20020a170906e20300b00992665694f7sm752607ejb.107.2023.07.06.05.29.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jul 2023 05:29:35 -0700 (PDT) Message-ID: <08825217-ff29-1f58-220d-617570836542@redhat.com> Date: Thu, 6 Jul 2023 14:29:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3 15/18] ACPI: bus: Introduce acpi_match_acpi_device() function Content-Language: en-US, nl To: Andy Shevchenko Cc: "Rafael J . Wysocki" , Sakari Ailus , Laurent Pinchart , Daniel Scally , linux-acpi@vger.kernel.org, Mauro Carvalho Chehab , Kate Hsuan , Hao Yao , Bingbu Cao , linux-media@vger.kernel.org References: <20230705213010.390849-1-hdegoede@redhat.com> <20230705213010.390849-16-hdegoede@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi, On 7/6/23 11:19, Andy Shevchenko wrote: > On Wed, Jul 05, 2023 at 11:30:07PM +0200, Hans de Goede wrote: >> Some ACPI glue code (1) may want to do an acpi_device_id match while >> it only has a struct acpi_device available because the first physical >> node may not have been instantiated yet. >> >> Add a new acpi_match_acpi_device() helper for this, which takes >> a "struct acpi_device *" as argument rather then the "struct device *" >> which acpi_match_device() takes. >> >> 1) E.g. code which parses ACPI tables to transforms them >> into more standard kernel data structures like fwnodes > > Looks like it's v1 of my original patch, anyway this is now in Linux Next as > 2b5ae9604949 ("ACPI: bus: Introduce acpi_match_acpi_device() helper"). Ah interesting, it does indeed look a lot like your version. but it was developed independently. Unfortunately it seems that this is headed for 6.6-rc1 and the atomisp changes in this series which rely on this are intended for 6.6-rc1 too. So we still need to figure out how to merge this. Regards, Hans