From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 1 22:31:27 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DB9BE16A400 for ; Thu, 1 Mar 2007 22:31:27 +0000 (UTC) (envelope-from mfrynas@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by mx1.freebsd.org (Postfix) with ESMTP id 82DD913C47E for ; Thu, 1 Mar 2007 22:31:27 +0000 (UTC) (envelope-from mfrynas@gmail.com) Received: by wr-out-0506.google.com with SMTP id 55so837077wri for ; Thu, 01 Mar 2007 14:31:27 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=haqxHi1noQOGgnikx6JMFKewWNFVr6uZXAPxSMq38IpLtfyIPLMuW8JMrPDyHpwu/KP+eH1suIySg196IpPu/SNDSoWoqLi0L+BFipKo6KArqAjGqLJrVN8rKxvVga22EHmTQcbjT6ggbCmSOcNrIHMJrkrM1NAsMvRYO3OhyeE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Y3oe6OV7wGRyVbcSSKKFL/95eWxGnKUmtx09jfVO9waNtrHvYYcUL5FuNVQdShmaS9Wdu/NWqusVdEq430fvXLhO9Sdia4wAaYGWuQxMHO7cvNoipCZMGrbX7Gu7P+qwTrsujl+ddzD4TS7Oo4HQY5lx46UuJJHeecRt5h52y4A= Received: by 10.114.201.1 with SMTP id y1mr88114waf.1172741250801; Thu, 01 Mar 2007 01:27:30 -0800 (PST) Received: by 10.115.15.11 with HTTP; Thu, 1 Mar 2007 01:27:30 -0800 (PST) Message-ID: <8af9710703010127r64733012h20859ff9a61967bd@mail.gmail.com> Date: Thu, 1 Mar 2007 10:27:30 +0100 From: "=?ISO-8859-2?Q?Micha=B3_Frynas?=" To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: umass driver doesn't rescan the bus X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2007 22:31:27 -0000 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.