Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4288234imm; Mon, 14 May 2018 05:33:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrjrhedEHEAIN8VVYpvSq777l7HCZcPn1bNgNH+jwg8kuPYGxpSOG9l6Uu6M76g+SW/RrTh X-Received: by 2002:a63:8049:: with SMTP id j70-v6mr8524644pgd.12.1526301183394; Mon, 14 May 2018 05:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526301183; cv=none; d=google.com; s=arc-20160816; b=xAyfyj5k+pkD3qpJ2E+l67rdVo3pQzN0ZfUsPHjnnBmlnF6J4a3VcbGizHAoylQGgD XAzI4ivek2F+0RL4OHNC5svUPiSCZZVC1WDWBhMd3LNMB8Ju1D1FN6fT+ZuxbGR0bGQZ PI8SSsS1p4IM3AY4T8zriXn9tOjiDCdlHoEnn3Il02zAp1UXaY9M4udUhI5YFOYw7HA5 q6etUQT0zqPbCtKuN/5SD3pfZL3HdVvEWrklqXCLtSsxYpUY1tpMLAcIlhTGO1MuYOtU oJfzZ6qLMll7afpAddhoXvvzO6DeShN6ZsfONOo0wqFZEHdRINW3uC6D+GXG0eqAUWYo sZvQ== 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=ljjtGxm3SZB+MyVVe1cT4zpB7JPhG9uBVO4b9BjWEN0=; b=PocrVZqrkEYhUBat2pub6ahuzaTdKFnrKkwJIXde1wMGv2O/Bb/8kXFStB/3viuyGD 0Zi4Jqa98ORowUkop8/wq0beD/B/BCSfKIgurjg6VikheGpVgvXnxIZqVA7qLyMZCPBB 24SchuOVIvr4OitvSIA+sW6Kr2KrJ2O9NDqINFJeWTpcCy8pVU14Vlm/tLUym/c+J2SF YMhEsVOnOJ/ZxILpxwScNWrnnNHO20VaXwORPS8TNdWRGB72+yVkJJBNNWpSJZal1sRy 7rRFoSiH2ytDfaK8OkYldLpOipgQgFknilQhSHm7go77sVEYRampujWpC5oaFWdgVOZq OEqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KinmAk8T; 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 v4-v6si8931754plo.526.2018.05.14.05.32.48; Mon, 14 May 2018 05:33:03 -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=KinmAk8T; 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 S1753317AbeENMau (ORCPT + 99 others); Mon, 14 May 2018 08:30:50 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:39075 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753052AbeENMat (ORCPT ); Mon, 14 May 2018 08:30:49 -0400 Received: by mail-io0-f194.google.com with SMTP id r9-v6so14969512iod.6 for ; Mon, 14 May 2018 05:30:48 -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=ljjtGxm3SZB+MyVVe1cT4zpB7JPhG9uBVO4b9BjWEN0=; b=KinmAk8TSd1eJv4f5UlAaCKT1OMT2yjRAgZOEU2Z/vOIADrr9IiFBy/da0H7pKhV69 rFObX4tEqtgYP/PV02IkZYyfG7DOwLthNcvlARD67mEqIr1KX+mIJev7LYhPgAxB3PQd d1Ds0H8/eHnfEkhyLRXis4RoSm0s3Pd8Wlerw= 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=ljjtGxm3SZB+MyVVe1cT4zpB7JPhG9uBVO4b9BjWEN0=; b=b8FvYli0MrBtWbCLNz9RcKRG5/KGhhVBcqmbX15bTCyNU8JkJzvDr5+gIklnNfSrrp VkCHr6e78eLqTbKs7dxt6xuexg1vuicOXlkaJla6NNvP89ECiTjbSo8KDjjpO9NCGZlx +SwyT40mqqZq4qUmItBVJ8fRKur2O5lPwKLLtc8VVcBdta/Uw6uNjfhCMgPZ2jH+I93J s8bHpvs0lMKL9zghf7JVoAth+Lz0x4IhR2sdj7I04d93TFDkcIH5CjFWFPZTTGpBHL2Y NC+GD4EYOQU1RwsUUwDoGFBQYm3hVtDyCYYEUXEBfhWg8Jr+ix+EvSRomITf24w7gVHY yGZw== X-Gm-Message-State: ALKqPwdpz/qY3D79CUc3ZTa5F2NpLBYVT+rWUue671H/fTZB8VQgwx+I FKVr83m2q3ZbaYooD3TUx1peiNC+BpKDANycbmM35g== X-Received: by 2002:a6b:84a6:: with SMTP id o38-v6mr10317899ioi.119.1526301048384; Mon, 14 May 2018 05:30:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:7347:0:0:0:0:0 with HTTP; Mon, 14 May 2018 05:30:47 -0700 (PDT) In-Reply-To: References: From: Ulf Hansson Date: Mon, 14 May 2018 14:30:47 +0200 Message-ID: Subject: Re: [FAIL bisect] Sound card probe error To: Sylwester Nawrocki , Krzysztof Kozlowski Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Marek Szyprowski , Mark Brown , Inki Dae , "linux-samsung-soc@vger.kernel.org" , Linux Kernel Mailing List , Linux ARM , Andrzej Hajda 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 14 May 2018 at 14:22, Sylwester Nawrocki wrote: > Hi, > > On 05/14/2018 12:17 PM, Krzysztof Kozlowski wrote: > >> Bisected to: >> 8c123c14bbba4add148536b6d47a9226deda2f7a is the first bad commit >> commit 8c123c14bbba4add148536b6d47a9226deda2f7a >> Author: Ulf Hansson >> Date: Thu Apr 26 10:53:06 2018 +0200 >> >> driver core: Respect all error codes from dev_pm_domain_attach() >> >> The limitation of being able to check only for -EPROBE_DEFER from >> dev_pm_domain_attach() has been removed. Hence let's respect all error >> codes and bail out accordingly. >> >> Signed-off-by: Ulf Hansson >> Acked-by: Greg Kroah-Hartman >> Signed-off-by: Rafael J. Wysocki > > The DRM driver creates the HDMI codec but its registration fails, due > to some missing clocks. The clock are missing because the exynos5-subcmu > driver probing fails. > > [ 0.678578] exynos5-subcmu: probe of GSC failed with error -17 > [ 0.679250] exynos5-subcmu: probe of MFC failed with error -17 > [ 0.679992] exynos5-subcmu: probe of DISP failed with error -17 > > The exynos5-subcmu driver before registering platform device makes > of_genpd_add_device() call, so in platform_drv_probe() dev_pm_domain_attach() > call will fail, as dev->pm_domain is already set. Previously the error > was masked by code removed in the above commit and platform_drv_probe() > was could complete successfully. Thanks for providing this information! I was about to tell that I overlooked the fact that there is more than one way to assign PM domain pointers to devices. To fix the problem, dev_pm_domain_attach() should return 0, not -EEXIST when it finds and existing PM domain pointer. Does the below patch fix the problem? From: Ulf Hansson Date: Mon, 14 May 2018 14:26:16 +0200 Subject: [PATCH] PM / Domains: Don't return -EEXIST at attach when PM domain exists As dev_pm_domain_attach() isn't the only way to assign PM domain pointers to devices, clearly we must allow a device to have the pointer already being assigned. For this reason, return 0 instead of -EEXIST. Reported-by: Krzysztof Kozlowski Signed-off-by: Ulf Hansson --- drivers/base/power/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c index 5e4b481..390868c 100644 --- a/drivers/base/power/common.c +++ b/drivers/base/power/common.c @@ -106,7 +106,7 @@ int dev_pm_domain_attach(struct device *dev, bool power_on) int ret; if (dev->pm_domain) - return -EEXIST; + return 0; ret = acpi_dev_pm_attach(dev, power_on); if (!ret) -- 2.7.4