From: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: P L Sai Krishna
<lakshmi.sai.krishna.potthuri-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
Cc: "Michal Simek"
<michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
"Soren Brinkmann"
<soren.brinkmann-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
"David Woodhouse" <dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
"Brian Norris"
<computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"Javier Martinez Canillas"
<javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>,
"Boris Brezillon"
<boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
"Stephen Warren"
<swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
"Geert Uytterhoeven"
<geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>,
"Andrew F. Davis" <afd-l0cyMroinI0@public.gmane.org>,
"Marek Vasut" <marex-ynQEQJNshbs@public.gmane.org>,
"Jagan Teki" <jteki-oRp2ZoJdM/RWk0Htik3J/w@public.gmane.org>,
"Rafał Miłecki" <zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
"Harini Katakam"
<harinik-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
"Punnaiah Choudary Kalluri"
<punnaia-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
"Anirudha Sarangi"
<anirudh-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
"P L Sai Krishna"
<lakshmis-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
Subject: Re: [LINUX PATCH 1/2] mtd: Added dummy entry in the spi_transfer structure.
Date: Mon, 21 Mar 2016 13:07:34 +0000 [thread overview]
Message-ID: <20160321130734.GS2566@sirena.org.uk> (raw)
In-Reply-To: <1458562809-36114-1-git-send-email-lakshmis-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]
On Mon, Mar 21, 2016 at 05:50:08PM +0530, P L Sai Krishna wrote:
> This patch does following things.
> 1. Added dummy entry in the spi_transfer structure.
> 2. Assigned dummy cycles to dummy member in the transfer
> structure during read operation.
Please try to follow the patch submission process covered in
SubmittingPatches, in particular please use subject lines reflecting the
style for the subsystem (which helps people identify relevant changes to
review) and...
> drivers/mtd/devices/m25p80.c | 1 +
> include/linux/spi/spi.h | 2 ++
> 2 files changed, 3 insertions(+)
...split things up into individual patches, for example here you're
both adding a new feature and adding a user of that feature in a single
patch.
> + * @dummy: number of dummy cycles.
This needs to be clearer about what a dummy cycle is and where it gets
inserted. We probably also want a better name, just "dummy" makes it
look like a padding field in the structure. How about dummy_cycles?
> @@ -752,6 +753,7 @@ struct spi_transfer {
> u8 bits_per_word;
> u16 delay_usecs;
> u32 speed_hz;
> + u32 dummy;
>
> struct list_head transfer_list;
> };
This isn't enough to add the feature - a client driver trying to make
use of this needs to be able to tell if the cycles are actually going to
be inserted. I'd expect to see a capability flag that can be checked
and some error checking so that if we try to do a transfer with dummy
cycles and can't support it we don't silently ignore the dummy cycles,
ideally also something that'll handle multiples of 8 bits with SPI
controllers that don't otherwise support this feature.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2016-03-21 13:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-21 12:20 [LINUX PATCH 1/2] mtd: Added dummy entry in the spi_transfer structure P L Sai Krishna
2016-03-21 12:20 ` [LINUX PATCH 2/2] spi:zynqmp:gqspi: Added separate dummy entry P L Sai Krishna
[not found] ` <1458562809-36114-1-git-send-email-lakshmis-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2016-03-21 13:07 ` Mark Brown [this message]
[not found] ` <20160321130734.GS2566-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-03-22 6:39 ` [LINUX PATCH 1/2] mtd: Added dummy entry in the spi_transfer structure Lakshmi Sai Krishna Potthuri
[not found] ` <4FF8F58FAA9D5D4193D4E554E4352C5902C6D34C-4lKfpRxZ5ekkx2a1wsGfbYg+Gb3gawCHQz34XiSyOiE@public.gmane.org>
2016-03-22 10:06 ` Mark Brown
2016-03-25 13:41 ` Lakshmi Sai Krishna Potthuri
[not found] ` <4FF8F58FAA9D5D4193D4E554E4352C5902C6DB59-4lKfpRxZ5ekkx2a1wsGfbYg+Gb3gawCHQz34XiSyOiE@public.gmane.org>
2016-03-25 15:01 ` Mark Brown
2016-03-31 6:14 ` Lakshmi Sai Krishna Potthuri
[not found] ` <4FF8F58FAA9D5D4193D4E554E4352C5902C6E92A-4lKfpRxZ5ekkx2a1wsGfbYg+Gb3gawCHQz34XiSyOiE@public.gmane.org>
2016-03-31 8:28 ` Geert Uytterhoeven
[not found] ` <CAMuHMdV0B8Qka57nMv009aLdQ-fdBpAYr3wONQ7xaMfKXrORvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-31 11:12 ` Lakshmi Sai Krishna Potthuri
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=20160321130734.GS2566@sirena.org.uk \
--to=broonie-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=afd-l0cyMroinI0@public.gmane.org \
--cc=anirudh-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
--cc=boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org \
--cc=harinik-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
--cc=javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org \
--cc=jteki-oRp2ZoJdM/RWk0Htik3J/w@public.gmane.org \
--cc=lakshmi.sai.krishna.potthuri-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
--cc=lakshmis-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=marex-ynQEQJNshbs@public.gmane.org \
--cc=michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
--cc=punnaia-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
--cc=soren.brinkmann-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=zajec5-Re5JQEeQqe8AvxtiuMwx3w@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 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).