From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EC23C433DF for ; Tue, 11 Aug 2020 22:02:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 44911206C3 for ; Tue, 11 Aug 2020 22:02:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mXmzZ5fW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 44911206C3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zpaXYXnxzR9N0oMklr96YfDCt1DSqNiwzeSFHWJ0EyQ=; b=mXmzZ5fWypWaSvODB4CxWYzz7 aUnqj/yGOMeDG2i5gx5UA9oKO7XQAx8pRSqqQmsb1BXxFSiWf/69mAwYrSN3FzJUMb2wuOXpHrIX1 +0WzMHeuj4ywQAkSV9fdPw9pVP45RCjOO7uTRBsQEU7zxsm8Z0L+igmF8Ls9ysFbUiutaPP8pBARo IaI8ZM5SJYNYmNRro/FD8OCOWRn5gvYo2nMDWXZHDkBYJRytp6X/AO0jY+jlSlwn7zM1gS4KNkyi5 Zyefuof60dVV2FmmQnl18wdLJL9gzWBiJJ6BOTKO0eRLfj3qj0G4ThAJjNSDIx8M/ZtUSIxdwZDit 3AAhHQNKA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5cKY-00040P-U4; Tue, 11 Aug 2020 22:01:15 +0000 Received: from jabberwock.ucw.cz ([46.255.230.98]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5cKW-0003zY-Fc for linux-arm-kernel@lists.infradead.org; Tue, 11 Aug 2020 22:01:13 +0000 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 923501C0BDD; Wed, 12 Aug 2020 00:01:09 +0200 (CEST) Date: Wed, 12 Aug 2020 00:01:09 +0200 From: Pavel Machek To: Dan Murphy Subject: Re: [PATCH v32 2/6] leds: lp50xx: Add the LP50XX family of the RGB LED driver Message-ID: <20200811220109.GA9105@amd> References: <20200722153146.8767-1-dmurphy@ti.com> <20200722153146.8767-3-dmurphy@ti.com> <20200811105413.r2m2f7bubuz55rrt@duo.ucw.cz> <935119fa-6d1f-8e99-51f9-87966b4d03ad@ti.com> MIME-Version: 1.0 In-Reply-To: <935119fa-6d1f-8e99-51f9-87966b4d03ad@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200811_180112_656648_87FA250B X-CRM114-Status: GOOD ( 14.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, robh@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, marek.behun@nic.cz, jacek.anaszewski@gmail.com, linux-leds@vger.kernel.org Content-Type: multipart/mixed; boundary="===============8848356596064585905==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============8848356596064585905== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >Actually... This is quite impressive ammount of code to > >zero-initialize few registers. Could the regmap be told to set the > >range to zero, or use loops to reduce ammount of code? >=20 > I am not aware of any regmap calls that will set a range of registers to a > certain value. >=20 > Well it depends on where we want to create the default cache values. >=20 > Either we run through a for..loop during driver probe and delay device st= art > up or we keep the simple arrays and increase the driver total size. for loop will be better. Plus, REGCACHE_RBTREE is very likely overkill. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl8zFSUACgkQMOfwapXb+vK33gCgrVIt/hl85rI2VflMhqe49hC3 SUAAoLKaey4VLSsVlT+fhgXrveQQu/tp =eaXI -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- --===============8848356596064585905== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============8848356596064585905==--