From: broonie@kernel.org (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] spi: clps711x: Driver refactor
Date: Wed, 1 Jan 2014 13:23:34 +0000 [thread overview]
Message-ID: <20140101132334.GP31886@sirena.org.uk> (raw)
In-Reply-To: <1388556568-10973-1-git-send-email-shc_work@mail.ru>
On Wed, Jan 01, 2014 at 10:09:28AM +0400, Alexander Shiyan wrote:
> This is a complex patch for refactoring CLPS711X SPI driver.
> Major changes:
> - Eliminate <mach/hardware.h> usage.
> - Devicetree support.
This really needs to be broken up into smaller changes so it can be
reviewed, your summary would be good as the cover mail for a patch
series but not for a single commit. We need one change per commit with
a clear commit message saying what's going on.
There's a large set of changes here with no explanation of most of them
which means I can't really tell if the changes are doing what they're
supposed to and at least some of them seem to be doing things beyond
either description above. I'd expect at least two changes, one for the
mach/hardware.h elimination and one for the bindings, but probably each
of those should be split into several changes. For example the bindings
changes might have some patches doing refactorings before adding the
actual bindings.
> - /* We are expect that SPI-device is not selected */
> - gpio_direction_output(hw->chipselect[spi->chip_select],
> - !(spi->mode & SPI_CS_HIGH));
> + ret = devm_gpio_request(&spi->master->dev, spi->cs_gpio, NULL);
> + if (ret)
> + return ret;
For example this is a refectoring to use devm and request the GPIO which
is good but definitely not something I'd expect to see happening in the
same commit as anything mentioned in the changelog.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140101/91591fc5/attachment.sig>
next prev parent reply other threads:[~2014-01-01 13:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-01 6:09 [PATCH 1/2] spi: clps711x: Driver refactor Alexander Shiyan
2014-01-01 13:23 ` Mark Brown [this message]
2014-01-01 13:44 ` Alexander Shiyan
2014-01-01 15:07 ` Mark Brown
2014-01-02 17:46 ` Arnd Bergmann
2014-01-02 18:20 ` Alexander Shiyan
2014-01-02 18:25 ` Mark Brown
2014-01-02 19:03 ` Arnd Bergmann
-- strict thread matches above, loose matches on Subject: below --
2016-07-06 14:53 Arnd Bergmann
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=20140101132334.GP31886@sirena.org.uk \
--to=broonie@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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).