Received: by 10.192.165.148 with SMTP id m20csp578324imm; Wed, 2 May 2018 05:33:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqWvvWfdue35BLfYnW2ikB5ufZBwj0wInI+W8WK2/qs9i0Tzna1A4TcD8Iqo4Rvc0hJ5bdH X-Received: by 2002:a63:7d47:: with SMTP id m7-v6mr9421054pgn.443.1525264404170; Wed, 02 May 2018 05:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525264404; cv=none; d=google.com; s=arc-20160816; b=KYkp/FEVoyc8AAfmKHEixsVfM/k5n8V67zgOXBm7L1xnuykWXEEsxRMo6ykgGEx6MN wt+HnIakR0YLk2KD8Wlops9m7pwcZK4fHPU6CRTk8eQj9SgXkyU6STy9Lx2ULrE5BFOg VXaW8ReG/0AGKvk+zgafXtFYfGnFupIZxD7fWLgVfBQB2jjiCWWm4FchQ5ifoXOJXdZT xnb1qBY104oPRzA8hljr/69n5ZDeSGoYGQbBg9iaA1pj9uTGYygIgxisZllV5Q0Y9F07 5QVC0HwwwNnvE+XLYPj/8LFdE1YNCn4giO/2dDUUqUq7pgzLatPs6J8l6Z2f/8/7sxTA W4uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xjuCVMqjVWcjkStmvKCyAsxTTK6QAWfkK5gmdzjzdz4=; b=XbC3lck8oqa4LTQD4z9WjzLdepmwci+zn4Dxj6FpubXAW/N5eGQ80vxi1fJ1TBxibE uVTEBD+JqEYvwwPp6xt9TAlqLY1/Pft9RkzzoinBhyHsrWWaBqRxmQOjX2wcwmkhwIw5 NLOGu5R4bv6GOTNsW5v8V8/QjvsaI0Xm4ESzY7qEWZ1q3pzLbZ98c3PGJtJ28a4rrp2O 3jXi8gQt6rVt4eg/gP1CF1vimG4OXyFwrgXIjGgEKBD1EfZePc8VZkFftSkiFd8AYyJx b2NxAFMR+YnOggVKy2OswysrjzKl7KiyE0gVqppFZBguXwJ+zTsYpX9xXtJFIi4i3vaV yK+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kbnZod7x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94-v6si11612140plb.475.2018.05.02.05.33.10; Wed, 02 May 2018 05:33:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kbnZod7x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751410AbeEBMbh (ORCPT + 99 others); Wed, 2 May 2018 08:31:37 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:55301 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750930AbeEBMbf (ORCPT ); Wed, 2 May 2018 08:31:35 -0400 Received: by mail-it0-f65.google.com with SMTP id 144-v6so17246916iti.5 for ; Wed, 02 May 2018 05:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xjuCVMqjVWcjkStmvKCyAsxTTK6QAWfkK5gmdzjzdz4=; b=kbnZod7xANKnByqgqSbv0mEZhp1ppf9Ps8uKZsNkpywIyYesh0sQZUPBtfkjNGhjqS lP0BbjZGhy3eFCQjQxDzJ2Ncv9JRTYMozjCPHnF6rfd1Ctx8CqgUBToCxtWSV1J2H4m5 87so9y5wkvQA0g4HXRjNIsrT9v3jAxP6D00Eo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xjuCVMqjVWcjkStmvKCyAsxTTK6QAWfkK5gmdzjzdz4=; b=g6EYYCNACNJy9G/pELlIDdwdVNQin6JMhz1zgSrpz3KKg+082QNZPm6hUTFvI4sSt6 nOSCFH+yj31HDKwcXxxLwlLkiOx7ES7j8/h4CI8tgzL8HPcfllxJsHd2m9LXSZbEgkku UHElWQZDXReorpIo5OMALnyz/4OSuJKOMMYtJnwdoqvLL7JyIcI1fbok/eYah3wq6d4Q eDn2DuJvuSW9MEhRpIqLTasthH7vIpc/c2D/WTK2GXi//UgYLwGMlRBsueLdUnH5uurI l7/ylHLfF6WQdem1zOpCiWTEWSD2wDUzQbi3WGxGFaLkWfDtZPDC7cIRhiKtNWSEZRll /Ihg== X-Gm-Message-State: ALQs6tCdy762BabCVvdd3vve/beK/uvcYSO5FQGKSbVT8QnDb107MV3i 1N7KT+u13z2mBKeLT1hkv9beLMIzFvwsv3CmZ8QfXg== X-Received: by 2002:a24:ed0f:: with SMTP id r15-v6mr4870215ith.86.1525264294531; Wed, 02 May 2018 05:31:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:730a:0:0:0:0:0 with HTTP; Wed, 2 May 2018 05:31:33 -0700 (PDT) In-Reply-To: <1524732790-2234-1-git-send-email-ulf.hansson@linaro.org> References: <1524732790-2234-1-git-send-email-ulf.hansson@linaro.org> From: Ulf Hansson Date: Wed, 2 May 2018 14:31:33 +0200 Message-ID: Subject: Re: [PATCH 00/11] PM / Domains: Fixup error paths with dev_pm_domain_attach() To: "Rafael J . Wysocki" , Greg Kroah-Hartman , Linux PM Cc: Ulf Hansson , Kevin Hilman , Geert Uytterhoeven , Viresh Kumar , Vincent Guittot , Mark Brown , Vinod Koul , Sanyog Kale , Pierre-Louis Bossart , Wolfram Sang , Russell King , Linux Kernel Mailing List , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26 April 2018 at 10:52, Ulf Hansson wrote: > While I was on working adding support for multiple PM domains to genpd, I > stumbled over several problems in the error path related to > dev_pm_domain_attach(). Hence, I decided to fix these problems first, which is > what this series intends to address. > > There first patch is material for stable, as it fixes a real bug in genpd, > while the rest may be considered as improvement of the error paths when devices > fails to be attached to their PM domains. > > I am seeking acks from subsystem maintainers and suggest with funnel the hole > series through Rafael's linux-pm tree, unless there are objections to that of > course. > > Ulf Hansson (11): > PM / Domains: Fix error path during attach in genpd > PM / Domains: Drop comment in genpd about legacy Samsung DT binding > PM / Domains: Drop redundant code in genpd while attaching devices > PM / Domains: Check for existing PM domain in dev_pm_domain_attach() > PM / Domains: Allow a better error handling of dev_pm_domain_attach() > amba: Respect all error codes from dev_pm_domain_attach() > driver core: Respect all error codes from dev_pm_domain_attach() > i2c: Respect all error codes from dev_pm_domain_attach() > mmc: sdio: Respect all error codes from dev_pm_domain_attach() > soundwire: Respect all error codes from dev_pm_domain_attach() > spi: Respect all error codes from dev_pm_domain_attach() > > drivers/acpi/device_pm.c | 9 +++------ > drivers/amba/bus.c | 4 ++-- > drivers/base/platform.c | 17 ++++++++--------- > drivers/base/power/common.c | 10 +++++++--- > drivers/base/power/domain.c | 45 +++++++++++++++----------------------------- > drivers/i2c/i2c-core-base.c | 2 +- > drivers/mmc/core/sdio_bus.c | 2 +- > drivers/soundwire/bus_type.c | 15 +++++++-------- > drivers/spi/spi.c | 11 ++++++----- > include/linux/acpi.h | 2 +- > include/linux/pm_domain.h | 2 +- > 11 files changed, 52 insertions(+), 67 deletions(-) Rafael, I understand if you are busy so this is not a ping. :-) However, perhaps I can simplify by sending you a PR with these!? Kind regards Uffe