Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1258249pxa; Fri, 28 Aug 2020 07:59:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuwaRL0KBJL3Xx5kPeklEJ0Ryg20pn9YfXzsh52e9WpLYrCLuLw1CtDeh/783J7eOTwPxy X-Received: by 2002:a17:906:6608:: with SMTP id b8mr2164325ejp.317.1598626778556; Fri, 28 Aug 2020 07:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598626778; cv=none; d=google.com; s=arc-20160816; b=Iao92p5IHZ7RpWgFM+PP9sjoN+cJapomm3/POhbHxXER0Ty+hE35eyrqyajjuvhIHe eCWxvcCnBH5Z1J6hsEkYjo5Qnfcq33mjz6WBrHb+VGPRZ9oGnpmSUevZCfaS6JkdrBPq 0WjcogmdGXasNT5dMJd4rIODoNesAxnyxhkCkdsWhFn6qM/vN6nrSlySDbaHqVAx2Jrc La9y2YgsvhDRxageddAcdb92HqYnLNTRhBFLIC+jjFmwFbezQ+1i/wNJMjcrPXu6E1m8 7mDTRinPqBrz5lyj6/8lkDsvOgg9jjIoDuUB98r/prYAjo/K3oNKkw1NqjzD29TjRNz5 +MTg== 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=gTaoSyHl3HqBsHrY5A4LuCqff0xNJw9//Kl7Y7tQ/M4=; b=ZYl9AnMhslYlH4S5tDv3apc6K+N7euf2WgCrJaLCBKDnhqE023SKe/1Mgi10IGVl6W ZDuGAfky/YawNYQKCiswPnAEOCENhY2PT2QJP09JXGK/FZM5hRvPQT40HGHzj/zypobG X90NFIfSY5+/p4CJFGljYGa3w8Rh+rpQylKzg+qSONc/JjGYCvT55YrNKiFqgxmdIdd2 JyYqZB6ewk/5qrBmteWfH31qHFojNYH6qjDgBnpVZ24q1aKxfLYFKp49TeZc/RSuWxJ8 luc+yiD/p+L4lrcZaiowGxWDeutXLvxCDOLcVylCOiP39IbUR2sGQGOX/XS1QbN5hPq8 /9pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eyWU4USi; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si797657ejp.201.2020.08.28.07.59.15; Fri, 28 Aug 2020 07:59:38 -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=@chromium.org header.s=google header.b=eyWU4USi; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbgH1O4T (ORCPT + 99 others); Fri, 28 Aug 2020 10:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbgH1O4R (ORCPT ); Fri, 28 Aug 2020 10:56:17 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1A6DC06121B for ; Fri, 28 Aug 2020 07:56:17 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id y3so724244vsn.1 for ; Fri, 28 Aug 2020 07:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gTaoSyHl3HqBsHrY5A4LuCqff0xNJw9//Kl7Y7tQ/M4=; b=eyWU4USiiQHhauh+FMao8Op72UXp1qitc0E2GZbWptF8sa6nAWnBPCn9xxOOXhSXB5 aPXkX6rwzK6pL7JZvxRyZskSKLenOvFqESRRJx3DmaPc79bPObCOFBVPDxuCJ1FheAhQ vrB2C/VgFTyn1jotUHzF7U49NATW0dZFMF7zY= 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=gTaoSyHl3HqBsHrY5A4LuCqff0xNJw9//Kl7Y7tQ/M4=; b=BPhZ+7i7VDwYTnL30OMwamIcSRRoyu8tJ719HUWKUDDwv33Eh9eq3RXal7hnbXO/zd sshskceQziwbLfYlx7IuCKxP2m+dpS7XchY59qCJl37kyvO3kLpma9FHBNOEbFc4RU1w t+XPilYJATkPtKvEc05mFTYYK1H1PoLwuSFu/iVxptenwy2d/kCJMUKW2l5YxJ7ewjcp gyV2ycU0Ym+sKQEZ/NUmB31YjZZPZQSCLiuF5IIPCcDioL9XHOCf1gYKMLQ8d0WZUaDM 3pXrD70CtRyuXT9TFrZqZc99vzybnGMIVfiSNdqC+zlIR2u5zydolZdk4x1wGpFkaT/y ns5g== X-Gm-Message-State: AOAM530EiGzuFGOuzTZScsEhRqHISmSkl+F553KLIcXsElTTJsYE6JVQ 3WpgPPSkRNXPkc4w3KTGgmmZzypdJlwAJg== X-Received: by 2002:a67:c19b:: with SMTP id h27mr1273926vsj.160.1598626576193; Fri, 28 Aug 2020 07:56:16 -0700 (PDT) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com. [209.85.222.45]) by smtp.gmail.com with ESMTPSA id d193sm190615vsc.30.2020.08.28.07.56.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Aug 2020 07:56:15 -0700 (PDT) Received: by mail-ua1-f45.google.com with SMTP id y2so461158uaq.0 for ; Fri, 28 Aug 2020 07:56:15 -0700 (PDT) X-Received: by 2002:ab0:3114:: with SMTP id e20mr1362127ual.104.1598626574941; Fri, 28 Aug 2020 07:56:14 -0700 (PDT) MIME-Version: 1.0 References: <20200827083330.1.I669bb4dc3d92bd04e9a695f97904797dc8241b79@changeid> In-Reply-To: From: Doug Anderson Date: Fri, 28 Aug 2020 07:56:03 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mmc: sdhci-msm: When dev_pm_opp_of_add_table() returns 0 it's not an error To: Naresh Kamboju Cc: Ulf Hansson , Arnd Bergmann , Veerabhadrarao Badiganti , 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 Hi, On Fri, Aug 28, 2020 at 2:15 AM Naresh Kamboju wrote: > > 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. To be fair, I wasn't trying to. ;-) That's why I didn't add Reported-by to my original patch. I was trying to solve problems I was seeing myself and my patch did solve the problems I was seeing. I only CCed you because I saw that you were having problems with the same patch... > However, I would be testing the V2 set from Viresh Kumar. I've confirmed that the current mmc/next (with Viresh's new patch) no longer breaks me. :-) $ git show --format=fuller linux_mmc/next | head -8 commit 174e889d08aa54219b841464458f81d13fafec93 Merge: c282fdb49b18 8048822bac01 Author: Ulf Hansson AuthorDate: Fri Aug 28 14:26:25 2020 +0200 Commit: Ulf Hansson CommitDate: Fri Aug 28 14:26:25 2020 +0200 Merge branch 'fixes' into next -Doug