Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2298350rwb; Sun, 4 Sep 2022 12:42:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5i5CID6VWeVpSdKLsGa+c05sMrtvT/6ou8jonvPIbV9WCGZj0z4JkQPzQm8qgVHj8SzTMc X-Received: by 2002:a05:6402:e94:b0:443:e3fe:7c87 with SMTP id h20-20020a0564020e9400b00443e3fe7c87mr41934409eda.144.1662320566611; Sun, 04 Sep 2022 12:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662320566; cv=none; d=google.com; s=arc-20160816; b=i1MhemwZ9vzjeyysiWNPQyNfzEUWibKIpzVRALE4548DdMxzt1SIUPDKFBU5zKefNF PIE+RYqwFw20+XIix9tqbfSfGf4gliG5ivUasFEFbZCqxgG/yEgEAd/DFQS4HBWnSQP5 Z3JwFaCuV8/lEF1j8hRxEmjprNskSb53X50xGhRR8GPBDPrZeWaEDN4B/GSVzLWhqfM4 xbTgJ1VOezrHSSLkWNBGJdFHXtKf5m0gS7ql2GKGoyYmu9pakWuNhvhAY4JFl6m6rZTP f+udmrETmmpmXjQqCoym5LH7oX8LJNZRAJFkTpM3WvE2aymKZErOrdmYlGRmOgCm92BY TYCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=juGsLKnqTXsnwZqRs+MmcAEQwaIZtbGH5Zi0HPPGJzk=; b=KJBqRm7jW6FklXccD4Axu5on1pzhMHtfIo13Nuiym0asqrioCx6z1UXVMGi2FnKjCQ rDYvvUXbmzADZzsd4xQloZwAqFCSHXHb/zlgQ7oaRxeg5CT1Bk9nzeST5y8Yw9uNzUX3 xOimNsE4tB2LC5ZIWgoiu1HnHDrpruI+Jcbsd9qQ1CJoF6hB+HUj1Gjqo4E5PtkcBO5D 3nI+ShTfouGHeiYH2EAuY2OBu/BKRoFKt1fjR9RTsg/dUowRKk/b8v/KIEA2z4/chCey r6HfRFkJ4K6zDLcpE8WwW3xKoyyC1+HKqmZaWmC7sc+ZK0Q9jODnhu9kdMTwjXjbh34B utsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mZi3Bejm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a170906471500b0073db945fcc0si5829183ejq.214.2022.09.04.12.42.21; Sun, 04 Sep 2022 12:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mZi3Bejm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234342AbiIDTIy (ORCPT + 99 others); Sun, 4 Sep 2022 15:08:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbiIDTIw (ORCPT ); Sun, 4 Sep 2022 15:08:52 -0400 Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E3652BB2B; Sun, 4 Sep 2022 12:08:52 -0700 (PDT) Received: by mail-qv1-xf34.google.com with SMTP id j1so5177924qvv.8; Sun, 04 Sep 2022 12:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=juGsLKnqTXsnwZqRs+MmcAEQwaIZtbGH5Zi0HPPGJzk=; b=mZi3BejmzkopJJwZy4mQLPZIKs10+v92BcLT/ZV+n/ZEI86GF/1zaJvhBrO5dchPOp K519FXbBIvbMjclN3fBufHSIIqRWjLlqEGZL4LdXR+bodb+6V9Ko6hpPeYMWK0T5MLC5 V0WCY/En33bYc0bh4BzwDpnM5sJbTzJnbqPQeypnaS+IrzVidbZeCCPl8KnL+T4zSHrO PotUylI8PJQ2xb4atCYUUMefHJusVZkw8sTAX9Xl/8NmrpGg8U2rYtAM3ALvi64PgPiX fxiEPm9eYvNK1LK5Z5MBNDN7tVmPVv6o9xpKbnp5LMVSpDPTQoI0sqmE5RQ7oqYzhEkE JA7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=juGsLKnqTXsnwZqRs+MmcAEQwaIZtbGH5Zi0HPPGJzk=; b=nknfKi8VWb6EV4vwUhideKk1lJUrv1Sdq6tTRug5zxZkFZ2cOXPdyy6cxTwI2Pr374 /26JnCRE9LR2xt3r/yGduvul+rpI8S2iWmDMrmyzXLCwJnLB4iW72hy5FC9lOfF1Hewx Z2APZZ+3YkA3o1untfcm8lwKuRp42HGzIZbUj75Xej5YWlk1aNtTOWPz9UxQ7CXSalE5 CDgefJd3yPyk3fEtqqmNyr1iCj0ty9j7ff8DixMBIgp0kM3wp1RQBPIh4ZAIJnM/Yz87 ibLDs0ACPIHRqMXYJzlcnzbyuZxuv24HdTMT1JYLi0L++ZXRw2T4jFbRAu2VgrZk/XUo 6FfQ== X-Gm-Message-State: ACgBeo26m+bflJBk3CV+QlV56QVtuPtRzXjf6+D3o1wATkr5IfBGw86i bfQO7mcLMtGFi6iOBhRQ5s2CnzWiWOH+s4bg2GN781BCY5g= X-Received: by 2002:a0c:e24b:0:b0:4a1:d41b:e280 with SMTP id x11-20020a0ce24b000000b004a1d41be280mr3423294qvl.11.1662318531239; Sun, 04 Sep 2022 12:08:51 -0700 (PDT) MIME-Version: 1.0 References: <20220902131258.3316367-1-cmo@melexis.com> <20220904150346.0c56de9d@jic23-huawei> In-Reply-To: <20220904150346.0c56de9d@jic23-huawei> From: Andy Shevchenko Date: Sun, 4 Sep 2022 22:08:15 +0300 Message-ID: Subject: Re: [PATCH 1/3] iio: temperature: mlx90632 Add runtime powermanagement modes To: Jonathan Cameron Cc: Crt Mori , linux-iio , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 4, 2022 at 5:37 PM Jonathan Cameron wrote: > On Sat, 3 Sep 2022 14:05:38 +0200 > Crt Mori wrote: > > On Fri, 2 Sept 2022 at 20:39, Andy Shevchenko wrote: > > > On Fri, Sep 2, 2022 at 8:59 PM Crt Mori wrote: > > > > On Fri, 2 Sept 2022 at 17:28, Andy Shevchenko wrote: > > > > > On Fri, Sep 2, 2022 at 4:13 PM wrote: ... > > > > > > +static int __maybe_unused mlx90632_pm_runtime_suspend(struct device *dev) > > > > > > > > > > No __maybe_unused, use pm_ptr() / pm_sleep_ptr() below. > > > > > > > > > Care to explain a bit more about this? I just followed what other > > > > drivers have... > > > > > > And other drivers have what I said, but it's a new feature. > > > If you run `git log --no-merges --grep 'pm_ptr' -- drivers/iio > > > include/linux/` and read the history it will explain the case. > > > > > Thanks for the hint. > > The relevant EXPORT_ for this particular case isn't upstream yet > We had a proposal on IIO list, but there was a better one as part of > cleaning this up for MFD. I haven't checked if there is a suitable > immutable branch for that patch yet... Oh, well to know. But in any case pm_ptr() / DEFINE_*PM_OPS can still be used. -- With Best Regards, Andy Shevchenko