Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3109600rwd; Fri, 16 Jun 2023 12:22:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51kgTOB0WsdM4jfpUO1qHHe/mZm1VjjIL72Tb04W+mVW7ILaQ7ZX/enkd1suXCccnsEl0y X-Received: by 2002:a17:90b:1894:b0:25e:4c91:bc37 with SMTP id mn20-20020a17090b189400b0025e4c91bc37mr2225748pjb.10.1686943329447; Fri, 16 Jun 2023 12:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686943329; cv=none; d=google.com; s=arc-20160816; b=x5knc0ayJBw6zd+Pfr5ds4R0nv+G4GnJkivEkI44B17t4AgBXCGspP3HElt4apANmM jHXR+fu2yqbaQOZtct+UZYw8z22fsGOuglNZjPd0DHR7Iwm30ulK81UGXCaNHfSm+XwQ uHe183bV3fiBlvWzjiRwxczs2xbMZXigvDNuOjlM5jHSpKkPMphc95BqFZsLRxbL3U1a Nfek+GrJqTVLG+1pSgImZi1HH/jQ9EuPaulk3AvvgoCB027hgAvmUrrR73x8H7NPH1C0 o2G0j4eqlzh2I0A8yXyjWR1PWTMU2Fc8nT8ozOdIq0hvxBTaV0mot0CFtTGQh+eaq/Bo PcYQ== 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; bh=UMqYuBCOkzstzldn8dTDTNGJfkLO8sjYloeXwrVl3ok=; b=yJZbruqFZBFUw+bT8IjGoHUSFlZkUUf4ge7oW4SMXqJkFeUHPPtGDuXN5J4YayOEsj 866HzoXfep2ZSpPSakM7k+xz80fZpsjTlt5mqN17YrVllIp0vFGAX9vIIvO8KjtVF8P5 zN5z5ZlyhDloIHhBRNzP8COXYWz2NNSTYqPojJ36t6GXxcEPW7ipwd+FDqw3NahWAGxD 6917Qvxzl/vAoBQS93IH+XdwE6QH9kSdyXrtsKkDfkYZB/dDfbH7oXPjsDE7F2SUh2Ur 5eIDVCjvQVjgewGJ9LZ/S8QohMpYgSaB+SS8McA3kV2YZwmb6lAY6oOfVSbueqoQtZy0 dACQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a634b46000000b005347fcb7853si15696877pgl.140.2023.06.16.12.21.54; Fri, 16 Jun 2023 12:22:09 -0700 (PDT) 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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345789AbjFPTHV convert rfc822-to-8bit (ORCPT + 99 others); Fri, 16 Jun 2023 15:07:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232355AbjFPTHU (ORCPT ); Fri, 16 Jun 2023 15:07:20 -0400 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F5CC3; Fri, 16 Jun 2023 12:07:19 -0700 (PDT) Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-9827714a479so31203566b.1; Fri, 16 Jun 2023 12:07:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686942438; x=1689534438; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fjd1Ph18xx56C7K7G9MOYBJwS203VPnnlb4VxXO3yFM=; b=ITqjTp3ob0FmIJZ0yDdOhYg887uH/7z9UFfISkN15YKJvV//kBj0GFnvQwtk7jyyii E8lOyNS17pP40TDXCSMwcGJ2FLg6rnkmkgXr+EPPDKwuKXLmXUNHQc51xmVBc0m/h/uG fn/uv6SznPL7WU0s2G+UoEdk4MoXcxx//PAnk65TSIe6GInL9ihh8+m5jQJ7tEBcE9BS LZX7uXkFPSQeGgqJ2vu79c9x/ygc4huTW93dmAhbJmF0GKm2PG8vlPddt8KgcsPTe9kZ bPU7CdRjzri3uwNWvNcecugwhK8EeXpxAu8onQPIyQkd1sw+T7rVR2OH3MSJWeTokeX+ JJ9w== X-Gm-Message-State: AC+VfDxzHJN5FPHG/mGryB/PU7UoCFDFCz+EUKEOntfaiufEZyPs+1xF vpktqMVqISqEhBRXMTEhHVRZSkwP9X6gDCdnlJE= X-Received: by 2002:a17:906:11a:b0:94e:9efa:a9ed with SMTP id 26-20020a170906011a00b0094e9efaa9edmr2594740eje.7.1686942437885; Fri, 16 Jun 2023 12:07:17 -0700 (PDT) MIME-Version: 1.0 References: <20230612161011.86871-1-andriy.shevchenko@linux.intel.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 16 Jun 2023 21:07:06 +0200 Message-ID: Subject: Re: [PATCH v3 0/3] device property: Introduce device_is_compatible() To: "Rafael J. Wysocki" Cc: Andy Shevchenko , Greg Kroah-Hartman , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Hans de Goede , Jens Axboe , Damien Le Moal , Len Brown , Daniel Scally , Heikki Krogerus , Sakari Ailus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Jun 16, 2023 at 7:55 PM Rafael J. Wysocki wrote: > > On Mon, Jun 12, 2023 at 6:12 PM Andy Shevchenko > wrote: > > > > Introduce a new helper to tell if device (node) is compatible to the > > given string value. This will help some drivers to get rid of unneeded > > OF APIs/etc and in may help others to be agnostic to OF/ACPI. > > > > While doing it, I have noticed that ACPI_DEVICE_CLASS() macro seems > > defined in unsuitable location. Move it to the better one. > > > > Last patch is an example of what the first two are doing. > > > > The entire series can go, I believe, via ACPI (linux-pm) tree in case > > the last patch gets tag from the respective maintainer. > > > > In v3: > > - added tag to patch 1 (Rafael), patches 2&3 (Sakari) > > - made commit message text wider in patch 3 (Sakari) > > > > In v2: > > - updated commit message and added kernel doc for a new API (Greg) > > - also replaced acpi_device_get_match_data() with the agnostic API > > - tried to keep header inclusions ordered (to some extent) > > > > Andy Shevchenko (3): > > ACPI: Move ACPI_DEVICE_CLASS() to mod_devicetable.h > > device property: Implement device_is_compatible() > > ata: ahci_platform: Make code agnostic to OF/ACPI > > > > drivers/ata/ahci_platform.c | 8 ++++---- > > include/linux/acpi.h | 14 -------------- > > include/linux/mod_devicetable.h | 13 +++++++++++++ > > include/linux/property.h | 12 ++++++++++++ > > 4 files changed, 29 insertions(+), 18 deletions(-) > > > > -- > > All applied as 6.5 material, thanks! But I see that Greg has taken it too, so I'll drop it.