From: Alexander Holler <holler@ahsoftware.de>
To: Jiri Kosina <jkosina@suse.cz>
Cc: rtc-linux@googlegroups.com,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org,
Alessandro Zummo <a.zummo@towertech.it>,
Andrew de los Reyes <adlr@chromium.org>
Subject: Re: [rtc-linux] Re: [PATCH 2/2 RESEND] rtc: rtc-hid-sensor-time: enable HID input processing early
Date: Fri, 09 Aug 2013 18:21:34 +0200 [thread overview]
Message-ID: <5205170E.9030605@ahsoftware.de> (raw)
In-Reply-To: <alpine.LNX.2.00.1308091310490.13089@pobox.suse.cz>
Am 09.08.2013 13:12, schrieb Jiri Kosina:
> On Fri, 9 Aug 2013, Alexander Holler wrote:
>
>
>> =================================
>> [ INFO: inconsistent lock state ]
>> 3.10.5-dockstar-00038-g03242d1-dirty #408 Not tainted
>> ---------------------------------
>> inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage.
>> swapper/0 [HC1[1]:SC0[0]:HE0:SE1] takes:
>> (&(&sd->dyn_callback_lock)->rlock){?.+...}, at: [<c02af9f8>]
>> sensor_hub_raw_event+0x10c/0x204
>> {HARDIRQ-ON-W} state was registered at:
>
> I think you need the patch below. Please let me know if it fixes it.
Thanks a lot. That actually fixed the bug I never have seen before and
the patch might be a candidate for the stable series (even if almost no
one would see the problem because there don't seem to be many
hid-sensor-hub users and the bug seems only to be visible with some
debug options enabled).
Btw, I've lied and that bug happened with the enforced error path as
well as during normal operation. It seems I have enabled some debug
option in the kernel, I never had enabled before.
Unfortunaly that doesn't answer Andrew Mortons questions.
I've now also verified if hid-sensor-hub receives an event with
sensor_hub_raw_event() in the error-path (hid_device_io_stop() called
and probe() failed), and this still *does* happen. That event (input
report) doesn't come through hid-sensor-hub to my driver, but I think
this is because of my call to sensor_hub_remove_callback() which is in
the error path too.
So I actually wonder why the input report still is reported from the
hid-subsystem to hid-sensor-hub, even after I've called
hid_device_io_stop() and probe() failed.
Maybe everything is still ok and I just got confused with the somehow
complicate interactions between the usb- and hid-subsystem,
hid-sensor-hub (which uses MFD) and rtc-hid-sensor-time.
I will also have a look if I find the seem to be missing down(), maybe
that will offer some explanations to what goes on. Unfortunately I still
don't know the complete path of events, I've stopped reading the source
after you've told me about the patch from Andrew de los Reyes, beeing
happy to have found a nice and proper solution (instead of the delayed
rtc-device registering I did before). ;)
Regards,
Alexander Holler
next prev parent reply other threads:[~2013-08-09 16:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 18:39 [PATCH 1/2 RESEND] rtc: rtc-hid-sensor-time: improve error handling when rtc register fails Alexander Holler
2013-08-01 18:39 ` [PATCH 2/2 RESEND] rtc: rtc-hid-sensor-time: enable HID input processing early Alexander Holler
2013-08-08 22:11 ` Andrew Morton
2013-08-09 9:45 ` [rtc-linux] " Alexander Holler
2013-08-09 11:12 ` Jiri Kosina
2013-08-09 16:21 ` Alexander Holler [this message]
2013-08-09 16:33 ` Alexander Holler
2013-08-09 17:02 ` David Herrmann
2013-08-09 17:10 ` Alexander Holler
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=5205170E.9030605@ahsoftware.de \
--to=holler@ahsoftware.de \
--cc=a.zummo@towertech.it \
--cc=adlr@chromium.org \
--cc=akpm@linux-foundation.org \
--cc=jkosina@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.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.