Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp62119rdh; Mon, 18 Dec 2023 04:34:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTltPi/XFoHsI9ws9HxdHzZbN3s59asW9vx3dv7IVawXou+k/XtuINnMX8BsdAckgw5dRO X-Received: by 2002:a05:6358:8809:b0:170:17eb:14bd with SMTP id hv9-20020a056358880900b0017017eb14bdmr14369499rwb.45.1702902848059; Mon, 18 Dec 2023 04:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702902848; cv=none; d=google.com; s=arc-20160816; b=dziIfcUoWw7jyyAA9uhLRyNhETBYx//ueeoJLyKFZ0PL8duLUbPdeFv2GrJqs/dC3a sfd632+cs/hoZaX59HTSLn2/QK7ZVvSRLPVTCg8nvbMGliBD7qm09TYyxnsvnYLZH2xb Z+03QNFPPBR9vfXpa9M7qAaKwCrXwAzxqcVBzhsRHIdX7QIryjGr7EmBWlHtuMDdSJ1g FqncjkzSqFtW/I7i2fIz16ZFDlWKKQD2nV9hBvKwvaPY7heguvZyk/04uhmyw/IJDp8o oTINp2iR7ImadXZKk408sITbMcINb4HZGWTM2R/4Nu7U0+LH6wykSJOg4Fz283bUJY3f Wbjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=cHj6tkg0sVzp8V1MrAHaMYjwcXlXZG+bxHOBy//9PR8=; fh=APGI91l9iWT7RVPb2QZja2QiAwhCPwsIhPLrw2cr7BU=; b=iUXEV1NHJYJfuzd7ytV5Ivg9cDajDk9tcfSC+b2APy8Ijtjk6oiyH+SNFfvS79M3dx F6UKUy8FvcYhFLEkKLOOuLKFSBZCGOwX6CaDXfeiU2T1xSEyaVKS1fEtobyfyziWzYVi WmTrHPrXD3+4/A97wXjGJVxhKF3j8FXfKmfjDUzFoaChUZ8rAn3IoqzQeL446gdSrTDH yMt4oS987MgwGnxV4G2wMX4VmE0Hd7ua67h7PmVpS8XenEh/kRlrXPI5/SK6+rbzdth2 sQGvTGjPJxIYXLvXlGJ8CFwQNK5npfVM6t7l+P0o25uWFCJ4jbv8+IfK4cFh6r2NZfa1 rmIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3565-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c31-20020a631c5f000000b0058556a636dbsi17177683pgm.434.2023.12.18.04.34.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 04:34:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3565-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3565-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5D45C284F18 for ; Mon, 18 Dec 2023 12:25:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AE3A49F8E; Mon, 18 Dec 2023 12:24:53 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8B2442AAE; Mon, 18 Dec 2023 12:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f46.google.com with SMTP id 006d021491bc7-5906cf5bfdfso620601eaf.1; Mon, 18 Dec 2023 04:24:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702902291; x=1703507091; 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=cHj6tkg0sVzp8V1MrAHaMYjwcXlXZG+bxHOBy//9PR8=; b=r7q1fx25BJht0SBPW8JwshxHpyYLzpoAke+/PrlmWG9rB057azcTcir2dBhic58gYz lAiQMIIEwVcb9PcsrKiKIH5y23pMBAchdaBnx7CoFIBDcSTrJzFuxz8ZxK1TfuGKsmPX yzw54c49B85VT5xtV2+Tp1/k9EwnufjIxsGwNWq8oA+1NfI7VF14LF18LRqK/jOrJs93 gZvoGeNcozaU6S7ya034mfMCoNt0Eii6H1EOfZWb8OrOXhj7ygrrMhVMro69aXSNhDSc 3UkGgFZw+buQnLje6OWWh8lty2q6DUi0HDSgy7o7YWZpzzETlVhwathRN2veyWD7vv7Z /dgg== X-Gm-Message-State: AOJu0YwCcWF02MNRoLu00loFtUTd3r+eTf5HMmUFyCaynKHnZeRqbm5s nP27M2yCh78JBIX//WBgkmHx5J7bdADrXTn16cs= X-Received: by 2002:a05:6820:2484:b0:591:4861:6b02 with SMTP id cq4-20020a056820248400b0059148616b02mr16457528oob.1.1702902290636; Mon, 18 Dec 2023 04:24:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <12358058.O9o76ZdvQC@kreacher> <24090583-2882-4961-a238-c964b099ee55@redhat.com> In-Reply-To: <24090583-2882-4961-a238-c964b099ee55@redhat.com> From: "Rafael J. Wysocki" Date: Mon, 18 Dec 2023 13:24:34 +0100 Message-ID: Subject: Re: [PATCH v1] ACPI: utils: Introduce helper for _DEP list lookup To: Hans de Goede Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Andy Shevchenko , Mika Westerberg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2023 at 1:13=E2=80=AFPM Hans de Goede = wrote: > > Hi, > > On 12/14/23 12:07, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > The ACPI LPSS driver and the Surface platform driver code use almost th= e > > same code pattern for checking if one ACPI device is present in the lis= t > > returned by _DEP for another ACPI device. > > > > To reduce the resulting code duplication, introduce a helper for that > > called acpi_device_dep() and invoke it from both places. > > > > No intentional functional impact. > > > > Signed-off-by: Rafael J. Wysocki > > --- > > > > This depends on the following series sent last week: > > > > https://lore.kernel.org/linux-acpi/6008018.lOV4Wx5bFT@kreacher/ > > Thanks, patch looks good to me: > > Reviewed-by: Hans de Goede > > feel free to merge this through the linux-pm/ACPI tree. Thank you!