Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d7c4eac authored by Gilad Broner's avatar Gilad Broner Committed by Matt Wagantall
Browse files

scsi: ufs-test: disable write descriptor query test



Multi-query test fails on write descriptor requests becuase it
tries to write to the unit descriptor which is read-only according
to the spec.
The only writeable descriptors are the configuration and OEM ID
string descriptors which will be non-trivial to use.
Avoid sending write descriptor query for the time being, and replace
it with a read descriptor operation.

Change-Id: Ic121d9ff20f144e724df5436f9dbd44cde72e97d
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent a5bfb9f8
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -615,11 +615,6 @@ static void ufs_test_random_async_query(void *data, async_cookie_t cookie)
	case UPIU_QUERY_OPCODE_WRITE_DESC:
		ret = ufshcd_query_descriptor(hba, UPIU_QUERY_OPCODE_READ_DESC,
				QUERY_DESC_IDN_UNIT, 0, 0, desc_buf, &buff_len);
		if (ret || op == UPIU_QUERY_OPCODE_READ_DESC)
			break;

		ret = ufshcd_query_descriptor(hba, UPIU_QUERY_OPCODE_WRITE_DESC,
				QUERY_DESC_IDN_UNIT, 0, 0, desc_buf, &buff_len);
		break;
	case UPIU_QUERY_OPCODE_WRITE_ATTR:
	case UPIU_QUERY_OPCODE_READ_ATTR: