From owner-freebsd-current@FreeBSD.ORG Wed Nov 16 22:21:46 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49AD710657A4 for ; Wed, 16 Nov 2011 22:21:46 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0DBF08FC0C for ; Wed, 16 Nov 2011 22:21:45 +0000 (UTC) Received: by yenl11 with SMTP id l11so355736yen.13 for ; Wed, 16 Nov 2011 14:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=yjrwqdsUU3D0M1f0tUhH7JTrBnVrTKTaKFEWGZ09dKo=; b=d9gKsm24Ey/6AbeUU+E/ehPCt9zmVObMAMQC5VL+2wqOHPrO0HtYiLoEkSpzKkQ2nr orKAS9puQl9VISfMbTfzJt0ghbBc+vOtTaeKe9y01etd2e/6GTlHaTIDuL9jRT62Jleh uxhLG6a2Dpsym0uEM1UzYMbh6Eqv59PS/2XzU= MIME-Version: 1.0 Received: by 10.101.206.33 with SMTP id i33mr10473041anq.65.1321480774090; Wed, 16 Nov 2011 13:59:34 -0800 (PST) Sender: maksim.yevmenkin@gmail.com Received: by 10.100.122.19 with HTTP; Wed, 16 Nov 2011 13:59:33 -0800 (PST) Date: Wed, 16 Nov 2011 13:59:33 -0800 X-Google-Sender-Auth: mLHzpJMH698KoasILjRjdZSUkRw Message-ID: From: Maksim Yevmenkin To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: mav@FreeBSD.org Subject: [RFC] ahci(4) patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2011 22:21:46 -0000 hello, would anyone object to the following ahci(4) patch? == --- ahci.c.orig 2011-11-16 21:35:26.000000000 +0000 +++ ahci.c 2011-11-16 21:35:41.000000000 +0000 @@ -500,7 +500,7 @@ for (unit = 0; unit < ctlr->channels; unit++) { if ((ctlr->ichannels & (1 << unit)) == 0) continue; - child = device_add_child(dev, "ahcich", -1); + child = device_add_child(dev, "ahcich", unit); if (child == NULL) device_printf(dev, "failed to add channel device\n"); else == the idea is to have "static" numbering for ada(4) disks. thanks, max