Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2084633rwl; Thu, 6 Apr 2023 05:48:21 -0700 (PDT) X-Google-Smtp-Source: AKy350b//6T0D0G8h7k7GVc5G+ZuxHB7Ox8oPUwQwXU/zqWHGtvAs8B7HHQRQqtO9Fck6bHzItXe X-Received: by 2002:a62:1c13:0:b0:626:2984:8a76 with SMTP id c19-20020a621c13000000b0062629848a76mr8263516pfc.34.1680785301183; Thu, 06 Apr 2023 05:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680785301; cv=none; d=google.com; s=arc-20160816; b=Vnhd3pjaQyscDu7yCQNEFl+PEimW6mzFQIcjsLeAkDxhQ2ZSIiVAfkDSu+4c+7qhDT tTrtPoJidzSymlxuqvvW0Snul6K/scfi5O2McIV/NG4/YPsppqssAZF05mtJK7p/25nk cvDbpKRRP3O6gE3EXL2p7qAdo4oEPxM5i7T1x1LcKHi1WJjQ9CIylHX7glLX7k/AHjCf UFCzHteWs9oslqRTqMBUUUdbLRw2IUYOieZ8dLR7O2QmbbCYX/ClNZfJCtARc6IVlTDO ZK9u3YXKptZpPvcp9YjnyfR4hzMvsKw0jTpkPzNCsH4veyNXV090CPO8u6YKhtD5RfFC NW3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=AOMhZA4fW3SZ/fTApq8FgFoqecUHaky/SHKKzAcMU38=; b=tBpNskgNGvgxmZa5j5jLoKS6a1Q4yFbkVRbLE59kysBU20Nafa7FzZufPPyjPFKbKq zOem5uJxxg8Uvz7nchc2MieOiOFNaF4/F8UV+pbgC599f7dhPGXfPwC57DHTjTaTntNV 1N2FwRT1oyovsbmg+6GsbB6v/p+uh6AVAyp/3nhDjJLTJj8aimICJfoeSYnevw7moWQF aN7Y+tPOTxJbEJgAYs2WwiXdAycNh5ZX4POQN7SiBwMWv86WhsL4XfDS7CvOYONNkXhj ulfaME8+NYNCyRlWjV40qnlGFxnPTI+9WhFdl+5kslgMl4zaXIV33+cCcSApo4KD7b91 93BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Kf+kALNj; 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 v13-20020a63f20d000000b00513dbdf029csi1239249pgh.409.2023.04.06.05.48.09; Thu, 06 Apr 2023 05:48: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=Kf+kALNj; 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 S237546AbjDFMRW (ORCPT + 99 others); Thu, 6 Apr 2023 08:17:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237285AbjDFMRV (ORCPT ); Thu, 6 Apr 2023 08:17:21 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9DA30D4; Thu, 6 Apr 2023 05:17:18 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id h11so43586034lfu.8; Thu, 06 Apr 2023 05:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680783437; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AOMhZA4fW3SZ/fTApq8FgFoqecUHaky/SHKKzAcMU38=; b=Kf+kALNjBqOpk+yvYKW3t7zlp8mu+YMEqf4Qe9gKpz/KPEyu+vGtCNrO2OFnuaYX3x c+OOj+f9LMJz6ux3wFFTa/U+ZRY03wJiLo5VJnRCTJpy6URr2aqFHd/It9O5CGbpqsgz M7X3IKnWIFl72J4XU1kMt1dUMU/0uXEt48CMjtpY4JbplRhNNFxk58ISSwyiAv08sOFZ EzSOh4fYb9M1O5evMs6uHJ0HBbOAN/GJ7+sUFz5Me+IEH84gtaWqiuJtkXSaVwc0HWiI rg3hQ15uK3cRzDcmJ4kmsXTuTNV0XhZByV7fCJTy4MYxcOVh8exNon4ImDSwR1Ay2bFa eA/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680783437; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AOMhZA4fW3SZ/fTApq8FgFoqecUHaky/SHKKzAcMU38=; b=CjgWD/WVok/8RT70UhC+gZP1HX1ZQec6iqtP5+vMYYrLhgUaUSml5lyTs6NpWzkimo w9nvcxG94SyPZx0w4UT9THwresLCilj3dUgqJndcbJxzYsDZ29Evn0IGfWoqcWulPV9Y aBTp3MQy3BOIq7f87KVV8YAH7zN4JMGQ041SrgMMrFsRT6XSr4aAqj5Lw+VhWHiKPAkF 1dPkB3n19ZdfiJ1FVQyNTBtKUBubexHMEQkgcT5mNfZql3GEgdPFc2buKEmBET9Z7+3K cbFBjw0Xk5O/992K/sjkKCoDF8p0ab65D5usJ1I5tcsAB/R3pcW3CFc/hGW7vVeDBFC1 uWtg== X-Gm-Message-State: AAQBX9d4AM32p95J2rZCsk076tlNts6xqoet0dngcncbGJNdISs98LSX 9Jtf3HAjJUSJ03jvmGP2TbI= X-Received: by 2002:ac2:43c8:0:b0:4eb:3faf:58b9 with SMTP id u8-20020ac243c8000000b004eb3faf58b9mr2087863lfl.14.1680783436769; Thu, 06 Apr 2023 05:17:16 -0700 (PDT) Received: from ?IPV6:2001:14ba:16f3:4a00::1? (dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::1]) by smtp.gmail.com with ESMTPSA id r9-20020ac25a49000000b004db44babad7sm239502lfn.260.2023.04.06.05.17.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 05:17:16 -0700 (PDT) Message-ID: <17bc6dd1-956e-e90c-4028-8bd3044bcb90@gmail.com> Date: Thu, 6 Apr 2023 15:17:15 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 2/2] leds: bd2606mvv: Driver for the Rohm 6 Channel i2c LED driver Content-Language: en-US, en-GB To: Andreas Kemnade Cc: pavel@ucw.cz, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hns@goldelico.com References: <20230406060825.103187-1-andreas@kemnade.info> <20230406060825.103187-3-andreas@kemnade.info> <7d8c558f-0d21-91ed-ecd0-cac079d366ee@gmail.com> <20230406134314.25f8d3a0@aktux> From: Matti Vaittinen In-Reply-To: <20230406134314.25f8d3a0@aktux> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 4/6/23 14:43, Andreas Kemnade wrote: > Hi Matti, > > thanks for the review: > > On Thu, 6 Apr 2023 11:57:15 +0300 > Matti Vaittinen wrote: > >>> + priv->regmap = devm_regmap_init_i2c(client, &bd2606mvv_regmap); >>> + if (IS_ERR(priv->regmap)) { >>> + err = PTR_ERR(priv->regmap); >>> + dev_err(dev, "Failed to allocate register map: %d\n", err); >>> + return err; >>> + } >>> + >>> + i2c_set_clientdata(client, priv); >>> + >> >> The IC seems to have an enable pin. I think you might add the >> enable-gpio in dt-bindings and try to (optionally) get and enable it here. > > It has an enable pin. I would prefer to just have the binding as complete as > possible and have it added later in the driver by someone needing it > since I cannot test that. Fair enough. Thanks for working with this! Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~