Mercurial > illumos > illumos-gate
diff usr/src/uts/common/io/sata/impl/sata.c @ 11859:f06d538b0f01
PSARC/2010/045 x86gentopo enumeration of direct attached SATA
6891266 generic x86 enumeration for directly attached SATA disks
6903122 Export SATA PHY from framework
6906979 Generic x86 disk enum needs SMBIOS OEM extended structure
author | Tom Pothier <Tom.Pothier@Sun.COM> |
---|---|
date | Fri, 05 Mar 2010 08:56:57 -0500 |
parents | 2adca8ef2c23 |
children | b2fbcbf3d929 |
line wrap: on
line diff
--- a/usr/src/uts/common/io/sata/impl/sata.c Fri Mar 05 04:38:53 2010 -0800 +++ b/usr/src/uts/common/io/sata/impl/sata.c Fri Mar 05 08:56:57 2010 -0500 @@ -10370,6 +10370,19 @@ goto fail; } + if (sdinfo->satadrv_type == SATA_DTYPE_ATADISK) { + /* + * Add "sata-phy" property + */ + if (ndi_prop_update_int(DDI_DEV_T_NONE, cdip, "sata-phy", + (int)sata_addr->cport) != DDI_PROP_SUCCESS) { + SATA_LOG_D((sata_hba_inst, CE_WARN, + "sata_create_target_node: failed to create " + "\"sata-phy\" property: port %d", + sata_addr->cport)); + } + } + /* * Now, try to attach the driver. If probing of the device fails,