From: Alexander Aring <alex.aring@gmail.com>
To: Baptiste Clenet <bapclenet@gmail.com>
Cc: Varka Bhadram <varkabhadram@gmail.com>, linux-wpan@vger.kernel.org
Subject: Re: ping6 doesn't use at86rf230 driver
Date: Tue, 30 Jun 2015 00:09:33 +0200 [thread overview]
Message-ID: <20150629220929.GB1165@omega> (raw)
In-Reply-To: <CAPpUg6NUwAGo402HgJkwcDTyT3HPBAAnSEW7V63zUyv5PHSJ8A@mail.gmail.com>
Hi,
On Mon, Jun 29, 2015 at 01:44:42PM +0200, Baptiste Clenet wrote:
> 2015-06-29 11:44 GMT+02:00 Baptiste Clenet <bapclenet@gmail.com>:
> > 2015-06-29 11:13 GMT+02:00 Varka Bhadram <varkabhadram@gmail.com>:
> >> On 06/29/2015 01:39 PM, Alexander Aring wrote:
> >>>>
> >>>> Alexander, which version of Linux bluetooth-next tree is based on?
> >>>
> >>> 4.1.0-rc4-01278-gfbb12f9-dirty
> >>>
> >>> this is currently in my development branch. Alternative you can check
> >>> the Makefile of linux-kernel [0].
> >>>
> >>> VERSION = 4
> >>> PATCHLEVEL = 1
> >>> SUBLEVEL = 0
> >>> EXTRAVERSION = -rc4
> >>> NAME = Hurr durr I'ma sheep
> >>>
> >>>
> >>>
> >>> I really have no idea why you don't have a wpan interface by default.
> >>
> >>
> >> May be the wpan interface is down :-).
> >>
> >> can you please check with: *ifconfig -a*
...
>
> Every time I set lowpan interface up, I get an error:
>
> root@OpenWrt:/# ip link add link wpan0 name lowpan0 type lowpan
> root@OpenWrt:/# ip link set lowpan0 up
> root@OpenWrt:/# [ 6950.140000] at86rf230 spi32766.1: unexcept state
> change from 0x00 to 0x09. Actual state: 0x00
> [ 6950.150000] ------------[ cut here ]------------
> [ 6950.160000] WARNING: CPU: 0 PID: 175 at
> drivers/spi/spi-mt7621.c:146
> mt7621_spi_transfer_one_message+0x158/0x3b4()
> [ 6950.180000] Modules linked in: at86rf230 pppoe ppp_async
> iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6
> nf_conntrack_ipv4 iph
> [ 6950.390000] CPU: 0 PID: 175 Comm: spi32766 Not tainted 4.0.4 #20
> [ 6950.400000] Stack : 00000000 00000000 00000001 00000000 802b86d4
> 80311de3 000000af 8035342c
> 818ee570 819a2388 00010000 00000000 00000000 80049318
> 00000003 802bd674
> 00000092 819a2388 802bbc78 819bbd7c 00000000 8004785c
> 00000000 00000000
> 00000001 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> ...
> [ 6950.470000] Call Trace:
> [ 6950.480000] [<8001475c>] show_stack+0x48/0x70
> [ 6950.490000] [<80025260>] warn_slowpath_common+0xa0/0xd0
> [ 6950.500000] [<80025318>] warn_slowpath_null+0x18/0x24
> [ 6950.510000] [<801b7ee8>] mt7621_spi_transfer_one_message+0x158/0x3b4
> [ 6950.520000] [<801b6e4c>] __spi_pump_messages+0x404/0x464
> [ 6950.530000] [<8003ad80>] kthread_worker_fn+0xa8/0xf4
> [ 6950.540000] [<8003aea4>] kthread+0xd8/0xe4
> [ 6950.550000] [<80004878>] ret_from_kernel_thread+0x14/0x1c
> [ 6950.560000]
> [ 6950.560000] ---[ end trace d93d9398d7e8323c ]---
>
> Is that normal?
>
No. When the lowpan interface cames up, the IPv6 stack sends some ndisc
messages (you can capture that over wireshark/tcpdump). This means the
transceiver driver tries to send some frames.
The warning:
"[ 6950.140000] at86rf230 spi32766.1: unexcept state change from 0x00 to
0x09. Actual state: 0x00"
smells like you reading zeros on the bus. It wonders me how the driver
survived the probing, because it will read some ID registers.
Does the probing working well on your side, look in dmesg if the
transceiver was right detected.
More details about the messages is:
You try to chenges from state 0x00 (was readed from register) to 0x09
(TX_ON, not readed from any register. It's set by the transceiver). It
fails and detected you are in state 0x00 (readed from register). So it
smells like you reading zeros only.
Try to check the spi bus and chipselect, also check the slp_tr pin.
Otherwise I have no idea why you reading zeros only.
- Alex
next prev parent reply other threads:[~2015-06-29 22:09 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-25 16:52 ping6 doesn't use at86rf230 driver Baptiste Clenet
2015-06-25 17:15 ` Alexander Aring
2015-06-25 17:30 ` Alexander Aring
2015-06-26 7:17 ` Baptiste Clenet
2015-06-26 7:20 ` Baptiste Clenet
2015-06-26 8:03 ` Alexander Aring
2015-06-26 8:24 ` Baptiste Clenet
2015-06-29 7:01 ` Baptiste Clenet
2015-06-29 8:09 ` Alexander Aring
2015-06-29 9:13 ` Varka Bhadram
2015-06-29 9:44 ` Baptiste Clenet
2015-06-29 11:44 ` Baptiste Clenet
2015-06-29 22:09 ` Alexander Aring [this message]
2015-06-30 9:12 ` Baptiste Clenet
2015-07-01 8:21 ` Alexander Aring
2015-07-01 9:22 ` Baptiste Clenet
2015-07-01 9:45 ` Baptiste Clenet
2015-07-01 11:59 ` Baptiste Clenet
2015-07-01 15:16 ` Alexander Aring
2015-07-02 15:02 ` Baptiste Clenet
2015-07-02 15:15 ` Baptiste Clenet
2015-07-02 16:12 ` Alexander Aring
2015-07-03 13:24 ` Baptiste Clenet
2015-07-03 13:37 ` Baptiste Clenet
2015-07-03 15:01 ` Baptiste Clenet
2015-07-03 15:47 ` Alexander Aring
2015-07-03 16:33 ` Baptiste Clenet
2015-07-03 17:37 ` Alexander Aring
2015-07-03 22:13 ` Baptiste Clenet
2015-07-04 15:36 ` Alexander Aring
2015-07-05 10:38 ` Baptiste Clenet
2015-07-08 8:35 ` Baptiste Clenet
2015-07-09 11:19 ` Baptiste Clenet
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=20150629220929.GB1165@omega \
--to=alex.aring@gmail.com \
--cc=bapclenet@gmail.com \
--cc=linux-wpan@vger.kernel.org \
--cc=varkabhadram@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.