All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: Sebastian Siewior <bigeasy-kttTfShzVuc@public.gmane.org>
Subject: Re: [RFC / PATCH] [SPI] get_module while using it.
Date: Tue, 15 Apr 2008 11:09:43 -0700	[thread overview]
Message-ID: <200804151109.43278.david-b@pacbell.net> (raw)
In-Reply-To: <20080415070723.GA18303-Hfxr4Dq0UpYb1SvskN2V4Q@public.gmane.org>

On Tuesday 15 April 2008, Sebastian Siewior wrote:
> * David Brownell | 2008-04-14 16:23:36 [-0700]:
> 
> >On Monday 14 April 2008, Sebastian Siewior wrote:
> >> Without this it is possible to unload the SPI-driver while an
> >> spidev user open()ed the spidev device.
> >
> >Does that misbehave in any way?  That sort of unloading of
>
> Yes. Unload, read() -> Ooops.

What's the oops, and with which controller driver?

If the adapter is unloaded it's *supposed* to first complete
all pending transfers (and prevent submission of new ones).

And removing the subsidiary devices is supposed to unbind
them ... though looking at it quickly, I suspect that the
"spidev" driver doesn't check for unbound devices in its
various I/O paths.

So this sounds like a bug in the controller driver, or else
in how spidev handles unbind.

- Dave


 
> >adapter code is possible with USB and I2C and hasn't been
> >perceived as much of a problem.  I'm not sure I see a strong
> >reason for SPI to act very different.
>
> True. usb returns with -ENODEV after read/whatever. We could add
> something like this to spi/spidev. This might also fit better into
> hot-plugging.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

  parent reply	other threads:[~2008-04-15 18:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14 19:45 [RFC / PATCH] [SPI] get_module while using it Sebastian Siewior
     [not found] ` <20080414194549.GA1363-Hfxr4Dq0UpYb1SvskN2V4Q@public.gmane.org>
2008-04-14 23:23   ` David Brownell
     [not found]     ` <200804141623.36838.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-04-15  7:07       ` Sebastian Siewior
     [not found]         ` <20080415070723.GA18303-Hfxr4Dq0UpYb1SvskN2V4Q@public.gmane.org>
2008-04-15 18:09           ` David Brownell [this message]
     [not found]             ` <200804151109.43278.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-04-24  9:26               ` Sebastian Siewior
     [not found]                 ` <20080424092605.GC7371-Hfxr4Dq0UpYb1SvskN2V4Q@public.gmane.org>
2008-04-24 18:26                   ` David Brownell
     [not found]                     ` <200804241126.01158.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-05-01 18:08                       ` David Brownell
     [not found]                         ` <200805011108.38240.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-05-02 10:32                           ` Sebastian Siewior
     [not found]                             ` <20080502103205.GA15651-Hfxr4Dq0UpYb1SvskN2V4Q@public.gmane.org>
2008-05-02 17:55                               ` David Brownell
     [not found]                                 ` <200805021055.11267.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-05-02 19:29                                   ` Sebastian Siewior
     [not found]                                     ` <20080502192929.GA20326-Hfxr4Dq0UpYb1SvskN2V4Q@public.gmane.org>
2008-05-02 19:58                                       ` David Brownell
     [not found]                                         ` <200805021258.06573.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-05-08 14:57                                           ` Sebastian Siewior
     [not found]                                             ` <20080508145733.GA18821-Hfxr4Dq0UpYb1SvskN2V4Q@public.gmane.org>
2008-05-22  1:02                                               ` 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:
  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=200804151109.43278.david-b@pacbell.net \
    --to=david-b-ybekhbn/0ldr7s880joybq@public.gmane.org \
    --cc=bigeasy-kttTfShzVuc@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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 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.