mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 01:11:51 -04:00
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 <njavali@marvell.com> Reviewed-by: Hannes Reinecke <hare@kernel.org> Link: https://patch.msgid.link/20260723050413.3897522-13-njavali@marvell.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
committed by
Martin K. Petersen (Oracle)
parent
b6781d71a4
commit
e65a475117
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user