[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6817C817C9581447825BFB369EAC42163E959B84@DBDE01.ent.ti.com>
Date: Wed, 28 Nov 2012 12:10:21 +0000
From: "Navada Kanyana, Mukund" <navada@...com>
To: Mark Brown <broonie@...nsource.wolfsonmicro.com>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 1/1] regmap: Add support for continously numbered pages
across regmap range
> -----Original Message-----
> From: Mark Brown [mailto:broonie@...nsource.wolfsonmicro.com]
> Sent: Wednesday, November 28, 2012 5:27 PM
> To: Navada Kanyana, Mukund
> Cc: Greg Kroah-Hartman; linux-kernel@...r.kernel.org
> Subject: Re: [PATCH 1/1] regmap: Add support for continously numbered
> pages across regmap range
>
> On Wed, Nov 28, 2012 at 11:52:22AM +0000, Navada Kanyana, Mukund wrote:
>
> > static const struct regmap_range_cfg aic325x_ranges[] = {
> > { .name = "CONF", .range_min = 128,
> > .range_max = 383,
> > .selector_reg = 0x0,
> > .selector_mask = 0xff,
> > .selector_shift = 0,
> > .window_start = 0, .window_len =128,
> > },
> > { .name = "MINIDSP_A_CM_A", .range_min = AIC325X_ADSP_CM_A_BASE,
> > .range_max = AIC325X_ADSP_CM_A_BASE + 1152,
> > .selector_reg = 0x0,
> > .selector_mask = 0xff,
> > .selector_shift = 0,
> > .window_start = 0, .window_len =128,
> > },
> > };
>
> You appear to have two different ranges with the same selector and
> window. I'm really not sure why you expect this to work... what
> happens when someone reads from the two different ranges simultaneously?
The selector register has to written appropriate page number. Two different ranges cannot be accessed simultaneously without changing the page number in the selector register.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists