Re: [U-Boot] [PATCH 1/2] dm: spi: soft_spi: support linux way and bug fix

2016-04-10 Thread Peng Fan
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 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. >

Re: [U-Boot] [PATCH 1/2] dm: spi: soft_spi: support linux way and bug fix

2016-04-09 Thread Simon Glass
Hi Peng, On 21 March 2016 at 02:29, Peng Fan 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 bindin

[U-Boot] [PATCH 1/2] dm: spi: soft_spi: support linux way and bug fix

2016-03-21 Thread Peng Fan
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. 2. Bug fix When doing xfer, should use device->parent, but not device When doing bit xfer, should use "!!(tmpdout & 0x80)", but not