From: <Arun.Ramadoss@microchip.com>
To: <olteanv@gmail.com>, <UNGLinuxDriver@microchip.com>,
<vivien.didelot@gmail.com>, <andrew@lunn.ch>,
<f.fainelli@gmail.com>, <kuba@kernel.org>, <edumazet@google.com>,
<pabeni@redhat.com>, <o.rempel@pengutronix.de>,
<Woojung.Huh@microchip.com>, <davem@davemloft.net>
Cc: <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
<kernel@pengutronix.de>
Subject: Re: [PATCH net-next v2 2/3] net: dsa: microchip: add ksz_rmw8() function
Date: Tue, 8 Nov 2022 05:19:56 +0000 [thread overview]
Message-ID: <b0da927408ecfd8110782429ed20026abe484f87.camel@microchip.com> (raw)
In-Reply-To: <20221107135755.2664997-3-o.rempel@pengutronix.de>
On Mon, 2022-11-07 at 14:57 +0100, Oleksij Rempel wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you
> know the content is safe
>
> Add ksz_rmw8(), it will be used in the next patch.
>
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
> drivers/net/dsa/microchip/ksz_common.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/net/dsa/microchip/ksz_common.h
> b/drivers/net/dsa/microchip/ksz_common.h
> index 7de5070637ec..85ce6ec573ba 100644
> --- a/drivers/net/dsa/microchip/ksz_common.h
> +++ b/drivers/net/dsa/microchip/ksz_common.h
> @@ -453,6 +453,11 @@ static inline int ksz_write64(struct ksz_device
> *dev, u32 reg, u64 value)
> return regmap_bulk_write(dev->regmap[2], reg, val, 2);
> }
>
> +static inline int ksz_rmw8(struct ksz_device *dev, int offset, u8
> mask, u8 val)
> +{
> + return regmap_update_bits(dev->regmap[0], offset, mask, val);
> +}
> +
Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com>
> static inline int ksz_pread8(struct ksz_device *dev, int port, int
> offset,
> u8 *data)
> {
> --
> 2.30.2
>
next prev parent reply other threads:[~2022-11-08 5:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-07 13:57 [PATCH net-next v2 0/3] net: dsa: microchip: add MTU support for KSZ8 series Oleksij Rempel
2022-11-07 13:57 ` [PATCH net-next v2 1/3] net: dsa: microchip: move max mtu to one location Oleksij Rempel
2022-11-08 5:15 ` Arun.Ramadoss
2022-11-07 13:57 ` [PATCH net-next v2 2/3] net: dsa: microchip: add ksz_rmw8() function Oleksij Rempel
2022-11-08 5:19 ` Arun.Ramadoss [this message]
2022-11-07 13:57 ` [PATCH net-next v2 3/3] net: dsa: microchip: ksz8: add MTU configuration support Oleksij Rempel
2022-11-08 5:28 ` Arun.Ramadoss
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=b0da927408ecfd8110782429ed20026abe484f87.camel@microchip.com \
--to=arun.ramadoss@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=Woojung.Huh@microchip.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kernel@pengutronix.de \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=vivien.didelot@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome