Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2007 10:27:30 +0100
From:      "=?ISO-8859-2?Q?Micha=B3_Frynas?=" <mfrynas@gmail.com>
To:        freebsd-acpi@freebsd.org
Subject:   umass driver doesn't rescan the bus
Message-ID:  <8af9710703010127r64733012h20859ff9a61967bd@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello all,

I've got a small problem when trying to configure the devd daemon to work
with umass driver. Here's what I'm trying to achive: I configured the devd
to handle the nomatch event as follows:

nomatch 100 {
      match "vendor" "[ven_id]";
      match "product" "[prod_id]";
      match "release" "[rel_id]";
      action "if ! kldstat -n umass; then kldload umass; fi";
};

detach 100 {
      device-name "umass[0-9]+";
      action "if kldstat -n umass; then kldunload; fi";
};

Then, when I'm attaching the usb umass device, in this case the 80gb
external hdd, devd recognize the device and runs the proper action. However,
after loading the umass driver the bus isn't rescaned automatically. I need
to plug the device out, and plug it in again for the umass driver to
recognize it correctly. I'm wondering how can I enforce that the attach
event is generated again after the umass driver is loaded, or how enforce
rescanning the usb/scsi bus (I tried the camcontrol, but no effect).
Oh, and one more thing. The kernel sees the device as the "lost device",
even it's recognized correctly, but the umass doesn't connect it the the
bus, so the userland is not able to use it in anyway.

PS. cam driver is also load.

Thanks in advance,
dziobass.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8af9710703010127r64733012h20859ff9a61967bd>