archive mirror
 help / color / mirror / Atom feed
From: Mike Frysinger <>
To: Wolfgang Ocker <>,
	David Brownell
Subject: spi_set_drvdata() handling in spidev_probe()
Date: Tue, 13 Oct 2009 02:32:12 -0400	[thread overview]
Message-ID: <> (raw)

i was browsing the change history of spidev when i noticed the change:
aaacf4bb51b243875b203e6ff73b5047636b4efa spi: avoid spidev crash when
device is removed

which seems to be due to this change:
3d81252ddb10f63ae4db713d9b32faabe641b850 device create: spi: convert
device_create to device_create_drvdata

getting an incomplete revert with this change:
a9b12619f7b6f19c871437ec24a088787a04b1de device create: misc: convert
device_create_drvdata to device_create

my point being is that the original code was doing the
spi_set_drvdata() while holding the device_list_lock mutex while the
new one is not.  shouldnt the code be changed back to the state
previous to 3d81252d ?

Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!

             reply	other threads:[~2009-10-13  6:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13  6:32 Mike Frysinger [this message]
     [not found] ` <>
2009-12-11  2:25   ` spi_set_drvdata() handling in spidev_probe() David Brownell
     [not found]     ` <200912101825.21244.david-b-yBeKhBN/>
2009-12-11  2:32       ` Mike Frysinger
     [not found]         ` <>
2009-12-11  3:03           ` David Brownell

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

* 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).