linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bobby Jones <rjones@gateworks.com>
To: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>,
	Martin Kepplinger <martin.kepplinger@puri.sm>
Cc: Jonathan Cameron <jic23@kernel.org>, linux-iio@vger.kernel.org
Subject: LSM9DS1 testing with st_lsm6dsx driver
Date: Thu, 19 Sep 2019 17:53:36 -0700	[thread overview]
Message-ID: <CALAE=UCTTOhvUofvk1ZrLZ2aNoSMYyFq8dHoaDxRc2aOdbV8jA@mail.gmail.com> (raw)

Hello Lorenzo and Martin,

I'm testing the LSM9DS1 support recently added to the st_lsm6dsx
iio/imu driver and I'm encountering a device tree problem related to
interrupt config.

Here's the exception I'm seeing:
[    4.172529] irq 277: nobody cared (try booting with the "irqpoll" option)
[    4.179341] CPU: 0 PID: 0 Comm: swapper/0 Not tainted
5.3.0-rc5-00322-g792b824-dirty #7
[    4.187359] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[    4.193920] [<c0112750>] (unwind_backtrace) from [<c010d018>]
(show_stack+0x10/0x14)
[    4.201690] [<c010d018>] (show_stack) from [<c0c2bfc8>]
(dump_stack+0xd8/0x10c)
[    4.209027] [<c0c2bfc8>] (dump_stack) from [<c01923fc>]
(__report_bad_irq+0x24/0xc0)
[    4.216793] [<c01923fc>] (__report_bad_irq) from [<c0192820>]
(note_interrupt+0x27c/0x2dc)
[    4.225078] [<c0192820>] (note_interrupt) from [<c018f174>]
(handle_irq_event_percpu+0x54/0x7c)
[    4.233793] [<c018f174>] (handle_irq_event_percpu) from
[<c018f1d4>] (handle_irq_event+0x38/0x5c)
[    4.242681] [<c018f1d4>] (handle_irq_event) from [<c0193664>]
(handle_level_irq+0xc8/0x154)
[    4.251051] [<c0193664>] (handle_level_irq) from [<c018df58>]
(generic_handle_irq+0x20/0x34)
[    4.259510] [<c018df58>] (generic_handle_irq) from [<c053c348>]
(mxc_gpio_irq_handler+0xc4/0xf8)
[    4.268313] [<c053c348>] (mxc_gpio_irq_handler) from [<c053c3e0>]
(mx3_gpio_irq_handler+0x64/0xb8)
[    4.277287] [<c053c3e0>] (mx3_gpio_irq_handler) from [<c018df58>]
(generic_handle_irq+0x20/0x34)
[    4.286089] [<c018df58>] (generic_handle_irq) from [<c018e550>]
(__handle_domain_irq+0x64/0xe0)
[    4.294810] [<c018e550>] (__handle_domain_irq) from [<c0529610>]
(gic_handle_irq+0x4c/0xa0)
[    4.303181] [<c0529610>] (gic_handle_irq) from [<c0101a70>]
(__irq_svc+0x70/0x98)
[    4.310675] Exception stack(0xc1301f10 to 0xc1301f58)
[    4.315744] 1f00:                                     00000001
00000006 00000000 c130c340
[    4.323937] 1f20: c1300000 c1308928 00000001 c1308960 00000000
c12b9db0 c1308908 00000000
[    4.332128] 1f40: 00000000 c1301f60 c0182010 c0109508 20000013 ffffffff
[    4.338762] [<c0101a70>] (__irq_svc) from [<c0109508>]
(arch_cpu_idle+0x20/0x3c)
[    4.346180] [<c0109508>] (arch_cpu_idle) from [<c015ed70>]
(do_idle+0x1bc/0x2bc)
[    4.353594] [<c015ed70>] (do_idle) from [<c015f204>]
(cpu_startup_entry+0x18/0x1c)
[    4.361183] [<c015f204>] (cpu_startup_entry) from [<c1200e68>]
(start_kernel+0x440/0x504)
[    4.369378] [<c1200e68>] (start_kernel) from [<00000000>] (0x0)
[    4.375309] handlers:
[    4.377645] [<62052c0d>] st_lsm6dsx_handler_irq threaded
[<f2004b92>] st_lsm6dsx_handler_thread
[    4.386484] Disabling IRQ #277

Here is the associated device tree node:
lsm9ds1_ag@6a {
    compatible = "st,lsm9ds1-imu";
    reg = <0x6a>;
    st,drdy-int-pin = <1>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_acc_gyro>;
    interrupt-parent = <&gpio7>;
    interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
};

Let me know if I can provide any more information.

Thanks,
Bobby Jones

             reply	other threads:[~2019-09-20  0:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-20  0:53 Bobby Jones [this message]
2019-09-20  6:42 ` LSM9DS1 testing with st_lsm6dsx driver Lorenzo Bianconi
2019-09-20 18:39   ` Bobby Jones
2019-09-20 21:55     ` Lorenzo Bianconi
2019-09-20 23:21       ` Bobby Jones
2019-09-21  8:06         ` Lorenzo Bianconi
2019-09-23 23:23           ` Bobby Jones
2019-09-24  6:18             ` Lorenzo Bianconi
2019-09-24 17:30               ` Bobby Jones
2019-09-24 17:40                 ` Lorenzo Bianconi
2019-09-24 18:21                   ` Bobby Jones
2019-09-24 18:55                     ` Lorenzo Bianconi
2019-10-05 11:22                       ` Jonathan Cameron
2019-10-05 12:31                         ` Lorenzo Bianconi

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='CALAE=UCTTOhvUofvk1ZrLZ2aNoSMYyFq8dHoaDxRc2aOdbV8jA@mail.gmail.com' \
    --to=rjones@gateworks.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=lorenzo.bianconi83@gmail.com \
    --cc=martin.kepplinger@puri.sm \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).