Skip to content

Commit 16b047c

Browse files
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 <[email protected]>
2 parents 2014c95 + 8c09f61 commit 16b047c

File tree

4 files changed

+12
-23
lines changed

4 files changed

+12
-23
lines changed

drivers/scsi/scsi_lib_test.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ static void scsi_lib_test_multiple_sense(struct kunit *test)
6767
};
6868
int i;
6969

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));
7077
/* Match end of array */
7178
scsi_build_sense(&sc, 0, ILLEGAL_REQUEST, 0x91, 0x36);
7279
KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures));

drivers/target/target_core_stat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ static ssize_t target_stat_tgt_status_show(struct config_item *item,
117117
char *page)
118118
{
119119
if (to_stat_tgt_dev(item)->export_count)
120-
return snprintf(page, PAGE_SIZE, "activated");
120+
return snprintf(page, PAGE_SIZE, "activated\n");
121121
else
122-
return snprintf(page, PAGE_SIZE, "deactivated");
122+
return snprintf(page, PAGE_SIZE, "deactivated\n");
123123
}
124124

125125
static ssize_t target_stat_tgt_non_access_lus_show(struct config_item *item,

drivers/ufs/core/ufshcd.c

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5976,24 +5976,6 @@ static void ufshcd_bkops_exception_event_handler(struct ufs_hba *hba)
59765976
__func__, err);
59775977
}
59785978

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-
59975979
static int __ufshcd_wb_toggle(struct ufs_hba *hba, bool set, enum flag_idn idn)
59985980
{
59995981
u8 index;
@@ -6214,7 +6196,7 @@ static void ufshcd_exception_event_handler(struct work_struct *work)
62146196
ufshcd_bkops_exception_event_handler(hba);
62156197

62166198
if (status & hba->ee_drv_mask & MASK_EE_URGENT_TEMP)
6217-
ufshcd_temp_exception_event_handler(hba, status);
6199+
ufs_hwmon_notify_event(hba, status & MASK_EE_URGENT_TEMP);
62186200

62196201
ufs_debugfs_exception_event(hba, status);
62206202
}

include/ufs/ufs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ enum {
385385

386386
/* Possible values for dExtendedUFSFeaturesSupport */
387387
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),
390390
UFS_DEV_EXT_TEMP_NOTIF = BIT(6),
391391
UFS_DEV_HPB_SUPPORT = BIT(7),
392392
UFS_DEV_WRITE_BOOSTER_SUP = BIT(8),

0 commit comments

Comments
 (0)