From: Qipan Li Date: Tue, 2 Sep 2014 09:01:01 +0000 (+0800) Subject: spi: sirf: correct spi gpio and hardware chipselect behaviour X-Git-Tag: fixes-for-v3.18-merge-window~30^2~1^6~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7850cdfc8028cc7d522c032f64c62c1c01e85875;p=pandora-kernel.git spi: sirf: correct spi gpio and hardware chipselect behaviour the old codes check the cs-gpios, if the gpio number is 0 like: <&gpio, 0, 0>, the driver will use the only hardware chipselect. this is wrong because of_spi_register_master() can read property cs-gpios from device node and set the spi master's cs number and gpio cs automatically based on whether the cs-gpios is valid. this patch fixes the beviour of CSR spi driver and move to a core level supported way. Signed-off-by: Qipan Li Signed-off-by: Barry Song Signed-off-by: Mark Brown --- Reading git-diff-tree failed