Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3175737pxv; Mon, 12 Jul 2021 11:04:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmEE+NXpZMyEnQh5t0diZFoLt7Ep8eGye8/c/86GPtHUlyvhZW2VtzkFq98XH1Kp2PGAa0 X-Received: by 2002:a92:d9ce:: with SMTP id n14mr72548ilq.29.1626113095616; Mon, 12 Jul 2021 11:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626113095; cv=none; d=google.com; s=arc-20160816; b=fdRNeGjqD+cMsZVyb7vaEbZzHKRjt64WIGaAmk7tGZvNICQRaLtQhgbmx9xWIBIz6K LwNu33wC4SPWwgjuJN7oLxVkAlKlss3mIR5ZVfI8jkcYwGQM1EzhVjZ5YlH3yXc8ftLo I9Wmpl4weZvetYxbQ4QcC5kl08zkYO5ghV/gW3Pk5TXKQ5Cnx8G/173Lv282BL6F5rY5 HMNnOwPi/Bf4KfS3xX6SGnIgnEAKUi81/clCXeRrn1iR4vIrH0/Jy/ImfivNeOwtsCIg f1gqSeflWbThFr9z/Ot7UuE4oaXbB1VnqzRmO4lusDbFt7tq38ZbhclsvF3YeINZxUtl Cd3Q== 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=+h4kwYzj0UGkXu89pdStVxuW8pwppQWvIlxXIXkUMbM=; b=svAN0cbqNAPeOM2xjmDCGyLtZ81Uji0UIvXtr7IRMhfznjhGn3tasR4ZFmMQAzgM25 wDu9NTJP9Vbm7MKATMghml1fpjCC9RkoYTUZSW4a9jy2ninsyFQgulawU3y3Jp+IRyIy X+2+60+BKHaMavvPilVt8DeUcg2e39bp//KCnt8HzLUZP5QGOkJoPUfhGNRd2ceIBXkF 3ItaQYnHMfklxrija+SugC/vVi+8MKK5oNb/O5FMZrTh9chsiweqChq/FeIgmWtNlthu 7/OvsjV3ij8P5HL2zjrQLLA3OcwVC9/rs2P0Tb/kAbDUDkc6irKQp3deq8CtIijaR1Jo 7Jdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J+zXDS2k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si19764772jav.63.2021.07.12.11.04.39; Mon, 12 Jul 2021 11:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J+zXDS2k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233621AbhGLSGf (ORCPT + 99 others); Mon, 12 Jul 2021 14:06:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:35938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbhGLSGe (ORCPT ); Mon, 12 Jul 2021 14:06:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BDFBA60FE9; Mon, 12 Jul 2021 18:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626113026; bh=LkvW1JLK2NT6i1fjYtvOCiy9MWLBrAy006sVsMDFBX4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J+zXDS2kb4sDgxf6GXaH9W0z7o2xp7O64QQyQK4zRqGfQiDIj1LQVD3y1PRbJhq5B dGI0rHKGS2dOSX2dIgMbO/MBak3NCD2yx8CUjuaaltZzGC4WHW6w41XiuHEKx6gDOJ x3mgZsmdmWzBXpw26mQfooxCDqq7AT+shySBlcA8= Date: Mon, 12 Jul 2021 20:03:43 +0200 From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Andy Shevchenko , Linux ACPI , LKML , "Krogerus, Heikki" Subject: Re: [PATCH v1 5/6] software nodes: Split software_node_notify() Message-ID: References: <2780027.e9J7NaK4W3@kreacher> <5627033.MhkbZ0Pkbq@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5627033.MhkbZ0Pkbq@kreacher> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 07:27:12PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Split software_node_notify_remove) out of software_node_notify() > and make device_platform_notify() call the latter on device addition > and the former on device removal. > > While at it, put the headers of the above functions into base.h, > because they don't need to be present in a global header file. > > No intentional functional impact. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/base/base.h | 3 ++ > drivers/base/core.c | 9 +++--- > drivers/base/swnode.c | 61 ++++++++++++++++++++++++----------------------- > include/linux/property.h | 2 - > 4 files changed, 39 insertions(+), 36 deletions(-) > > Index: linux-pm/drivers/base/swnode.c > =================================================================== > --- linux-pm.orig/drivers/base/swnode.c > +++ linux-pm/drivers/base/swnode.c > @@ -11,6 +11,8 @@ > #include > #include > > +#include "base.h" > + > struct swnode { > struct kobject kobj; > struct fwnode_handle fwnode; > @@ -1053,7 +1055,7 @@ int device_add_software_node(struct devi > * balance. > */ > if (device_is_registered(dev)) > - software_node_notify(dev, KOBJ_ADD); > + software_node_notify(dev); Should this now be called "software_node_notify_add()" to match up with: > if (device_is_registered(dev)) > - software_node_notify(dev, KOBJ_REMOVE); > + software_node_notify_remove(dev); The other being called "_remove"? Makes it more obvious to me :) thanks, greg k-h