Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4440472imm; Mon, 14 May 2018 07:36:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqOrmwIF14fiZmw6UGVMXH8W7PmvGVN3uTRnpHiDbt+fElAgPNScmXhU13PDoy6SuFdDzsB X-Received: by 2002:a62:89db:: with SMTP id n88-v6mr10755861pfk.11.1526308601492; Mon, 14 May 2018 07:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526308601; cv=none; d=google.com; s=arc-20160816; b=mt0v5bBKc20v6By6FIdUCBPtpHA8VNA/gb/Cyrl6c7tRLmUTbCRTBam/laMJMPHsYZ EFixQmyPqpzuGde26QMUCzDBTd0negEP7SFk778PZwfNZkga698CV4tbQt3IEbbs9yop 4M/iFkasLO1ZO8d9QOyMj5OXFXtFykhVwp2qgE30qx+RRfdHPLNFf7JxcjV57/dYCP7V nNZliD8VhJNe+FiDoiynemUA+GF+93Zhn3P9VJFh7gjmc3QQ4BAPC6MghHbdmqs17HcC 4vZibKNk4Vj348RQADr3saXvhHzdZsgMd94Lwpw8u5hYb1i23wochbh+P0qSTjw4aIZF Refw== 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=zLI6CkfNIwXpOre0tjLJaG68qltRG/XfRp47Oq3uJpA=; b=Vrn5TUagnWWKjO8KFPFLFMA2s5facCLwJbT3v72Ll9ZjavNDks59PjebZ160rlFBtE Z1r9L8qxYkox+2uihFKMBGc4kHlIurtP8MwoKY8rrya1V+6CNczuJkJ2nGjqlivk+8zu p+HU9xepRfc1/a8zdAsGRE9HKilNbG7paxyEhA4WAAyt3tbYUyfgLDx1Ga4lryunKdlH fa6mGP3Y08JHcGzWpNd2pGTg359PJ70+YFAVdxZXpx9VaL+03YSBGe2OUrbO7jgZZuDY f5OvE1qxQsyJx+79vpJy5779NhnpusaKM2S4scUllRABBZLsMpv8J1RVHQnYMzm3N/Jr Gv2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jQ0JJQ5V; 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 v8-v6si9363527plo.306.2018.05.14.07.36.12; Mon, 14 May 2018 07:36:41 -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=jQ0JJQ5V; 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 S932407AbeENOfz (ORCPT + 99 others); Mon, 14 May 2018 10:35:55 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:40912 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932202AbeENOfx (ORCPT ); Mon, 14 May 2018 10:35:53 -0400 Received: by mail-it0-f67.google.com with SMTP id j186-v6so11298837ita.5 for ; Mon, 14 May 2018 07:35:53 -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=zLI6CkfNIwXpOre0tjLJaG68qltRG/XfRp47Oq3uJpA=; b=jQ0JJQ5V2jzU7VKVN9fOFB0V6QNDpCed5G8dZSppCnArjlEO/uqK5R4FC8srkHKzmG TaDPkYo0sYN04QQnVQnM7HH19+fOZz7CNqizb5BOiBxEUKu+EEdMDL1tuI4c/fuc7Gh+ xpRg+YDqm1REDuqe9j1/fgH8yUPeomiTX2U7w= 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=zLI6CkfNIwXpOre0tjLJaG68qltRG/XfRp47Oq3uJpA=; b=Gr91fPTH8zO6SqEigUis8aS3po8JmbYeFtVommqz3jjRgxY0FL41ARXqMWnm74JSTG 9w+cNFrv6Fz59G8+i8Ue1JZoDcui6ZaK/kt3sE+tKZqEepRn6AfyFFkfnpRgqjAeCUj1 wmv27Xksb8gu58KSQHiV88/zrbxChsXexUQ+pWqLaexk6bIpbWXvXrvDpDP0sFrgkMST Tieikg938regOX6gcVpszQnslJRb/+xlwa6HFNLG7+kbHxO3U0HwkX7lFVhpMu3EOsdh O7UUb9Dc3Tvb1QkHCtQSJ4YFp4U8yRNMxAyypJIhtP4smKUGkA7BmLqDLVuRyvitLbZ0 kzbg== X-Gm-Message-State: ALKqPwdL6k4kcxxvywr6hXA89fHrySZZZ5NJtrINhzFCIq2OtDSEjqo5 VSDnfosxEMngJ3VcfkPE9+o2+kX4vjJgqhabM0yJAA== X-Received: by 2002:a24:694b:: with SMTP id e72-v6mr10233287itc.38.1526308553091; Mon, 14 May 2018 07:35:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:7347:0:0:0:0:0 with HTTP; Mon, 14 May 2018 07:35:52 -0700 (PDT) In-Reply-To: References: From: Ulf Hansson Date: Mon, 14 May 2018 16:35:52 +0200 Message-ID: Subject: Re: [FAIL bisect] Sound card probe error To: Krzysztof Kozlowski , "Rafael J. Wysocki" Cc: Sylwester Nawrocki , 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:43, Krzysztof Kozlowski wrote: > On Mon, May 14, 2018 at 2:30 PM, Ulf Hansson wrote: >> 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(-) > > > Yes, this fixes the issue. > Tested-by: Krzysztof Kozlowski Thanks for the confirmation! I am going to re-post the patch to include linux-pm, then let's see how Rafael wants to handle it. Kind regards Uffe