Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5819408ioo; Wed, 1 Jun 2022 13:16:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGcjiKamVywAckNzE+2B5/+0gVYM4w6NI9j1qWtw99zulwUkyoH3NhSKUQCsuKHac3gZky X-Received: by 2002:a17:90b:3696:b0:1e6:6f6d:962b with SMTP id mj22-20020a17090b369600b001e66f6d962bmr2964649pjb.8.1654114589050; Wed, 01 Jun 2022 13:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654114589; cv=none; d=google.com; s=arc-20160816; b=NQS1z26ZGVhSSC40KeHMJF7xGbsZaKJEOaye/rV/L4BttxtMthsGyz5PnACrSkDAp1 5uyWJYEyw68tzuq3sLS57LO7zvOI6eLu7rk8gX1kjz9bhWeL2NUo05CoBu5O/OwEIPgO 2SYB8GSmxZFEaXJIZHrJEkQlmK15u4guE5kQhCU98jnjgQfIYOsdLda5Fxhw95Lf72g5 8FRXGsD+UwOj/sULDyLfQPZ+5XRS1vQdX7XoWAgGmoVOR19xms1Cp7UWP8WbDH2B6uGj y7pc6iOGr4SSmVYkgjcrov1SYTgYOEH+H8EoZBA4vZR/XfJ72vHq/O1zEuBM1ZLlEZIi 1dIQ== 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=27PUTNb2UH1CaFlaB6o+qtISHhMqVYpnRcYCFuMiVv4=; b=HPZ7jD4Ya4s5xw4NXjSOmrj8rKfT8lDiYE/T+E295ojdfrCoqZ0v8nXuptXSTTcm5j WgYCL9B/5wLuaKeUU7h5AXLZOJpOx85tAbnaXHN3AdsgEFisqJ7nGJDYXm+ehiFBt8ty mm/2tJey6J+cMSDcFup+HrA+fJkS/Hcxy4RPM/2twEzs2MPmHHWrhNqvQvA5iVh5TURy dr3OdgVKerP18adyB//SlG0YesDL6quCl+sZ7u4RduWp2J9joptQjX1Emp5ytDzYeUf9 +o1pmTlZaSLEDumXo7//sY+1WdnlcnF40CiypnAZGbYswiGlLX3WKU9mgSQzZOoFFO8i a2zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RLZe4nVv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g9-20020a17090a640900b001e30e046cfcsi3061548pjj.46.2022.06.01.13.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:16:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RLZe4nVv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D6AC323B15A; Wed, 1 Jun 2022 12:30:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348207AbiFAJtl (ORCPT + 99 others); Wed, 1 Jun 2022 05:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351500AbiFAJtj (ORCPT ); Wed, 1 Jun 2022 05:49:39 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7DE55FF2D; Wed, 1 Jun 2022 02:49:35 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id u12so2589267eja.8; Wed, 01 Jun 2022 02:49:35 -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=27PUTNb2UH1CaFlaB6o+qtISHhMqVYpnRcYCFuMiVv4=; b=RLZe4nVv/Ic2Sv7cEK7VnKNh8dqoPXLpxnLc7UHjGVmmaOPOdprU9K/lDH3Kr6SBBs 6QDIiqyi6WSTTNbbOkaJZQxy8YW00WXStF0ZngoQO8N9wcquuUTE85nb3APbRA0XivHe pRiLCDAis4jbIvybxugAxhkZlTL8NK/7VRcrLnDf0uEQG2evVEh8fmhzHI46goYAy/Rj q8Bbbjx+gKvOdjejX68tjSajQP70rVeZpFFv49Ib8lN+kErMrJya6+9vsV7cGjxOYuDc 3XgnvxTdqukRyUlMaSwf9b5Yn8Xatlmpk1zSwUk3glp21S87SI0Q0DdcTQbIgVdEgv4s sXUA== 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=27PUTNb2UH1CaFlaB6o+qtISHhMqVYpnRcYCFuMiVv4=; b=1C2x9Xdwy4Bs1peBFTJh47LRDOmAW7RdTOTF00nUKHQHyTwO2x1ywzNNOfLt35eSZp QjoGnRBdlIxHJvXGYdTl5RayGjXsne7RthNEYtPlHcVwc82/A+0VsdlZH5Osof6jly0b CJ1vqbEZOZ2EG4BzVgsxQuJDGkmn9b42Q0xZuAXT5T0Pw50ZY1PpQBy0qdvM2oK3jtTA MV2LxuAne6Ws5zObDmjeR5oGQRFlzPch9Npm5Mv+9ew/XiEA62UDnFyEXZxZbDHUL4o1 fSyQRxnr49TGwVGaHuLJ0EcDMD31HJpeSfyV3ikbKuZAfbIUXTNO2UgBYszmYwBEsvLo V9Qw== X-Gm-Message-State: AOAM530s4pfkYNdTuSt7i4dm/7TsXS8Np5KB77YWsPGd90gYbwrgweoA A0hGavHcYgZGCWDAVAOQYZU9aZKWYrHn2/mNXFM= X-Received: by 2002:a17:907:6e1a:b0:6fe:f357:3837 with SMTP id sd26-20020a1709076e1a00b006fef3573837mr40896205ejc.44.1654076974098; Wed, 01 Jun 2022 02:49:34 -0700 (PDT) MIME-Version: 1.0 References: <20220531102809.11976-1-peterwu.pub@gmail.com> <20220531102809.11976-7-peterwu.pub@gmail.com> In-Reply-To: <20220531102809.11976-7-peterwu.pub@gmail.com> From: Andy Shevchenko Date: Wed, 1 Jun 2022 11:48:58 +0200 Message-ID: Subject: Re: [PATCH 06/14] leds: mt6370: Add Mediatek MT6370 Indicator 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 , cy_huang@richtek.com, alice_chen@richtek.com, chiaen_wu@richtek.com, 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" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, May 31, 2022 at 1:16 PM ChiaEn Wu wrote: > > From: Alice Chen All below comments are applicable to the rest of the series as well (one way or another), so please fix all your patches where it's appropriate. > > Add Mediatek MT6370 Indicator support What indicator? Please also keep attention on English punctuation (missed period). ... > + help > + Support 4 channels and reg/pwm/breath mode. > + Isink4 can also use as a CHG_VIN power good Indicator. be used > + Say Y here to enable support for > + MT6370_RGB_LED device. ... > +#include > +#include > +#include > +#include Are you sure this is the correct header? Seems you need mod_devicetable.h instead. > +#include > +#include ... > +struct mt6370_priv { > + struct mutex lock; Do you use regmap locking? > + struct device *dev; > + struct regmap *regmap; > + struct regmap_field *fields[F_MAX_FIELDS]; > + const struct reg_field *reg_fields; > + const struct linear_range *ranges; > + struct reg_cfg *reg_cfgs; > + unsigned int leds_count; > + unsigned int leds_active; > + bool is_mt6372; > + struct mt6370_led leds[]; > +}; ... > +static const unsigned int common_tfreqs[] = { > + 10000, 5000, 2000, 1000, 500, 200, 5, 1 Leave a comma at the end. > +}; > + > +static const unsigned int mt6372_tfreqs[] = { > + 8000, 4000, 2000, 1000, 500, 250, 8, 4 Ditto. > +}; -- With Best Regards, Andy Shevchenko