[RFC] ahci(4) patch

From: Maksim Yevmenkin <emax_at_freebsd.org>
Date: Wed, 16 Nov 2011 13:59:33 -0800
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
_at__at_ -500,7 +500,7 _at__at_
 	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
Received on Wed Nov 16 2011 - 21:21:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:20 UTC