From: Alexandru Ardelean <alexandru.ardelean@analog.com>
To: <linux-iio@vger.kernel.org>, <linux-spi@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: <jic23@kernel.org>, <broonie@kernel.org>,
Alexandru Ardelean <alexandru.ardelean@analog.com>
Subject: [PATCH v3 0/3] spi: introduce `struct spi_delay` data-type
Date: Mon, 16 Sep 2019 10:10:21 +0300 [thread overview]
Message-ID: <20190916071024.21447-1-alexandru.ardelean@analog.com> (raw)
Discussion reference:
https://lore.kernel.org/lkml/20190913114550.956-1-alexandru.ardelean@analog.com/
This changeset introduces an `spi_delay` struct/data-type and makes the
IIO ADIS driver library the first user of this.
The patchset base is Jonathan's `iio/togreg` branch, but it also applies on
Mark's `spi/for-next` branch.
The reasons for choosing `cs_change_delay`, is:
1. this change introduces delay units
2. it is not yet widely used, meaning it can still be changed
Some delays like `delay` from `spi_transfer` would require a longer
update-time change & discussion.
Alexandru Ardelean (3):
spi: move `cs_change_delay` backwards compat logic outside switch
spi: introduce spi_delay struct as "value + unit" & spi_delay_exec()
spi: make `cs_change_delay` the first user of the `spi_delay` logic
drivers/iio/imu/adis.c | 24 +++++++--------
drivers/spi/spi.c | 68 +++++++++++++++++++++++++++++++----------
include/linux/spi/spi.h | 22 +++++++++----
3 files changed, 80 insertions(+), 34 deletions(-)
--
Changelog v2 -> v3:
* squash patches 3 & 4 into a single patch; otherwise the kernel is in
broken state between those 2 patches
Changelog v1 -> v2:
* split away from the RFC patchset, which aims to be a broader explanation
for this changeset; parts of v1 are not 100% defined yet, and may require
some discussion and refinement.
2.20.1
next reply other threads:[~2019-09-16 7:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-16 7:10 Alexandru Ardelean [this message]
2019-09-16 7:10 ` [PATCH v3 1/3] spi: move `cs_change_delay` backwards compat logic outside switch Alexandru Ardelean
2019-09-16 7:10 ` [PATCH v3 2/3] spi: introduce spi_delay struct as "value + unit" & spi_delay_exec() Alexandru Ardelean
2019-09-16 7:10 ` [PATCH v3 3/3] spi: make `cs_change_delay` the first user of the `spi_delay` logic Alexandru Ardelean
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=20190916071024.21447-1-alexandru.ardelean@analog.com \
--to=alexandru.ardelean@analog.com \
--cc=broonie@kernel.org \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).