All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Greg KH <greg@kroah.com>
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	linux-kernel@vger.kernel.org, linux-rt@pengutronix.de,
	"Ian Abbott" <abbotti@mev.co.uk>,
	"Frank Mori Hess" <fmhess@users.sourceforge.net>
Subject: Re: [PATCH -rt] disable building all staging drivers
Date: Tue, 23 Jun 2009 13:24:19 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.0906231216220.2767@localhost.localdomain> (raw)
In-Reply-To: <20090622171948.GA15145@kroah.com>

On Mon, 22 Jun 2009, Greg KH wrote:
> > 17:02:43 E: ERROR: "there_is_no_init_MUTEX_LOCKED_for_RT_semaphores" [drivers/staging/rt2870/rt2870sta.ko] undefined!
> 
> What needs to be done in the rt2870 driver to resolve this issue?

It looks like the semaphores are used to wait for an event. There are
actually 3 of those:

	 init_MUTEX_LOCKED(&(pAd->mlme_semaphore));
	 init_MUTEX_LOCKED(&(pAd->RTUSBCmd_semaphore));
	 init_MUTEX_LOCKED(&(pAd->RTUSBTimer_semaphore));

All are used in kernel threads which wait with down_interruptible() on
them. The up() calls are in some completely non obvious places.

I had a look into the timer one. The semaphore is the least thing you
need to worry about there. The open coded timer list management and
the thread which does timer polling for some obscure reason are the
things which need to be fixed in the first place. Once this is cleaned
up the semaphore will be gone anyway.

But, after looking into that code I really have to ask you whether you
are serious about fixing it instead of rewriting it from scratch and
just keep the code as is for reference to the hardware details.

Thanks,

	tglx

  parent reply	other threads:[~2009-06-23 11:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-13 21:38 [PATCH -rt] disable building all staging drivers Uwe Kleine-König
2009-06-13 21:38 ` Uwe Kleine-König
2009-06-14 11:28 ` Greg KH
2009-06-14 12:34   ` Thomas Gleixner
2009-06-14 23:00   ` Uwe Kleine-König
2009-06-14 23:04     ` Greg KH
2009-06-22 15:15     ` Uwe Kleine-König
2009-06-22 17:19       ` Greg KH
2009-06-22 18:06         ` Daniel Walker
2009-06-22 20:51           ` Greg KH
2009-06-23 11:24         ` Thomas Gleixner [this message]
2009-06-23 15:17           ` Greg KH
2009-06-23 15:39             ` Thomas Gleixner
2009-09-07 16:20       ` [RT + staging] buildfailures Uwe Kleine-König
2009-09-08 18:11         ` Greg KH
2009-06-13 21:38 [PATCH -rt] disable building all staging drivers Uwe Kleine-König

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.LFD.2.00.0906231216220.2767@localhost.localdomain \
    --to=tglx@linutronix.de \
    --cc=abbotti@mev.co.uk \
    --cc=fmhess@users.sourceforge.net \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt@pengutronix.de \
    --cc=u.kleine-koenig@pengutronix.de \
    /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.