Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch '6.14/scsi-queue' into 6.14/scsi-fixes

Pull outstanding fixes bound for this release into 6.14/scsi-fixes.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

+12 -23
+7
drivers/scsi/scsi_lib_test.c
··· 67 67 }; 68 68 int i; 69 69 70 + /* Success */ 71 + sc.result = 0; 72 + KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); 73 + KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, NULL)); 74 + /* Command failed but caller did not pass in a failures array */ 75 + scsi_build_sense(&sc, 0, ILLEGAL_REQUEST, 0x91, 0x36); 76 + KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, NULL)); 70 77 /* Match end of array */ 71 78 scsi_build_sense(&sc, 0, ILLEGAL_REQUEST, 0x91, 0x36); 72 79 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures));
+2 -2
drivers/target/target_core_stat.c
··· 117 117 char *page) 118 118 { 119 119 if (to_stat_tgt_dev(item)->export_count) 120 - return snprintf(page, PAGE_SIZE, "activated"); 120 + return snprintf(page, PAGE_SIZE, "activated\n"); 121 121 else 122 - return snprintf(page, PAGE_SIZE, "deactivated"); 122 + return snprintf(page, PAGE_SIZE, "deactivated\n"); 123 123 } 124 124 125 125 static ssize_t target_stat_tgt_non_access_lus_show(struct config_item *item,
+1 -19
drivers/ufs/core/ufshcd.c
··· 5976 5976 __func__, err); 5977 5977 } 5978 5978 5979 - static void ufshcd_temp_exception_event_handler(struct ufs_hba *hba, u16 status) 5980 - { 5981 - u32 value; 5982 - 5983 - if (ufshcd_query_attr_retry(hba, UPIU_QUERY_OPCODE_READ_ATTR, 5984 - QUERY_ATTR_IDN_CASE_ROUGH_TEMP, 0, 0, &value)) 5985 - return; 5986 - 5987 - dev_info(hba->dev, "exception Tcase %d\n", value - 80); 5988 - 5989 - ufs_hwmon_notify_event(hba, status & MASK_EE_URGENT_TEMP); 5990 - 5991 - /* 5992 - * A placeholder for the platform vendors to add whatever additional 5993 - * steps required 5994 - */ 5995 - } 5996 - 5997 5979 static int __ufshcd_wb_toggle(struct ufs_hba *hba, bool set, enum flag_idn idn) 5998 5980 { 5999 5981 u8 index; ··· 6196 6214 ufshcd_bkops_exception_event_handler(hba); 6197 6215 6198 6216 if (status & hba->ee_drv_mask & MASK_EE_URGENT_TEMP) 6199 - ufshcd_temp_exception_event_handler(hba, status); 6217 + ufs_hwmon_notify_event(hba, status & MASK_EE_URGENT_TEMP); 6200 6218 6201 6219 ufs_debugfs_exception_event(hba, status); 6202 6220 }
+2 -2
include/ufs/ufs.h
··· 385 385 386 386 /* Possible values for dExtendedUFSFeaturesSupport */ 387 387 enum { 388 - UFS_DEV_LOW_TEMP_NOTIF = BIT(4), 389 - UFS_DEV_HIGH_TEMP_NOTIF = BIT(5), 388 + UFS_DEV_HIGH_TEMP_NOTIF = BIT(4), 389 + UFS_DEV_LOW_TEMP_NOTIF = BIT(5), 390 390 UFS_DEV_EXT_TEMP_NOTIF = BIT(6), 391 391 UFS_DEV_HPB_SUPPORT = BIT(7), 392 392 UFS_DEV_WRITE_BOOSTER_SUP = BIT(8),