Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6149058iog; Thu, 23 Jun 2022 12:21:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1smWqhy9PddCdBO2UInS5d7fVHRviaq2ENTeK+60oVhdW211uAS3uMk06W9He5H8H7okpv7 X-Received: by 2002:a17:907:7287:b0:722:d5b2:fca1 with SMTP id dt7-20020a170907728700b00722d5b2fca1mr9889363ejc.197.1656012081485; Thu, 23 Jun 2022 12:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656012081; cv=none; d=google.com; s=arc-20160816; b=drZxdXMpNcBhZrh824JJs5VZwLNO6Siz+qP+ndncA1LcaG9qwpJar8wbaIKNIizYqA Z6+E1ZXyzhHYOQzO4Fto3YzmpbQqH/mDH4tHBMZFErMazEeI17gjVjw5KB3o4hytzVm3 WzHM0dUGg0fINPahLkdWRAEvm1Bnsj6s3fCoswekzJofJqoYitDQ1iaC8BtVMwHf19+a FshNYIo7M88NBl8iFJ+eGrTOcD2U7hQYFlmvxCAr0q7KHSZpYbimasktsFmy3wqczmbr So+zKznpmBEJSraniU3UfAS5X4HGFPsZ3gYPlnAEcj/Am5Iemo0nMdsPzjHOd1bxfDrr Kmzw== 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=sBMGPYDRnJPeUwS8rUCcWoIIaqQNv7Xsce74kY6zINI=; b=wnbMxUTluzWJ19ceKkTL+A5MuajrSiwTAHs+N6zhHt0vriBar/egM4xeHhGRooTt4X aPslOG/UmwEJ5uAY3+7Zj3zVp8tsMwM5q8k32sktkFNbBhAFiGWEaPLT291Yh/4jEQTf uSwY/bTlLGTR2UpALItllywvwBPAfxa1cjsAyEKqKs6M2hQX41W/M6XAIZGpA7USx262 zhK9Sjy3S7WqVOZSJ9ogfFQ1uCRXFM98FMO0ZbfIDuqBs7HacrDeOaxxQqQOZevMDuKR ewGUgY0D5pe6v/8W+91L3HnCxoA1YEjI1p7jI9292OLbyNY2lkhZTsMI10HtDKNqpo/6 sl7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BJrh0YPv; 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 y8-20020a056402440800b00435d7a4a529si442261eda.346.2022.06.23.12.20.56; Thu, 23 Jun 2022 12:21:21 -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=BJrh0YPv; 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 S230220AbiFWTPH (ORCPT + 99 others); Thu, 23 Jun 2022 15:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230130AbiFWTOx (ORCPT ); Thu, 23 Jun 2022 15:14:53 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED7CF12DFD0; Thu, 23 Jun 2022 11:19:34 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id g4so356826lfv.9; Thu, 23 Jun 2022 11:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sBMGPYDRnJPeUwS8rUCcWoIIaqQNv7Xsce74kY6zINI=; b=BJrh0YPvvBPOk2FgsQMFRa2Mypjcm71ylJrq31IKtpANvhN4g8KLB7ntFQNq9IZHVF l6ZhSU+TlBFMgNnWeh7Eoj5Ib1pOugR8/ndpuPy4VRRMJ6LnlT4CTMEzgfF4vBExrKon Wo9h20LnpfRWOTcCAHW7Udyx6kQ1lpY2Hv/XvCOnPkvGMJrQAMlcIYbPHW/+QvkLPw/v z1lAydtVEKdwcueGxWsSL7la7BCLCRYzBxgeXh32PNyM7jHQtn8jXHCrjG/yF8ym1dip s0nAMXw5V2WlQuo+mpIp+OLG/gu7Zn8xLGMejPmMkd4+e9tWrl/+j7x7jETixBbgqiPc vqew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sBMGPYDRnJPeUwS8rUCcWoIIaqQNv7Xsce74kY6zINI=; b=Ue2r3xF3o0KXHOfJTftBD4o3wQMBh8KkmBqL3wIkeaAYXm7ePIW+jvu1L9wq+gj1jl Dn5AFpw55KyoG45u6oJkoaD6VlvVJeiOoShtubQylAmTlHIeSl+gBO+4M11qg27o7gs0 4VE8dgXPGA+RnbBYYp7tfrOkM5NU3uOlgGoXHBG6CNBEJCI4uGss++6e7gv12J+AA39W K4IMzZCl+mevraQzSQ0RX9unwRRdCVRTn4Secio5BlcCG6bBEq2By3ILsqMQ5WToQmSk U7RNcNkimIzONc0tlK3Gyd/H675C4XKK8Y72S2rg0yhLIVxjjkxUp8FzH6MMWecXcYLs Exzw== X-Gm-Message-State: AJIora/r44fbBqK6qGkonXdGXuOx/sBd1qykvz8WWfFKy/QWrnzwsGAz A9jDcxZz+x2ispyKzheGT4UM2jhgv03a05t/Aew= X-Received: by 2002:a05:6512:151f:b0:47d:dd0c:1d1c with SMTP id bq31-20020a056512151f00b0047ddd0c1d1cmr6036883lfb.207.1656008372915; Thu, 23 Jun 2022 11:19:32 -0700 (PDT) MIME-Version: 1.0 References: <20220623115631.22209-1-peterwu.pub@gmail.com> <20220623115631.22209-10-peterwu.pub@gmail.com> In-Reply-To: <20220623115631.22209-10-peterwu.pub@gmail.com> From: Andy Shevchenko Date: Thu, 23 Jun 2022 20:18:56 +0200 Message-ID: Subject: Re: [PATCH v3 09/14] regulator: mt6370: Add mt6370 DisplayBias and VibLDO support To: ChiaEn Wu Cc: Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sebastian Reichel , Chunfeng Yun , Greg Kroah-Hartman , Jonathan Cameron , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Guenter Roeck , "Krogerus, Heikki" , Helge Deller , chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang , dri-devel , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Linux PM , USB , linux-iio , "open list:FRAMEBUFFER LAYER" , szuni chen 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 Thu, Jun 23, 2022 at 2:00 PM ChiaEn Wu wrote: > > From: ChiYuan Huang > > Add mt6370 DisplayBias and VibLDO support. ... > +#include > +#include > +#include > +#include > +#include > +#include Any users of this? (See below) > +#include > +#include > +#include > +#include ... > +#define MT6370_LDO_MINUV 1600000 > +#define MT6370_LDO_STPUV 200000 > +#define MT6370_LDO_N_VOLT 13 > +#define MT6370_DBVBOOST_MINUV 4000000 > +#define MT6370_DBVBOOST_STPUV 50000 > +#define MT6370_DBVBOOST_N_VOLT 45 > +#define MT6370_DBVOUT_MINUV 4000000 > +#define MT6370_DBVOUT_STPUV 50000 > +#define MT6370_DBVOUT_N_VOLT 41 If UV is a unit suffix, make it _UV. ... > + .of_match = of_match_ptr("dsvbst"), Would it even be called / used if CONFIG_OF=n? ... > + .regulators_node = of_match_ptr("regulators"), Ditto. ... > + for (i = 0; i < ARRAY_SIZE(mt6370_irqs); i++) { > + irq = platform_get_irq_byname(pdev, mt6370_irqs[i].name); > + > + rdev = priv->rdev[mt6370_irqs[i].rid]; > + > + ret = devm_request_threaded_irq(priv->dev, irq, NULL, > + mt6370_irqs[i].handler, 0, > + mt6370_irqs[i].name, rdev); > + if (ret) { > + dev_err(priv->dev, > + "Failed to register (%d) interrupt\n", i); > + return ret; return dev_err_probe(...); ? > + } > + } ... > + for (i = 0; i < MT6370_MAX_IDX; i++) { > + rdev = devm_regulator_register(priv->dev, > + mt6370_regulator_descs + i, > + &cfg); > + if (IS_ERR(rdev)) { > + dev_err(priv->dev, > + "Failed to register (%d) regulator\n", i); > + return PTR_ERR(rdev); return dev_err_probe(...); ? > + } > + > + priv->rdev[i] = rdev; > + } ... > + if (!priv->regmap) { > + dev_err(&pdev->dev, "Failed to init regmap\n"); > + return -ENODEV; > + } return dev_err_probe(...); -- With Best Regards, Andy Shevchenko