All of lore.kernel.org
 help / color / mirror / Atom feed
From: dmitry.torokhov@gmail.com (Dmitry Torokhov)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [0/6] New w1 features.
Date: Sat, 04 Jun 2005 00:18:57 +0000	[thread overview]
Message-ID: <d120d50005060315181ccd5e2e@mail.gmail.com> (raw)
In-Reply-To: <20050604013008.05d3bc87@zanzibar.2ka.mipt.ru>

On 6/3/05, Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
> On Sat, 4 Jun 2005 01:58:36 +0400
> Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
> 
> > On Fri, 3 Jun 2005 16:46:48 -0500
> > Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
> >
> > > On 6/3/05, Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
> > > >
> > > > 6. I wrote reconnect feature: if on start there are no
> > > > registered families all new devices will have defailt family,
> > > > later when driver for appropriate family is loaded, slaves,
> > > > which were faound earlier, will still have defult family instead
> > > > of right one. Reconnect feature will force control thread to
> > > > run through all master devices and all slaves found
> > > > and search for slaves with default family id and try to reconnect
> > > > them.
> > >
> > > Yep, start with one kludge and you'll end up with 10 more.
> > >
> > > Would you mind explaining why a w1 device has to be bound to a family
> > > before it can show in sysfs? We don't have such limitation on other
> > > buses, why is it needed for w1?
> >
> > Because w1 device does not have any sence without appropriate family driver.
> > You may have a device without a driver for it.
> > All buses support it - see dmesg when new device was added but there is
> > no driver for that - usb bus magically says slot is used.
> > Here is the same.
> 
> And, btw, it is _very_ bad that other buses [not usb and not scsi at least]
> do not have such reconnect feature. You can plug your device in, system
> failed to detect it, and later, when you found a driver, you may not access
> it from it's driver.

Oh, really? For some reason when I plug my USB enclosure into the port
it even loads all necessary drivers. So somehow it manages to
recognize device without having a driver for it and then, after
loading proper driver, "reconnects".

Btw, that's what my modalias patch was doing for w1 as well.

> It looks like you do not know how w1 works - there is
> only one possibility to access w1 device - through appropriate bus master,
> so bus muster either has to know about all devices found during the last
> search, which is currently implemented, or perform new search each time
> new device driver is added which is bogus.
> Other buses support some notification about devices plugged to it,
> that is why you do not see some kind of reconnects there, w1 does not,
> so it has to reconnect.

If you don't bind to a driver to begin with you don't have to reconnect, do you?

-- 
Dmitry

  parent reply	other threads:[~2005-06-04  0:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-03 23:34 [lm-sensors] [0/6] New w1 features Evgeniy Polyakov
2005-06-03 23:47 ` Dmitry Torokhov
2005-06-03 23:58 ` Evgeniy Polyakov
2005-06-04  0:07 ` Evgeniy Polyakov
2005-06-04  0:12 ` Dmitry Torokhov
2005-06-04  0:18 ` Dmitry Torokhov [this message]
2005-06-04  0:22 ` Evgeniy Polyakov
2005-06-04  0:31 ` Dmitry Torokhov
2005-06-04  0:36 ` Evgeniy Polyakov
2005-06-04  0:37 ` Evgeniy Polyakov
2005-06-04  0:50 ` Dmitry Torokhov
2005-06-04  1:00 ` Evgeniy Polyakov
2005-06-04  1:43 ` Dmitry Torokhov
2005-06-04 11:51 ` Evgeniy Polyakov
2005-06-04 19:00 ` Dmitry Torokhov
2005-06-04 22:18 ` Evgeniy Polyakov
2005-06-05  5:30 ` Dmitry Torokhov
2005-06-05 12:49 ` Evgeniy Polyakov

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=d120d50005060315181ccd5e2e@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=lm-sensors@vger.kernel.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.