Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5793999iog; Thu, 23 Jun 2022 05:37:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tF8o8GGGqOG9t5yB0o70kygHLBFuvhpUYmdeNeTesIa06hRVbOw7nbz5N/RvzRZ66aWTeK X-Received: by 2002:a05:6402:120f:b0:435:6e96:69a with SMTP id c15-20020a056402120f00b004356e96069amr10248648edw.363.1655987837201; Thu, 23 Jun 2022 05:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655987837; cv=none; d=google.com; s=arc-20160816; b=dTRPaDtqxxLF5gAFuBSTHgziD986etVZCOAZMJnsxScB87Wxu13QIHRIhkpXcWuM6L cfDnrxyaiovA7qBPvzBpqlMWP+Tv2fq3OpEhfItr85PtBxnGfoEzIidEbdAbM5p13JU8 DFcHSKeIZfxudShIVoZ1Beiah1u4matKua5HuWF5wahp8VxBubheQa2FLqOvwQ0c4dro ZsZioAzIy5jpDRrHuDljEkcgx5aMHgvTi/O2Xn7gUkz1D/fBzHJgsiG2lXuZ+mDfxuAY 9nkb8GQ2eFSxIDLt/D5TEl30SfedJC8sdoU9uNyD6/NMgD+k7ghDe+qPAm+NjZ2mW1mF jYOg== 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=kzFX9uPlDUEYsAhV34ZtAjxOc+U6+JKZhTmu1w/6a+Y=; b=kDPNeDXGB5KH/ZxVoPlU9WcW4MTw3JS/8xMIQRLmq38OlRfc6CVlddQvqaPF1Nn2Ik YMvHxXI+ADC8oDxt/uz+oV2ug7fwDyg4QFq+GNvjR5Im+vRv8GJ5i9tTBcwweNUJXY12 i7dTD1ixCxcG5qlr4qS/gQXYJRslYiN9buI7ugnkywk9Ur/CcJQDyDtqCaQJgciIKlSp YJnuslORwsuzDg45pQQSbhZy/3YguCk3rNuZcvBGMn32xhQeLrJ6zCtnGP+ALyoLgrEE j5lfdAqoWGw8ULX4BSPVFK45YeycgETHaltOe7zCykAsNBnjDbj91yaK1vVzxdI+qHE7 yJfg== 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 h25-20020a50cdd9000000b004357897e3b8si15981990edj.175.2022.06.23.05.36.52; Thu, 23 Jun 2022 05:37:17 -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 S231423AbiFWM34 (ORCPT + 99 others); Thu, 23 Jun 2022 08:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbiFWM3x (ORCPT ); Thu, 23 Jun 2022 08:29:53 -0400 Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7D6A40E4A; Thu, 23 Jun 2022 05:29:52 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id v81so35593126ybe.0; Thu, 23 Jun 2022 05:29:52 -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=kzFX9uPlDUEYsAhV34ZtAjxOc+U6+JKZhTmu1w/6a+Y=; b=OcshZDIIsOlStcxW+OxcdhKdeTQNfAzbaDalVsQ8gfbDQ1YMlKhWR2IAFm5jzqMkuy jeNtsnTvpVN/qZODtV2z4y1cA5OTVsXkJrdF+PIYZ781No8tKJQsgMh86+Buqaq5p49E Es8S6fcWRZGH57KkakOqp5Z+Oq+ac+N1XfDNptbSgGZb369tALXPnKXD5eOXrky2AdqE h9ZG2Xr8s6RmGuni2Ra2RhE/E6uc9HA6FdVb3D3AJNWnutobWE1HUljv5g7N9VFkZISA 4ELDcvJ4NnDm9jNwA5Kkp2coOggr16xbYzW2tX1rNVjAHlHS7YL3MspDIYAj6ad2rrbi 2a2w== X-Gm-Message-State: AJIora/HN4btXhGbjGstTQHodFa/82BtDRLxmLTXFT94Qa2DHOZHCTxz 9FrVVLotNL6q9kIs7h0o997O2AsG/vaW6OeFBDM9g+dKWFY= X-Received: by 2002:a25:d841:0:b0:668:ab2f:7b01 with SMTP id p62-20020a25d841000000b00668ab2f7b01mr9116719ybg.482.1655987391906; Thu, 23 Jun 2022 05:29:51 -0700 (PDT) MIME-Version: 1.0 References: <1843211.tdWV9SEqCh@kreacher> <2653857.mvXUDI8C0e@kreacher> <9017824.rMLUfLXkoz@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 23 Jun 2022 14:29:41 +0200 Message-ID: Subject: Re: [PATCH v2 14/16] soundwire: Use acpi_dev_for_each_child() To: Vinod Koul Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , Andy Shevchenko , Mika Westerberg , Hans de Goede , Sakari Ailus , Bard Liao , Pierre-Louis Bossart , Sanyog Kale , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." 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 23, 2022 at 10:10 AM Vinod Koul wrote: > > On 13-06-22, 20:35, 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). > > Applied, thanks Thanks, but the export of acpi_dev_for_each_child() is being added by one of the previous patches in the series, so this one will not compile without the rest of the series in the modular case. Is this not a problem?