lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 28 May 2020 02:46:04 +0300
From:   Vladimir Oltean <olteanv@...il.com>
To:     "David S. Miller" <davem@...emloft.net>,
        Mark Brown <broonie@...nel.org>,
        lkml <linux-kernel@...r.kernel.org>
Cc:     netdev <netdev@...r.kernel.org>, Andrew Lunn <andrew@...n.ch>,
        Vivien Didelot <vivien.didelot@...il.com>,
        Florian Fainelli <f.fainelli@...il.com>,
        Russell King - ARM Linux admin <linux@...linux.org.uk>,
        Antoine Tenart <antoine.tenart@...tlin.com>,
        Alexandre Belloni <alexandre.belloni@...tlin.com>,
        Horatiu Vultur <horatiu.vultur@...rochip.com>,
        "Allan W. Nielsen" <allan.nielsen@...rochip.com>,
        Microchip Linux Driver Support <UNGLinuxDriver@...rochip.com>,
        Alexandru Marginean <alexandru.marginean@....com>,
        Claudiu Manoil <claudiu.manoil@....com>,
        "Madalin Bucur (OSS)" <madalin.bucur@....nxp.com>,
        radu-andrei.bulie@....com, fido_max@...ox.ru
Subject: Re: [PATCH net-next 01/11] regmap: add helper for per-port regfield initialization

On Thu, 28 May 2020 at 02:41, Vladimir Oltean <olteanv@...il.com> wrote:
>
> From: Vladimir Oltean <vladimir.oltean@....com>
>
> Similar to the standalone regfields, add an initializer for the users
> who need to set .id_size and .id_offset in order to use the
> regmap_fields_update_bits_base API.
>
> Signed-off-by: Vladimir Oltean <vladimir.oltean@....com>
> ---

Oops, looks like I forgot to copy Mark on this patch, sorry...
Since you don't have this series in your inbox, here's the patchwork link to it:
https://patchwork.ozlabs.org/project/netdev/cover/20200527234113.2491988-1-olteanv@gmail.com/

>  include/linux/regmap.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/include/linux/regmap.h b/include/linux/regmap.h
> index 40b07168fd8e..87703d105191 100644
> --- a/include/linux/regmap.h
> +++ b/include/linux/regmap.h
> @@ -1134,6 +1134,14 @@ struct reg_field {
>                                 .msb = _msb,    \
>                                 }
>
> +#define REG_FIELD_ID(_reg, _lsb, _msb, _size, _offset) {       \
> +                               .reg = _reg,                    \
> +                               .lsb = _lsb,                    \
> +                               .msb = _msb,                    \
> +                               .id_size = _size,               \
> +                               .id_offset = _offset,           \
> +                               }
> +
>  struct regmap_field *regmap_field_alloc(struct regmap *regmap,
>                 struct reg_field reg_field);
>  void regmap_field_free(struct regmap_field *field);
> --
> 2.25.1
>

Regards,
-Vladimir

Powered by blists - more mailing lists