From: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Mark Brown <broonie@kernel.org>, <linux-spi@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: David Lechner <dlechner@baylibre.com>
Subject: Re: [PATCH v3 0/2] spi: Introduce and use spi_bpw_to_bytes()
Date: Thu, 17 Apr 2025 21:52:04 +0530 [thread overview]
Message-ID: <4fbc3fc6-df2e-4d13-a152-47fc4d77a082@quicinc.com> (raw)
In-Reply-To: <20250417152529.490582-1-andriy.shevchenko@linux.intel.com>
On 4/17/2025 8:54 PM, Andy Shevchenko wrote:
> Recently in the discussion with David the idea of having
> a common helper popped up. The helper converts the given
> bits per word to bytes. The result will always be power-of-two
> (e.g. for 37 bits it returns 8 bytes) or 0 for 0 input.
> More details are in the respective code comment.
>
> This mini-series introduces it and replaces current users
> under drivers/spi and we expect more (and possibly some
> lurking in other subsystems).
>
> Mark, if you okay with the idea, please, make this to be
> an immutable branch or tag for others to pull.
>
> In v3:
> - fixed the typos in the examples
>
> In v2:
> - improved examples in the code comment and commit message (David)
>
> Andy Shevchenko (2):
> spi: Add spi_bpw_to_bytes() helper and use it
> spi: dw: Use spi_bpw_to_bytes() helper
>
> drivers/spi/spi-dw-core.c | 2 +-
> drivers/spi/spi.c | 2 +-
> include/linux/spi/spi.h | 26 ++++++++++++++++++++++++++
> 3 files changed, 28 insertions(+), 2 deletions(-)
>
Acked-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
next prev parent reply other threads:[~2025-04-17 16:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-17 15:24 Andy Shevchenko
2025-04-17 15:24 ` [PATCH v3 1/2] spi: Add spi_bpw_to_bytes() helper and use it Andy Shevchenko
2025-04-17 15:24 ` [PATCH v3 2/2] spi: dw: Use spi_bpw_to_bytes() helper Andy Shevchenko
2025-04-17 15:30 ` [PATCH v3 0/2] spi: Introduce and use spi_bpw_to_bytes() David Lechner
2025-04-17 16:00 ` Andy Shevchenko
2025-04-17 16:22 ` Mukesh Kumar Savaliya [this message]
2025-04-18 5:25 ` 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=4fbc3fc6-df2e-4d13-a152-47fc4d77a082@quicinc.com \
--to=quic_msavaliy@quicinc.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=broonie@kernel.org \
--cc=dlechner@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®