[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190626111508.GA5316@sirena.org.uk>
Date: Wed, 26 Jun 2019 12:15:08 +0100
From: Mark Brown <broonie@...nel.org>
To: Marek Vasut <marex@...x.de>
Cc: linux-kernel@...r.kernel.org,
"Rafael J . Wysocki" <rafael@...nel.org>
Subject: Re: [RFC][PATCH] regmap: Drop CONFIG_64BIT checks from core
On Wed, Jun 26, 2019 at 01:31:16AM +0200, Marek Vasut wrote:
> Drop the CONFIG_64BIT checks from core regmap code, as it is well
> possible to access e.g. an SPI device with 64bit registers from a
> 32bit CPU. The CONFIG_64BIT checks are still left in place in the
> regmap mmio code however.
The issue with 8 bit registers was that we use unsigned long for
addresses and values and a 64 bit value won't fit in those on a 32 bit
system. Some of the bulk APIs will work but things like individual
register writes and the caches will have problems.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists