From: Peng Fan <van.freenix@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] dm: spi: soft_spi: support linux way and bug fix
Date: Mon, 11 Apr 2016 13:45:46 +0800 [thread overview]
Message-ID: <20160411054545.GD8379@linux-7smt.suse> (raw)
In-Reply-To: <CAPnjgZ2oL55SEjVEojT+umnBg1Rgb6AgWf-=xeOAdVSr7+dQXg@mail.gmail.com>
Hi Simon,
On Sat, Apr 09, 2016 at 12:33:37PM -0600, Simon Glass wrote:
>Hi Peng,
>
>On 21 March 2016 at 02:29, Peng Fan <van.freenix@gmail.com> wrote:
>> 1. Support compatible string "spi-gpio" which is used by Linux
>> Linux use different bindings, so use UBOOT_COMPAT and
>> LINUX_COMPAT to differentiate them.
>
>There is only one user - instead of this, can you please drop the
>U-Boot binding and move the universal board over to use your new
>binding? There should be only one.
Ok. Will drop the U-Boot binding.
>
>> 2. Bug fix
>> When doing xfer, should use device->parent, but not device
>> When doing bit xfer, should use "!!(tmpdout & 0x80)", but not
>> "(tmpdout & 0x80)"
>> 3. Introduce SPI_MASTER_NO_RX and SPI_MASTER_NO_TX to handle
>> no rx or no tx case.
>
>Perhaps put these two in separate patches?
Will try it.
Thanks,
Peng.
>
>> 4. Tested on i.MX6 UltraLite board with 74LV595 spi-gpio chip.
>>
>> Signed-off-by: Peng Fan <van.freenix@gmail.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> Cc: Jagan Teki <jteki@openedev.com>
>> Cc: Stefano Babic <sbabic@denx.de>
>> ---
>> drivers/spi/soft_spi.c | 75 ++++++++++++++++++++++++++++++++++++++------------
>> 1 file changed, 57 insertions(+), 18 deletions(-)
>
>Regards,
>Simon
prev parent reply other threads:[~2016-04-11 5:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-21 8:29 [U-Boot] [PATCH 1/2] dm: spi: soft_spi: support linux way and bug fix Peng Fan
2016-03-21 8:29 ` [U-Boot] [PATCH 2/2] dm: gpio: introduce 74x164 driver Peng Fan
2016-04-09 18:33 ` Simon Glass
2016-04-11 5:44 ` Peng Fan
2016-04-09 18:33 ` [U-Boot] [PATCH 1/2] dm: spi: soft_spi: support linux way and bug fix Simon Glass
2016-04-11 5:45 ` Peng Fan [this message]
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=20160411054545.GD8379@linux-7smt.suse \
--to=van.freenix@gmail.com \
--cc=u-boot@lists.denx.de \
/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