Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1054257pxa; Fri, 28 Aug 2020 02:16:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+caaXIRedfwFzjlJZ+SeDeLcDR0Mmi/ZuHHxvnUdhtjBeC+OeSGcQjTzy+RQ8E9uJDPYy X-Received: by 2002:a17:906:2686:: with SMTP id t6mr816602ejc.406.1598606201075; Fri, 28 Aug 2020 02:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598606201; cv=none; d=google.com; s=arc-20160816; b=VtTD+kKQBzL3JWHUc9Ieyvs9S34HaYF8XyTQ0xirdd2ssBuqAuXGR7925vfQotrjx2 x6PIYM81RfieQd6re69eVMn8f0AIvfPNKnbZlDyX4GWOWnbTKjcIhL0sxPzIzVJ95YGl kIGBQWTsY5cohJPI/Rzh0Uk85WxRyCGAsXubn5REeXM23WEKuTaXbXQ8snVUuZj7BmAV havMNSsrrQUt38PJEqgm0Y2DP4FArwamGYYAho7Ei16x8eDKUkZ0E/GQb1xMXBMTJkmF pxCuRrPZnu6SLN1OY/n8jzizWcH9O5ES5TvAFn7HImiPdonmArbde7bt0rf2NWG4l0zs uVbg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Zi8nSPHMdjjrzjQ95uIpbJn6FzlNcwjQhcXkzfbqLfM=; b=sMn6lfPejfGDD1OBYKUeT7Dgl6L3VQy3Sx5XaxCFErTYhYiFay5xep0YL5KdAvFUQl KJI3wEqpFjRf4k8sYm5UhIUbGtOHifoMNwe940f+fR2dfORjbxglMupyMCocBOSqePEC 62k44CfmskLvS6IIlWVkimbe9gEYuQ0Pcc89OAJNRXGmfZ6NSGur7jCG7UpKdWod11cR n63xfF56/m7VqMBYB8uMhFq9N3Z9JN8kp+4fozcYsY1uYGdDmNqcic876uDBgUO9u1Q2 F8LS7H+Wv+xLm43eKnuqV3bFdQBcS0sLQub6YBMVWVMyeaGjXezvr7RtDo6rrsJD+UAs YHAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ARMU3Sm1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b6si260252eja.208.2020.08.28.02.16.18; Fri, 28 Aug 2020 02:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ARMU3Sm1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728861AbgH1JPh (ORCPT + 99 others); Fri, 28 Aug 2020 05:15:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728556AbgH1JPe (ORCPT ); Fri, 28 Aug 2020 05:15:34 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0FEFC061264 for ; Fri, 28 Aug 2020 02:15:33 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id o184so240434vsc.0 for ; Fri, 28 Aug 2020 02:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Zi8nSPHMdjjrzjQ95uIpbJn6FzlNcwjQhcXkzfbqLfM=; b=ARMU3Sm1HfR4wX1HJxIZnHKc/bbvOhVrX9LVg6THxme0OoKcI6xmfOkKHnjYpbteCJ VV1vimGJX0cqcH1aC9HPCwBN15ob8K/0SGVqqHmyitfUWuS7psXryKzORuPO1Smy7lvw 9HkaLdtakfX2KQt/oN4ePv3vSaRCZ2khzWeB+//oPpndINVRlK7rfd76r1ArDlVIbScf DXrPfgo4r4UQWymB/8otAlH9gstuPpeB4VGamPFYq6kL6FwO+F8J4bczClot5TDZaZXA nYvKm+4/wt3p4bQlQrZtheVKR5Zdm3utMCRueQ/QGk1uzppqHCqs09NbvNR6Bohm5Ekz /KoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Zi8nSPHMdjjrzjQ95uIpbJn6FzlNcwjQhcXkzfbqLfM=; b=eVFxzXyeFsiJbiiIPRsTyHIdPDlI5AtTKst7jkxu/ZKsOyP+hTNmY7IpsGvpQYc3t+ abMwQK1B3Aqf4tXBsM4MGaXGu2TAwqulRK4XTxkQdDaq5iD/XrAffTVifs7fbVOp9nI1 szIr/RkYMZBMoGVm2OJv/lyRWexYoJs13y5O01MiiHYKfKU1UXQ+dti0EPtuznP682Cs RY1qu6tqevqNPsTngpm469YORmYhD1JTtg5JiHanAIR1RPopepTxcFs3c4bomMcwaNcQ c9A17Ho6P8fOzHFUp+hjb6wbVABdkT7xfPr3YmVIR6+o9UnRjpujh1RHR6frHbm0VsMk Y6OA== X-Gm-Message-State: AOAM530wcGgzzVFLLNJSFJd2fhZIvdP8RpzGG7PEIOHCjwdJ3jAd8hLY 2LSIXy5Glb3RM5pM+X0xiT7kDUEzxsBL124+/e5C9A== X-Received: by 2002:a67:e218:: with SMTP id g24mr227520vsa.167.1598606133029; Fri, 28 Aug 2020 02:15:33 -0700 (PDT) MIME-Version: 1.0 References: <20200827083330.1.I669bb4dc3d92bd04e9a695f97904797dc8241b79@changeid> In-Reply-To: From: Naresh Kamboju Date: Fri, 28 Aug 2020 14:45:21 +0530 Message-ID: Subject: Re: [PATCH] mmc: sdhci-msm: When dev_pm_opp_of_add_table() returns 0 it's not an error To: Douglas Anderson Cc: Ulf Hansson , Arnd Bergmann , vbadigan@codeaurora.org, Rajendra Nayak , Adrian Hunter , Andy Gross , Bjorn Andersson , Viresh Kumar , linux-arm-msm , open list , linux-mmc 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 Fri, 28 Aug 2020 at 01:57, Naresh Kamboju wrote: > > On Thu, 27 Aug 2020 at 21:03, Douglas Anderson wrote: > > > > The commit d05a7238fe1c ("mmc: sdhci-msm: Unconditionally call > > dev_pm_opp_of_remove_table()") works fine in the case where there is > > no OPP table. However, if there is an OPP table then > > dev_pm_opp_of_add_table() will return 0. Since 0 != -ENODEV then the > > "if (ret != -ENODEV)" will evaluate to true and we'll fall into the > > error case. Oops. > > > > Let's fix this. > > > > Fixes: d05a7238fe1c ("mmc: sdhci-msm: Unconditionally call dev_pm_opp_of_remove_table()") > > Signed-off-by: Douglas Anderson > > Reported-by: Naresh Kamboju > > I will test this patch and report again on this email thread. Sorry this patch did not solve the reported problem. However, I would be testing the V2 set from Viresh Kumar. and report the test results on the other patch set [1]. [1] https://lore.kernel.org/linux-pm/cover.1598594714.git.viresh.kumar@linaro.org