From patchwork Thu Apr 25 09:04:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 162830 Delivered-To: patches@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1671645jan; Thu, 25 Apr 2019 02:04:29 -0700 (PDT) X-Received: by 2002:ac2:4567:: with SMTP id k7mr20677591lfm.166.1556183069024; Thu, 25 Apr 2019 02:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556183069; cv=none; d=google.com; s=arc-20160816; b=Y9mke5RHDcvF8R46y65ETSVIigwP9aZiMhTcg/+QLdfW+cxHdymGb4WBm1rDpCz4QO O877Zk9Vib3hp5PCoM95PCD2+SdpfD6D6DJhaKyW5s0pOdVBN5sU4UfUIdtFTRLuFO1T XX/4q8muRwsuMs6siaFIhB/PamsuBPc+ppdUuKKt6U+xy1juqX0IED0n9qB1Z8scpj1m d4sAlJZVm+75o92TLK7kDqkuPFWHIqGBWL6O62CJqNmdhwJOL7FjJFnEZLXYj69O+Y7H wsY82ue6vnkuYGyXObuXcbn6HNMVmKS0I4TOER/w7vO90l/zHooO8TrIOW7Hjdtkts6k 4lxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=SKU8TqyaZdotevtfnq5N1kqyp924DnkQ1SW3hKFZumc=; b=t/l6LhouacKz2MJdoQaCgrn4gPbPUU0rBzkvo0yVi/dn9QPRI1LyPV35JsfrU5Plin iVFhqhaZX2XtrhMA/c9usCByesAWCnolTYF6u8tXNooj4CO+gR/20EAe83KcS83VDVYc MPQMKp9U8450XRNYolW81yC8gtUDgQEPMYUzCdymQrwjtZY7PuYBMz4hjREQf1ZMChgq s/m1X9zh/rem16Jq6UIH4wXCrTw2vPXPn4iLg2wNwcVhUrmr6TJJytZqCduBvWdQTqu8 ZfpOVgu1QnaUa0VQz9qbh/weuqG8oweIswodFUH4bX6sWps8aYfzmryHWpD0ceCjtpiv t5jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRl2tksR; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id a1sor2804291ljj.22.2019.04.25.02.04.28 for (Google Transport Security); Thu, 25 Apr 2019 02:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRl2tksR; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SKU8TqyaZdotevtfnq5N1kqyp924DnkQ1SW3hKFZumc=; b=WRl2tksRLvo+9Es+YS3ubYSIJu3Px06jrBvjXouQ97+kTd0fYCwU6kGQ6B9uN2DBEs pIr+5STewigGPrD2YQTEQw7neS26wEZSsxMDfr/Z9lVnev7mbQKGttmRrvETFWe7vw8T igcqU7K78oNqHJwc3PFnYx/MGQaBBudDM47MVDuikyCHmdtgV/Lg6EujrAXmV3sp4X98 oG6/EHUlzDoEll5pStL1xFoThDf7sx+NKIrmeM5mz59qIJoVgQWaCf7MoR8geJxrpnEO F4HBJoX50SdRTPZO5wZej7GdpKGwuH9JivQjMY1Tx/qDTFJHWBZ3Jj4AWFFOsdQaYKWX m3CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SKU8TqyaZdotevtfnq5N1kqyp924DnkQ1SW3hKFZumc=; b=M2pqDk0zUTvG6LteVRTVfZeA1S/OpUPT2EaLzHa+JA9iCS9Bk9Wa0Mbd+Y8VLX/mqj DRzy1JuRURgevN2FmMK8vGCo1wyH/KWtrL8VlWO2UdGnX7sDzxs7BoptwJwamcBmpRfK yR/RJ5WnskLMjicwEVozvT5nm0DU8GEnuhjDUIKtE6nb01sXOgrLfgJmQOW8hWEyLqu9 j92IdrM9Zvvd7dBczW3VmpleTUMKB17YadP3U+Y3Z6wwxxfG+gTUJ/EG8KDGSa9nvVLv G3v/e6H/BWX47IZ9dy23dPl1KExMxuZd26eJp6rzLsjN6WhunfdfmA2M8HuFXm/Q12VT 3KcA== X-Gm-Message-State: APjAAAWXxiTwHIazTaQGeRQt6QwAnA86JJApUBMDJdCFPiqJky/X8qLW bwGpaJWlOkKF++JzKgNG+gepuujd X-Google-Smtp-Source: APXvYqxhTPV7EXwsv+3UZV5aPgs8DT/JmHv4c3QEWbbRzS9IMl/A1vqhc/RmZpJ3K83Rm5t0KFbOnQ== X-Received: by 2002:a2e:7216:: with SMTP id n22mr6648786ljc.172.1556183068544; Thu, 25 Apr 2019 02:04:28 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id v26sm4517353lja.60.2019.04.25.02.04.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 02:04:27 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Daniel Lezcano , "Raju P . L . S . S . S . N" , Stephen Boyd , Tony Lindgren , Kevin Hilman , Lina Iyer , Rajendra Nayak , Viresh Kumar , Niklas Cassel , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/4] PM / Domains: Improve support for CPUs in genpd Date: Thu, 25 Apr 2019 11:04:09 +0200 Message-Id: <20190425090413.10700-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 Recently genpd was extended to cope with devices belonging to CPUs. However, attaching CPU devices via genpd_dev_pm_attach_by_id|name() doesn't work, because of the virtual device that genpd allocates in this path. In this series, this limitation is addressed, together with a few other related fixes/cleanups. Ulf Hansson (4): PM / Domains: Use the base device for driver_deferred_probe_check_state() PM / Domains: Drop unused in-parameter to some genpd functions PM / Domains: Search for the CPU device outside the genpd lock PM / Domains: Allow to attach a CPU via genpd_dev_pm_attach_by_id|name() drivers/base/power/domain.c | 73 ++++++++++++++++++------------------- include/linux/pm_domain.h | 1 + 2 files changed, 36 insertions(+), 38 deletions(-) -- 2.17.1