#20521: spi transfer error on mt7628 using SPI_CS1
----------------------------+----------------------------------
Reporter: summer | Owner: developers
Type: defect | Status: new
Priority: high | Milestone: Chaos Calmer (trunk)
Component: kernel | Version: Trunk
Keywords: mt7628 spi_cs1 |
----------------------------+----------------------------------
we use SPI_CS1 on my device, and do some change in the source
in file drivers/spi/spi-mt7621.c
we change
master->num_chipselect = 1;
to
master->num_chipselect = 2;
and add spidev to my DTS,
by using the command, it show:
root@OpenWrt:/# spidev_test -D /dev/spidev32766.1
spi mode: 0x0[ 196.130000] ------------[ cut here ]------------
bits per word:[ 196.130000] WARNING: CPU: 0 PID: 161 at drivers/spi/spi-
mt7621.c:137 mt7621_spi_transfer_one_message+0x158/0x360()
8
max speed: 5[ 196.140000] Modules linked in:00000 Hz (500 KH qcserialz)
pppoe ppp_async option iptable_nat usb_wwan sierra pppox ppp_generic
nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE
xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit
xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT usbserial
spidev slhc nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat
nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache
nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter
ip_tables crc_ccitt i2c_gpio i2c_algo_bit i2c_dev i2c_core mt76x8
ralink_eeprom_api ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6
nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables
x_tables ipv6 mmc_block mmc_core leds_gpio ohci_platform ohci_hcd
ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[ 196.220000] CPU: 0 PID: 161 Comm: spi32766 Tainted: G W
3.18.20 #8
[ 196.230000] Stack : 00000000 00000000 00000000 00000000 803441f2
00000042 00000000 801ae398
00000001 8f8c7b88 802a53d0 802fc9c3 000000a1 8034341c 8f900bf8
8f8c7b88
00010000 80309578 00000000 80047400 00000003 80024170 00000089
8f8c7b88
802a88d4 8f979d74 00000000 00000000 00000000 00000000 00000000
00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
...
[ 196.270000] Call Trace:
[ 196.270000] [<800140b4>] show_stack+0x48/0x70
[ 196.270000] [<800242ec>] warn_slowpath_common+0x84/0xb4
[ 196.280000] [<800243a4>] warn_slowpath_null+0x18/0x24
[ 196.290000] [<801ae398>] mt7621_spi_transfer_one_message+0x158/0x360
[ 196.290000] [<801ad4e8>] spi_pump_messages+0x3cc/0x438
[ 196.300000] [<80039b9c>] kthread_worker_fn+0xa8/0xf4
[ 196.300000] [<80039cc0>] kthread+0xd8/0xe4
[ 196.310000] [<80004878>] ret_from_kernel_thread+0x14/0x1c
[ 196.310000]
[ 196.310000] ---[ end trace 828b306131dd7246 ]---
can't send spi message: Input/output error
Aborted
can you help me to solve this problem? thanks
--
Ticket URL: <https://dev.openwrt.org/ticket/20521>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets