Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1657327iog; Thu, 16 Jun 2022 10:49:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vcJqDBmCIvyeQzoxrXIibVdCwauHVQ3wxVMWP7OQkISF+6++4mu4Hi6omEsHoHCe/RCwe4 X-Received: by 2002:a17:902:d2ce:b0:164:be8:33f9 with SMTP id n14-20020a170902d2ce00b001640be833f9mr5604449plc.8.1655401778165; Thu, 16 Jun 2022 10:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655401778; cv=none; d=google.com; s=arc-20160816; b=KOl+9Z/Nedsq+fvCfePephKBZ2023BKgb/2V/nwN2eHd100WPIg2n9NHZfV+7rrVMF bmkI4rFXlE1rIII2+hbtnn74KnvIrK4ABmDr0tfiwxbWvcLGZl9FJmpN70JVKIk3XGLw vlZvFKNSAWGonF+GlucZRpqyURR7SIZMxgMu8FJyO00jrxKKitrL/orNmOyhYEpq8HHI Q6S3qUzu6kDj9/drXFXd0xsPpMRe2xFaUuwY/6Vc9rOipBNUzyKKFtdS5/dsA6h8ugDA Er3s2bYHBswbEVjE0o4tl8jGXPNL1aTvhHYH9XzrQXXSx7WDXiW4+z1lCvjSIoT2FJRA teFg== 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; bh=irnPXDDs9giqZixb3bVvb0MoUIRIDyuwHiNhzsO5+C4=; b=Z/h5d2S3Y8re47AgiumV8PywPzVUdsSvMbVA+ZuDMbMLsGVKPJas7M0uXY3gvOnsFe GBB13YyK83tkt4Yy75hUJ1QTG4O6dVUpg+WqGwe6VxteXr1dni7zaYx7PEZdnZ3o9gwT J3B311YeIC/MTuN4cT+gveI2Q0EUfVIPH5x83iBibzy4XzQFl8vmrsODn6wcQQmQBzsp 3qR9PjIJJWawk5L1VhQPncDi2wCX6JOCwjXWGPzaIoRLim1bjI65RHXechFFB9PavAlN Z3WlwqSi3anUpqeRnJcWasMHVG3akvo4B0MoD34FWs5STuKVfElUlQAQKwaDrgZI8K19 PzqA== 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 n12-20020a170902d2cc00b0015f45278c31si3686669plc.233.2022.06.16.10.49.25; Thu, 16 Jun 2022 10:49:38 -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 S233899AbiFPRbe (ORCPT + 99 others); Thu, 16 Jun 2022 13:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbiFPRbe (ORCPT ); Thu, 16 Jun 2022 13:31:34 -0400 Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52C4F2AE0E; Thu, 16 Jun 2022 10:31:33 -0700 (PDT) Received: by mail-yb1-f180.google.com with SMTP id t1so3330397ybd.2; Thu, 16 Jun 2022 10:31:33 -0700 (PDT) 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; bh=irnPXDDs9giqZixb3bVvb0MoUIRIDyuwHiNhzsO5+C4=; b=4hK5hLrqQ3HzQqlkrFWj7oCH/NdTeQ1ZX9JZ07dXs3AwQ/gW9hckpNmXOrva4I6M+h /WEC45HQdR8QFbgo9v/yqIGmkrVI6GCUH3mCsDK6X6myYVCKeMBhXWYqE92MFZ2o5b6i xwOBjO6yi5Ew0R6OEn35FKDRuE+HHMoUYUXJANQk7u2MLjPZvcu3uHK/cz+hxIAFimBh wZh/VJYQUSDCYaafxEI7+O3//WPwZyQFqb5nNVcY4r0KFW97ooT2DEsXAEf+WGLKo+s+ sa7RnKoZOllMnKBS/uXgsBbjX9aEzj+lNCwGnDsmC8gMK0s6OzlNv+LGkifBDqt1JhNY skhw== X-Gm-Message-State: AJIora+DimyjG8F+2rpWBxR99sArFv9vZWjwY3PhzXONS5qDTCD9o/+J SA6NNn8JY0Oi+R8KEHKVk1+NWADIdkTxs86atsU= X-Received: by 2002:a25:84ca:0:b0:65c:b5a4:3d0a with SMTP id x10-20020a2584ca000000b0065cb5a43d0amr6539892ybm.137.1655400692553; Thu, 16 Jun 2022 10:31:32 -0700 (PDT) MIME-Version: 1.0 References: <1843211.tdWV9SEqCh@kreacher> <2653857.mvXUDI8C0e@kreacher> <2726954.BEx9A2HvPv@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 16 Jun 2022 19:31:21 +0200 Message-ID: Subject: Re: [PATCH v2 13/16] mfd: core: Use acpi_dev_for_each_child() To: Lee Jones Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , Andy Shevchenko , Mika Westerberg , Hans de Goede , Sakari Ailus Content-Type: text/plain; charset="UTF-8" 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_H2,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 Thu, Jun 16, 2022 at 12:39 AM Lee Jones wrote: > > On Mon, 13 Jun 2022, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > Instead of walking the list of children of an ACPI device directly, > > use acpi_dev_for_each_child() to carry out an action for all of > > the given ACPI device's children. > > > > This will help to eliminate the children list head from struct > > acpi_device as it is redundant and it is used in questionable ways > > in some places (in particular, locking is needed for walking the > > list pointed to it safely, but it is often missing). > > > > Signed-off-by: Rafael J. Wysocki > > Reviewed-by: Andy Shevchenko > > --- > > > > v1 -> v2: > > * Add R-by from Andy. > > > > --- > > drivers/mfd/mfd-core.c | 31 ++++++++++++++++++++++++------- > > 1 file changed, 24 insertions(+), 7 deletions(-) > > Applied, thanks. Thank you! Can you please expose a branch containing it for integration? The last patch in the series depends on this one.