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

Commit d4878f63 authored by Maya Erez's avatar Maya Erez
Browse files

scsi: ufs: expose APIs to allow compiling ufs_test as a module



The UFS tests are used for testing the functionality and performance
of the UFS driver. In some of the tests ufs_test uses several scsi
and UFS APIs for getting the disc information and sending UFS
specific commands.
The used APIs should be exposed in order to allow compilation
of ufs_test as a module.

Change-Id: I1263429bd3d5172af3b5552f0b8b503e32a04e51
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent d52c796d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -591,6 +591,7 @@ struct gendisk *scsi_gendisk_get_from_dev(struct device *dev)
	mutex_unlock(&sd_ref_mutex);
	return !sdkp ? NULL : sdkp->disk;
}
EXPORT_SYMBOL(scsi_gendisk_get_from_dev);

void scsi_gendisk_put(struct device *dev)
{
@@ -602,6 +603,7 @@ void scsi_gendisk_put(struct device *dev)
	scsi_device_put(sdev);
	mutex_unlock(&sd_ref_mutex);
}
EXPORT_SYMBOL(scsi_gendisk_put);

static void sd_prot_op(struct scsi_cmnd *scmd, unsigned int dif)
{
+3 −0
Original line number Diff line number Diff line
@@ -2365,6 +2365,7 @@ out_unlock:
	ufshcd_release_all(hba);
	return err;
}
EXPORT_SYMBOL(ufshcd_query_flag);

/**
 * ufshcd_query_attr - API function for sending attribute requests
@@ -2429,6 +2430,7 @@ out:
	ufshcd_release_all(hba);
	return err;
}
EXPORT_SYMBOL(ufshcd_query_attr);

/**
 * ufshcd_query_attr_retry() - API function for sending query
@@ -2544,6 +2546,7 @@ out:
	ufshcd_release_all(hba);
	return err;
}
EXPORT_SYMBOL(ufshcd_query_descriptor);

/**
 * ufshcd_read_desc_param - read the specified descriptor parameter