Received: by 10.192.165.148 with SMTP id m20csp1770385imm; Thu, 26 Apr 2018 01:54:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/kY4tdljMc1oCCg9kUOu71aNYbAkmOCXZCf1m8Urea+gUCwV5jfyW8yxeGxVM05PkD/Jl5 X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr33148990pla.328.1524732894311; Thu, 26 Apr 2018 01:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524732894; cv=none; d=google.com; s=arc-20160816; b=D2woOCSoJymARJMXo4XZJkdGR0MlBKSJWKmCvxOxxOSxy3gribL3Bts/rx0RC2vT7a pqXB3KtJXDRxKmN1sBzQSpvoVNFuFtIb1tSSbgiI0lv1hYeVF29pa2HX+XPTTbh06/pL rWMQJf9jC+b6w07yFHz1BjX3eKc64lPmvontQWwjlarDYhgQumZNg0rGGFLlpJXRYdbL 1CGqnAT+OQm1TVj3pXn2UIxxvR7/myJam9g1iBkiDmvwCMFP6EWnqgXNbnqLng/hNGbI e0JboT5xONWWUKaFcjxXQGZ5a7jJt1Qb1rvMQZIj3g/L+gMQlC6ozMuBkl4wvxOdCZ9X Jcxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=BKyv6xwF8Xm1RgBOJm9c8M4cgM43KKWLhCuI4xFY+ho=; b=dA46Ad2RWAWlbJjvbfSIZ2ve5l+Te2VR4O9/GNkrRceBptYUQ/upwQnVho9684FK7L JCawZqRVBpUbF5BiHNlBWkwagJ9tYXKZ77J8yn++nkCGnv7QkRo4kZKalJkituOr2AWn Vq8mGvJM2wASsmFmm/GS77uQPX5vUrMAissvz5or7osIG1/5VHGc8xb8IMrwuHwl5ick XeJzoEqVyahO4Hb7ncfnruEap9Nf9d8m5ysUTTHRL14st1zpwBT3rKZmuqr/S49B3+hU KD0cjp5dK4LrIUPKDE4FBWyT79WR2laXPWn/RvBlKji+XJ+mFfEyQg5Dga0/bHM0QuAh 6OTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h3H6rFI2; 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 a36-v6si18644983pla.73.2018.04.26.01.54.40; Thu, 26 Apr 2018 01:54:54 -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=h3H6rFI2; 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 S1754730AbeDZIxW (ORCPT + 99 others); Thu, 26 Apr 2018 04:53:22 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:33147 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754450AbeDZIxQ (ORCPT ); Thu, 26 Apr 2018 04:53:16 -0400 Received: by mail-lf0-f66.google.com with SMTP id m18-v6so12231866lfb.0 for ; Thu, 26 Apr 2018 01:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=BKyv6xwF8Xm1RgBOJm9c8M4cgM43KKWLhCuI4xFY+ho=; b=h3H6rFI2s177eeJKi9yBr6LgYt3lXnJgC115vB/fU8NSjBsEOM47CBvY9ctSXkSTuv PnJT7YT3LTA44UfK1HqBWphG6hHeFeWA5E2PefFPErVaqT+0+m7AxDyx0CtNO3d5ryNZ PokKyhaAH4JpGc8kNRBg9uCed1b0kyl+rWPZ8= 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=BKyv6xwF8Xm1RgBOJm9c8M4cgM43KKWLhCuI4xFY+ho=; b=i93R5LEATRI70H5k0TkkatulktZsCP1I4LkL9E1xZMUzDVXQP8Y4ZlHbNvLMW7KJNZ KbfdU7/WmMYE2/vznzNmT7rNZINla03nZbIxQl9hxC3r0r7k83mu2JI3wumV+gnXG+zT PpUFXVAi8OTYW35GDwSXPXhZHSV6U5Ubk/bnBGykepD2IbWIW+ulkjngJWRZ2oZxQmu5 SqEA4pRbHu7+4RxbvzKA54tRiuFJZjD2RLIu7+IUQHcddX2RCF39fXjtWArtIZqvTzyA H5TvD17kTx4/0kzkk6KTNgrrOovBHMkSsqBLAXFwxOeRNQrsXMWypSJMWH4kdAC3Mn5p WSuw== X-Gm-Message-State: ALQs6tBsk3dILHLpcIFRKalSQ/QxioIBaujwsoXbp8VXWH7c/dtZtOyV SiKtcvlDnfmTpTR0hUWIcKlxVQ== X-Received: by 2002:a19:5791:: with SMTP id l139-v6mr13900246lfb.46.1524732794899; Thu, 26 Apr 2018 01:53:14 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id u83-v6sm681097lff.65.2018.04.26.01.53.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Apr 2018 01:53:14 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Greg Kroah-Hartman , linux-pm@vger.kernel.org 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@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 00/11] PM / Domains: Fixup error paths with dev_pm_domain_attach() Date: Thu, 26 Apr 2018 10:52:59 +0200 Message-Id: <1524732790-2234-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4