Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5800705iog; Thu, 23 Jun 2022 05:46:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tV/OgusL26Cgdw70KCEJ8qwztLKeSf8flV+VIAj/eMYr9xBAzbbFXm3tAZ+0Gnah5SaZAi X-Received: by 2002:a63:3817:0:b0:40c:c766:c935 with SMTP id f23-20020a633817000000b0040cc766c935mr7392355pga.481.1655988372654; Thu, 23 Jun 2022 05:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655988372; cv=none; d=google.com; s=arc-20160816; b=Ad/5XgPhg80cRAwosnxYiItP3z1wZZ5Rsny6QzXRwifeVFO9y3L4FHonC+9SDwKITz P8q3hwCGvCeZrybS2syXlPS3y5t0fWudKRzqGd8I0z7gazAnWVjpsIHgAi/KsNAYX7HF ytJhCp/XUT5OtssyvERwsuXiaUVGpbi+ffFvkCEjk1DVBMKoiHkpzReE6gz3noQ5ZKPx 0EntTPpmpfCrJjXUafOdVP02eC39U/1qw5tb5sAhYgpRz4ZWbP5aWt6Kb3rihaKD16nv PiECERozTx0ZjLzWOaBNur5zdx4n0NvtjhCILAFASpEJPKDuH/XENbKnZUJ7aCCI/sp0 CZcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EOv7J2FvuEoQAHQgcpM6XshXAHIOZEBDK2rsKH8o3iM=; b=kK4SKlx0CoyiCjwMeB8icYEKh/2gX+PlG10JP2HAQ4rGgSK0yJSVRrGnmQV53FCat2 F4dJikS9hBDyE6e6qgrEFJOI00AnC6ZBCXsuBVCcSdIbUHKR9qXzNk3HWwHRv+Tqu5wH LZHmrAo5ssdfr0du8idPrwWrRvwNmL+kH29jnWa4t1MQpbd4PNL9NeL9hb0vT+N5bpXx aamhFko3aypkAOv1+daHhv/wPRqz/TsK1rN8MHqb3VBiwc7B/xLlRsf07Aq1QgoEeENG s5UhiB6PNgi68eD4OFeSq8Qrh5SQJLO/vpMuUJ+kmT6lMz3paAhxo6JfmNEBUzTr9Kq3 p6aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mP4e/YxZ"; 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 n16-20020a170902e55000b0016a5aecbefbsi2289584plf.324.2022.06.23.05.46.00; Thu, 23 Jun 2022 05:46:12 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mP4e/YxZ"; 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 S231703AbiFWMlg (ORCPT + 99 others); Thu, 23 Jun 2022 08:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231748AbiFWMlf (ORCPT ); Thu, 23 Jun 2022 08:41:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C038A49F19; Thu, 23 Jun 2022 05:41:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5902A61C1A; Thu, 23 Jun 2022 12:41:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC524C3411B; Thu, 23 Jun 2022 12:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655988091; bh=VEKQqqv0GJJfssR5O+DbzVMdKUZxwolWDybsziOqZNo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mP4e/YxZ8SvnRHgTYBotpx2q2gyxVmuP+Dj7EWGigubb6+JnPDxEUSwo4E7BK3lZo PPrzQlZ3R3kE+AWDrE+4ZzxOBWWqMqBEact1Pe21v5Kpj6hfICQSn4hK+CWKat3Zr3 4xndA33E9xINreJ8aMNJamSjLFSPHEwJiGhpBYipFfIyJtqatN1jcbyl4mEj69QsOd Z/CvQWEZ1gpQF+B+YLMkYPS49aj5cnaVJ4aKeLjdEpOTKLsjE3CrXtVJ139RFmYGsb TaRkoyVZ3EN3AMgH41R/CxZrnMbHBJvSNh7g+WoHEyKXZCVxB2LSx2QknwEjQNVvY8 PV2nSHSQblf5w== Date: Thu, 23 Jun 2022 18:11:27 +0530 From: Vinod Koul To: "Rafael J. Wysocki" 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..." Subject: Re: [PATCH v2 14/16] soundwire: Use acpi_dev_for_each_child() Message-ID: References: <1843211.tdWV9SEqCh@kreacher> <2653857.mvXUDI8C0e@kreacher> <9017824.rMLUfLXkoz@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 23-06-22, 14:29, Rafael J. Wysocki wrote: > 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. Aha, I checked the symbol exists and my test build passed! > > Is this not a problem? Yes indeed, so can you give a tag for that and or would you like to taje this thru ACPI tree, in that case Acked-By: Vinod Koul BR -- ~Vinod