From e65a475117dfdd09dc94b429554c93980f2e2e02 Mon Sep 17 00:00:00 2001 From: Nilesh Javali Date: Thu, 23 Jul 2026 10:33:29 +0530 Subject: [PATCH] scsi: qla2xxx: Skip image-set-valid attribute for 29xx The 29xx adapter does not support the QLA_IMG_SET_VALID_SUPPORT driver attribute. Gate the attribute behind an IS_QLA29XX() check so that userspace applications querying driver capabilities via BSG receive accurate information. Signed-off-by: Nilesh Javali Reviewed-by: Hannes Reinecke Link: https://patch.msgid.link/20260723050413.3897522-13-njavali@marvell.com Signed-off-by: Martin K. Petersen (Oracle) --- drivers/scsi/qla2xxx/qla_bsg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 8cad9a046ad9..3187909759a0 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -2966,11 +2966,14 @@ qla2x00_get_flash_image_status(struct bsg_job *bsg_job) static int qla2x00_get_drv_attr(struct bsg_job *bsg_job) { + scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); struct qla_drv_attr drv_attr; struct fc_bsg_reply *bsg_reply = bsg_job->reply; + struct qla_hw_data *ha = vha->hw; memset(&drv_attr, 0, sizeof(struct qla_drv_attr)); - drv_attr.ext_attributes |= QLA_IMG_SET_VALID_SUPPORT; + if (!IS_QLA29XX(ha)) + drv_attr.ext_attributes |= QLA_IMG_SET_VALID_SUPPORT; sg_copy_from_buffer(bsg_job->reply_payload.sg_list,