From: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Mark Brown
<broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
Cc: "gregkh-l3A5Bk7waGM@public.gmane.org"
<gregkh-l3A5Bk7waGM@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH V1] regmap: add bulk_write() for non-volatile register set
Date: Thu, 9 Feb 2012 18:15:18 +0530 [thread overview]
Message-ID: <4F33BFDE.7020006@nvidia.com> (raw)
In-Reply-To: <20120209121704.GF3058-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
On Thursday 09 February 2012 05:47 PM, Mark Brown wrote:
> * PGP Signed by an unknown key
>
> On Thu, Feb 09, 2012 at 05:42:11PM +0530, Laxman Dewangan wrote:
>
>> + if (vol || map->cache_type == REGCACHE_NONE) {
>> + ret = _regmap_raw_write(map, reg, val, val_bytes * val_count);
> You still need to do the byte swap here.
I saw the regmap_raw_write() and it is using the same way without byte
swapping.
Want to use the same function as it is.. I am not sure why do we require
byte-swapping in this case. Required things will be done by
_regmap_raw_write only.
This api just break the transfer in register-wise if any of the register
is cached..
>> + } else {
>> + for (i = 0; i< val_count; i++) {
>> + memcpy(map->work_buf, val + (i * val_bytes), val_bytes);
>> + ival = map->format.parse_val(map->work_buf);
> They're currently symmetric but really this should use format_val().
>
The format_val is require integer argument and issue is that I dont have
this otherwise I need not to parse, can use directly.
Am I missing something here?
> * Unknown Key
> * 0x6E30FDDD
WARNING: multiple messages have this Message-ID (diff)
From: Laxman Dewangan <ldewangan@nvidia.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "gregkh@suse.de" <gregkh@suse.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH V1] regmap: add bulk_write() for non-volatile register set
Date: Thu, 9 Feb 2012 18:15:18 +0530 [thread overview]
Message-ID: <4F33BFDE.7020006@nvidia.com> (raw)
In-Reply-To: <20120209121704.GF3058@opensource.wolfsonmicro.com>
On Thursday 09 February 2012 05:47 PM, Mark Brown wrote:
> * PGP Signed by an unknown key
>
> On Thu, Feb 09, 2012 at 05:42:11PM +0530, Laxman Dewangan wrote:
>
>> + if (vol || map->cache_type == REGCACHE_NONE) {
>> + ret = _regmap_raw_write(map, reg, val, val_bytes * val_count);
> You still need to do the byte swap here.
I saw the regmap_raw_write() and it is using the same way without byte
swapping.
Want to use the same function as it is.. I am not sure why do we require
byte-swapping in this case. Required things will be done by
_regmap_raw_write only.
This api just break the transfer in register-wise if any of the register
is cached..
>> + } else {
>> + for (i = 0; i< val_count; i++) {
>> + memcpy(map->work_buf, val + (i * val_bytes), val_bytes);
>> + ival = map->format.parse_val(map->work_buf);
> They're currently symmetric but really this should use format_val().
>
The format_val is require integer argument and issue is that I dont have
this otherwise I need not to parse, can use directly.
Am I missing something here?
> * Unknown Key
> * 0x6E30FDDD
next prev parent reply other threads:[~2012-02-09 12:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 12:12 [PATCH V1] regmap: add bulk_write() for non-volatile register set Laxman Dewangan
2012-02-09 12:12 ` Laxman Dewangan
[not found] ` <1328789531-10067-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-02-09 12:17 ` Mark Brown
2012-02-09 12:17 ` Mark Brown
[not found] ` <20120209121704.GF3058-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-02-09 12:45 ` Laxman Dewangan [this message]
2012-02-09 12:45 ` Laxman Dewangan
[not found] ` <4F33BFDE.7020006-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-02-09 12:55 ` Mark Brown
2012-02-09 12:55 ` Mark Brown
[not found] ` <20120209125505.GI3058-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-02-09 17:14 ` Laxman Dewangan
2012-02-09 17:14 ` Laxman Dewangan
[not found] ` <4F33FEE7.9080608-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-02-09 18:12 ` Mark Brown
2012-02-09 18:12 ` Mark Brown
[not found] ` <20120209181224.GK3058-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-02-10 9:13 ` Laxman Dewangan
2012-02-10 9:13 ` Laxman Dewangan
[not found] ` <4F34DFC7.3020208-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-02-10 11:06 ` Mark Brown
2012-02-10 11:06 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F33BFDE.7020006@nvidia.com \
--to=ldewangan-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
--cc=gregkh-l3A5Bk7waGM@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.