Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753191AbbL3R6l (ORCPT ); Wed, 30 Dec 2015 12:58:41 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:56180 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbbL3R6j (ORCPT ); Wed, 30 Dec 2015 12:58:39 -0500 Date: Wed, 30 Dec 2015 17:58:30 +0000 From: Mark Brown To: "lixiubo@cmss.chinamobile.com" Cc: linux-kernel Message-ID: <20151230175830.GA16023@sirena.org.uk> References: <1450077274-25942-1-git-send-email-lixiubo@cmss.chinamobile.com> <20151214175756.GW5727@sirena.org.uk> <566FD138.4010601@cmss.chinamobile.com> <20151218082321.GW5727@sirena.org.uk> <2015121816593812599420@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d6nDKxlhctiV7bVq" Content-Disposition: inline In-Reply-To: <2015121816593812599420@cmss.chinamobile.com> X-Cookie: Honk if you love peace and quiet. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 2a01:348:6:808::2 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: Re: [PATCH] regmap: flat: introduce register striding to save somememories 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: 1552 Lines: 45 --d6nDKxlhctiV7bVq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 18, 2015 at 04:59:38PM +0800, lixiubo@cmss.chinamobile.com wrot= e: > > I think we'll need to continue supporting non power of two strides so > > an unconditional conversion to shifts might be an issue - some weird DSP > > probably does that. > Yes, agreed.=20 > IMO this won't happen to MMIO, and for the device using MMIO the > register strides should equal to power of two.=20 > Are there some cases I have met?=20 DSPs exposed via I2C and SPI are the main things I'm worried about. It's fairly common for DSPs to have unusual word sizes including things like three bytes. --d6nDKxlhctiV7bVq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWhBtFAAoJECTWi3JdVIfQuSMIAIBYX7iixskmCfTmjOpcNXnl avH5XqPXj5UdCBoEUrL2KLihCVIP/wOHMu0Z47AJQ0KvvrGFHSKOOgUIeFDJc3GH J9hTOSuKlP6PupvN0Zz2Ku3YipATVk6DVGpuWrkASvbJTEkk63Cw+hArC4zNg5A3 1GKQeOyvL3Io2T5XV/FyLwszpZb/6ptA5VqzObk5Aifitz1WFfevwhyAGjNE0aKm v3Cj0hFJSJqmU4hpI/xLa9DY3P7xLUxRqSKnslyif+4+644jFOLqVaElp3fes16z E3Ti/y3n9Aj/+BMFsDSyVxEcjhCPfKPKbeTJOxqP9dJisycH0vR1EmsND1YURA4= =+E+U -----END PGP SIGNATURE----- --d6nDKxlhctiV7bVq-- -- 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/