linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Balantzyan <mbalant3@gmail.com>
To: linux@roeck-us.net
Cc: wim@linux-watchdog.org, linux-watchdog@vger.kernel.org
Subject: Question about pc87413_wdt.ko
Date: Mon, 29 Jul 2019 07:38:12 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.21.1907290727580.33358@mbalantz-desktop> (raw)

Hi Guenter,

My name is Mark, we corresponded in the recent past concerning a different 
kernel module.

I would just like to ask a question about pc87413_wdt.ko. In 
pc87413_wdt.c, the function pc87413_init() calls pc87413_swc_base_addr() 
and swc_base_addr gets assigned to. But pc87413_open() calls pc87413_refresh() 
which has spinlocks around swc_base_addr. There may be a use before 
initialization, so spinlocks get in the way. Is there a case possible 
where a bug/race condition may be occurring here? Or is there a hardware 
synchronization somewhere?

Thank you,
Mark

             reply	other threads:[~2019-07-29 14:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-29 14:38 Mark Balantzyan [this message]
2019-07-29 14:54 ` Question about pc87413_wdt.ko Guenter Roeck

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=alpine.DEB.2.21.1907290727580.33358@mbalantz-desktop \
    --to=mbalant3@gmail.com \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=wim@linux-watchdog.org \
    /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).