Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751572AbbLIPGB (ORCPT ); Wed, 9 Dec 2015 10:06:01 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:39322 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750834AbbLIPF7 (ORCPT ); Wed, 9 Dec 2015 10:05:59 -0500 Date: Wed, 9 Dec 2015 15:05:52 +0000 From: Mark Brown To: Xiubo Li Cc: linux-kernel@vger.kernel.org Message-ID: <20151209150552.GC5727@sirena.org.uk> References: <1449109150-26793-1-git-send-email-lixiubo@cmss.chinamobile.com> <20151208170517.GU5727@sirena.org.uk> <56679D42.3030708@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0PQOkvCAw33/u/bm" Content-Disposition: inline In-Reply-To: <56679D42.3030708@cmss.chinamobile.com> X-Cookie: revolutionary, adj.: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH] regmap: speed up the regcache_init() X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1529 Lines: 41 --0PQOkvCAw33/u/bm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 09, 2015 at 11:17:22AM +0800, Xiubo Li wrote: > Yes, usually when the register cache is not used, the number of the > defaults should be zero, but for some drivers like drv2267.c/led_lp8860.c > will add the defaults register values though the cache type is > REGCACHE_NONE for some reasons. I can't find either of those in the kernel tree... > This patch may be not the best, but will be a bit meaningful for some > drivers like drv2267.c/led_lp8860.c for now. TBH if we're going to do something here it might be as well to print a warning if something is providing register defaults but no cache. --0PQOkvCAw33/u/bm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWaENPAAoJECTWi3JdVIfQjqEH/iXIljYcVREKCv01kumm9NwP YtU10AVkPI9XCrPGFJPMQRmCPmELmPdMQT5jOuih0N8Ijj/A/SjffcX6Zl8Ebv+l O78DKje9mM02yol368uUYxyrY7Ux83L5Po33ev5tXio3zxr+jNO4UURkBMBiwXFY 7jzYEYcganlrEHZH7uBSVB19bLvjGA7JGHXbalWnKEhrqmYvnbglktr009WJ/VWp +6w0uBGHLrGdYcm5ewrZCTckyR3JSJ/T3YCnBuCTD+rvLCcJx55nQPTt7DK/UJZy /Ca/SYKTbBxWYaNpI4f22/FCm8kLSFlfGmWMdkoQJCc0vAqCN9o/8tbJ8gT5ptM= =VsHY -----END PGP SIGNATURE----- --0PQOkvCAw33/u/bm-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/