Re: [PATCH v2 2/2] spi: mediatek: add spi support for mt7622 IC

2017-06-11 Thread kbuild test robot
Hi Leilk,

[auto build test ERROR on spi/for-next]
[also build test ERROR on v4.12-rc4 next-20170609]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Leilk-Liu/add-mt7622-spi-support/20170611-185202
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

>> drivers//spi/spi-mt65xx.c:110:2: error: unknown field 'adjust_reg' specified 
>> in initializer
 .adjust_reg = true,
 ^

vim +/adjust_reg +110 drivers//spi/spi-mt65xx.c

   104  };
   105  
   106  static const struct mtk_spi_compatible mtk_common_compat;
   107  
   108  static const struct mtk_spi_compatible mt7622_compat = {
   109  .must_tx = true,
 > 110  .adjust_reg = true,
   111  };
   112  
   113  static const struct mtk_spi_compatible mt8173_compat = {

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v2 2/2] spi: mediatek: add spi support for mt7622 IC

2017-06-11 Thread kbuild test robot
Hi Leilk,

[auto build test ERROR on spi/for-next]
[also build test ERROR on v4.12-rc4 next-20170609]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Leilk-Liu/add-mt7622-spi-support/20170611-185202
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

>> drivers//spi/spi-mt65xx.c:110:2: error: unknown field 'adjust_reg' specified 
>> in initializer
 .adjust_reg = true,
 ^

vim +/adjust_reg +110 drivers//spi/spi-mt65xx.c

   104  };
   105  
   106  static const struct mtk_spi_compatible mtk_common_compat;
   107  
   108  static const struct mtk_spi_compatible mt7622_compat = {
   109  .must_tx = true,
 > 110  .adjust_reg = true,
   111  };
   112  
   113  static const struct mtk_spi_compatible mt8173_compat = {

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[PATCH v2 2/2] spi: mediatek: add spi support for mt7622 IC

2017-06-09 Thread Leilk Liu
this patch add support for mt7622 IC.

Signed-off-by: Leilk Liu 
---
 drivers/spi/spi-mt65xx.c |9 +
 1 file changed, 9 insertions(+)

diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c
index eae73b5..4bf6495 100644
--- a/drivers/spi/spi-mt65xx.c
+++ b/drivers/spi/spi-mt65xx.c
@@ -104,6 +104,12 @@ struct mtk_spi {
 };
 
 static const struct mtk_spi_compatible mtk_common_compat;
+
+static const struct mtk_spi_compatible mt7622_compat = {
+   .must_tx = true,
+   .adjust_reg = true,
+};
+
 static const struct mtk_spi_compatible mt8173_compat = {
.need_pad_sel = true,
.must_tx = true,
@@ -127,6 +133,9 @@ struct mtk_spi {
{ .compatible = "mediatek,mt6589-spi",
.data = (void *)_common_compat,
},
+   { .compatible = "mediatek,mt7622-spi",
+   .data = (void *)_compat,
+   },
{ .compatible = "mediatek,mt8135-spi",
.data = (void *)_common_compat,
},
-- 
1.7.9.5



[PATCH v2 2/2] spi: mediatek: add spi support for mt7622 IC

2017-06-09 Thread Leilk Liu
this patch add support for mt7622 IC.

Signed-off-by: Leilk Liu 
---
 drivers/spi/spi-mt65xx.c |9 +
 1 file changed, 9 insertions(+)

diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c
index eae73b5..4bf6495 100644
--- a/drivers/spi/spi-mt65xx.c
+++ b/drivers/spi/spi-mt65xx.c
@@ -104,6 +104,12 @@ struct mtk_spi {
 };
 
 static const struct mtk_spi_compatible mtk_common_compat;
+
+static const struct mtk_spi_compatible mt7622_compat = {
+   .must_tx = true,
+   .adjust_reg = true,
+};
+
 static const struct mtk_spi_compatible mt8173_compat = {
.need_pad_sel = true,
.must_tx = true,
@@ -127,6 +133,9 @@ struct mtk_spi {
{ .compatible = "mediatek,mt6589-spi",
.data = (void *)_common_compat,
},
+   { .compatible = "mediatek,mt7622-spi",
+   .data = (void *)_compat,
+   },
{ .compatible = "mediatek,mt8135-spi",
.data = (void *)_common_compat,
},
-- 
1.7.9.5