Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Dec 2021 09:04:17 GMT
From:      Ram Kishore Vegesna <ram@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: cc3114e17b24 - stable/13 - ocs_fc: Populate subvendor and subdevice ids. Enable serialnumber reporting.
Message-ID:  <202112240904.1BO94HQb057717@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by ram:

URL: https://cgit.FreeBSD.org/src/commit/?id=cc3114e17b247536979bd365185f3de950fe0b62

commit cc3114e17b247536979bd365185f3de950fe0b62
Author:     Ram Kishore Vegesna <ram@FreeBSD.org>
AuthorDate: 2021-12-20 12:25:13 +0000
Commit:     Ram Kishore Vegesna <ram@FreeBSD.org>
CommitDate: 2021-12-24 08:58:15 +0000

    ocs_fc: Populate subvendor and subdevice ids.
    Enable serialnumber reporting.
    
    Reviewed by: mav
    MFC after: 3 days
    
    (cherry picked from commit cba757ef2a7ec2bb985fbcd67e8d616328b7209a)
    
    ocs_fs(4): Fix some common typos in source code comments
    
    - s/transfered/transferred/
    - s/associted/associated/
    
    MFC after:      3 days
    
    (cherry picked from commit 16b71d98d96a3a9a2ac666440aa80f12d478959d)
---
 sys/dev/ocs_fc/ocs_gendump.c   | 2 +-
 sys/dev/ocs_fc/ocs_hw_queues.c | 2 +-
 sys/dev/ocs_fc/ocs_pci.c       | 3 +++
 sys/dev/ocs_fc/ocs_scsi.c      | 4 ----
 4 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/sys/dev/ocs_fc/ocs_gendump.c b/sys/dev/ocs_fc/ocs_gendump.c
index d24870f39668..83155d90c3a3 100644
--- a/sys/dev/ocs_fc/ocs_gendump.c
+++ b/sys/dev/ocs_fc/ocs_gendump.c
@@ -234,7 +234,7 @@ ocs_fdb_dump(ocs_t *ocs)
  * @par Description
  * This function creates a DMA buffer to hold a Lancer dump,
  * sets the dump location to point to that buffer, then calls
- * ocs_gen_dump to cause a dump to be transfered to the buffer.
+ * ocs_gen_dump to cause a dump to be transferred to the buffer.
  * After the dump is complete it copies the dump to the provided
  * user space buffer.
  *
diff --git a/sys/dev/ocs_fc/ocs_hw_queues.c b/sys/dev/ocs_fc/ocs_hw_queues.c
index 242b2f0df115..704eb951d2b7 100644
--- a/sys/dev/ocs_fc/ocs_hw_queues.c
+++ b/sys/dev/ocs_fc/ocs_hw_queues.c
@@ -966,7 +966,7 @@ hw_queue_teardown(ocs_hw_t *hw)
  * If wq_steering is OCS_HW_WQ_STEERING_REQUEST, then a WQ from the EQ that
  * the IO request came in on is selected.
  *
- * If wq_steering is OCS_HW_WQ_STEERING_CPU, then a WQ associted with the
+ * If wq_steering is OCS_HW_WQ_STEERING_CPU, then a WQ associated with the
  * CPU the request is made on is selected.
  *
  * @param hw pointer to HW object
diff --git a/sys/dev/ocs_fc/ocs_pci.c b/sys/dev/ocs_fc/ocs_pci.c
index 8714c242a212..f50172fdada6 100644
--- a/sys/dev/ocs_fc/ocs_pci.c
+++ b/sys/dev/ocs_fc/ocs_pci.c
@@ -529,6 +529,9 @@ ocs_pci_attach(device_t dev)
 
 	ocs->pci_vendor = pci_get_vendor(dev);
 	ocs->pci_device = pci_get_device(dev);
+	ocs->pci_subsystem_vendor = pci_get_subvendor(dev);
+	ocs->pci_subsystem_device = pci_get_subdevice(dev);
+
 	snprintf(ocs->businfo, sizeof(ocs->businfo), "%02X:%02X:%02X",
 		pci_get_bus(dev), pci_get_slot(dev), pci_get_function(dev));
 
diff --git a/sys/dev/ocs_fc/ocs_scsi.c b/sys/dev/ocs_fc/ocs_scsi.c
index b1d98c7c0e3d..8938c0e2819f 100644
--- a/sys/dev/ocs_fc/ocs_scsi.c
+++ b/sys/dev/ocs_fc/ocs_scsi.c
@@ -43,9 +43,7 @@
 #include "ocs.h"
 #include "ocs_els.h"
 #include "ocs_scsi.h"
-#if defined(OCS_ENABLE_VPD_SUPPORT)
 #include "ocs_vpd.h"
-#endif
 #include "ocs_utils.h"
 #include "ocs_device.h"
 
@@ -2808,7 +2806,6 @@ void *ocs_scsi_get_property_ptr(ocs_t *ocs, ocs_scsi_property_e prop)
 	case OCS_SCSI_BIOS_VERSION_STRING:
 		rc = ocs_hw_get_ptr(&ocs->hw, OCS_HW_BIOS_VERSION_STRING);
 		break;
-#if defined(OCS_ENABLE_VPD_SUPPORT)
 	case OCS_SCSI_SERIALNUMBER:
 	{
 		uint8_t *pvpd;
@@ -2859,7 +2856,6 @@ void *ocs_scsi_get_property_ptr(ocs_t *ocs, ocs_scsi_property_e prop)
 		}
 		break;
 	}
-#endif
 	default:
 		break;
 	}



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