Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp336645pxx; Thu, 29 Oct 2020 04:01:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAXGmndFxphccspwtX2P/PL5z08D7kwTX/XHhjHeuiVWiCl5blaZtMHlm8xeubRQTU1qmY X-Received: by 2002:a50:b023:: with SMTP id i32mr3140635edd.377.1603969288914; Thu, 29 Oct 2020 04:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603969288; cv=none; d=google.com; s=arc-20160816; b=ZDd9Gneg04+olgoVua6P5pY8lfthIYN5nNeRYk2OVT4n3Dw1UWa0OmnZuhw0svcCsM GsWDAuh3UdMSYr5fRdQ8SDDLainxj8CJ+z6L3IHZW00nPEzx1pUMQqEsHZzjy3KKoc1F l/kHM8XcNzrdxUIE5AvPxflmQy0g4IIwmbfXVXmJAqtzh2g89+r/uW+t0BeDkDBh3bZn t2zJ+MMwrh7S/+tDHeuEYSibcW9vmBKPe7GjRexGOBHY2b+kPNl5dNQ7iiqgcM48kwcZ N//leKZdTs7X1WN8IlJbTP3kDQ1wJ6FY8TydVyabypMCReD5LOuqZotGighTt216JLDk XTgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=lCxs31cYOqL42ngFjs5Uu4kOhwBcY6clujhoACCK+p0=; b=RO49OJJvA4/ydmjeMnIX9whPd4pUDwGb/4xKgQYXM9UZ4U1doPWH5P84DNKp71Djem LQ/Xcs+6RoqvVRfSuKBtVJYd6K/ClvJPfaP69KdY8vN53ZTmO4sEr322DWpjg4aG3/4P i77ZbX8uDHAQ1Wf8Pqok2sBfDTytXikdcANoMbDxqQteDzD+5NeR8GbKYpjKMp7bREoN ycL3vUCcHy80BKlncSh6HEkFKi747eLyjFRzyuTU3F+S6YuLqXTZrKB66aBcY4RRrScW bJIhPEbMQwG58djiIc/JQZX//Eol6gvbMJEXvgyhXnwCFVOP5odT/DNkk2k+4YOI1Pm2 sVHA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si1764528edi.606.2020.10.29.04.01.04; Thu, 29 Oct 2020 04:01:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726809AbgJ2K7p (ORCPT + 99 others); Thu, 29 Oct 2020 06:59:45 -0400 Received: from mga01.intel.com ([192.55.52.88]:56275 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725923AbgJ2K7o (ORCPT ); Thu, 29 Oct 2020 06:59:44 -0400 IronPort-SDR: E4xt9Ni6ptl6/Fw52KmLDLE7MSrQ0ZrGuQqTmYrnTwuO7yB3oDA/JP1x28c1ogJhGsdYCsLR3Y 32ty1PVroXAw== X-IronPort-AV: E=McAfee;i="6000,8403,9788"; a="186197266" X-IronPort-AV: E=Sophos;i="5.77,429,1596524400"; d="scan'208";a="186197266" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2020 03:59:44 -0700 IronPort-SDR: NRImXo4hSiLjvt8xW/L3jxcYhKoweIkjxk7WTeZQjhVrvlCGTu25TbFGlDu9SeWxgt6rm5B6vC iaTeFFZSb7RA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,429,1596524400"; d="scan'208";a="425017585" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 29 Oct 2020 03:59:42 -0700 From: Heikki Krogerus To: "Rafael J. Wysocki" Cc: Felipe Balbi , Andy Shevchenko , Sakari Ailus , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCHv2 0/3] PM operations for software nodes Date: Thu, 29 Oct 2020 13:59:38 +0300 Message-Id: <20201029105941.63410-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is the second version of this series. Rafael pointed out in v1 that I was not handling bus PM ops correctly. He also requested that I put a comment to the code explaining things a little. The original v1 series: https://lore.kernel.org/linux-acpi/20200825135951.53340-1-heikki.krogerus@linux.intel.com/ Heikki Krogerus (3): software node: Power management operations for software nodes software node: Introduce device_add_software_node() usb: dwc3: pci: Register a software node for the dwc3 platform device drivers/base/power/common.c | 8 +- drivers/base/swnode.c | 738 +++++++++++++++++++++++++++++++++++- drivers/usb/dwc3/dwc3-pci.c | 175 +++++---- include/linux/property.h | 13 + 4 files changed, 835 insertions(+), 99 deletions(-) -- 2.28.0