Krzysztof Kozlowski
35d11ec239
scsi: ufs: ufshcd: Constify pointed data
...
For code safety, constify arrays and pointers to data which is not
modified.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected] >
Signed-off-by: Krzysztof Kozlowski <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-06-27 22:26:45 -04:00
Stanley Chu
1d6f9decb6
scsi: ufs: Export regulator functions
...
Export below regulator functions to allow vendors to
customize regulator configuration in their own platforms.
int ufshcd_populate_vreg(struct device *dev, const char *name,
struct ufs_vreg **out_vreg);
int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg);
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stanley Chu <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-06-16 22:08:44 -04:00
CC Chou
3f9b6cec12
scsi: ufs: ufs-mediatek: Introduce workaround for power mode change
...
Some MediaTek SoC chips need special flow for power mode change, especially
for chips supporting HS-G5.
Enable the workaround by setting the host-specific capability.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Stanley Chu <[email protected] >
Signed-off-by: CC Chou <[email protected] >
Signed-off-by: Eddie Huang <[email protected] >
Signed-off-by: Dennis Yu <[email protected] >
Signed-off-by: Peter Wang <[email protected] >
Signed-off-by: Stanley Chu <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-06-16 22:08:43 -04:00
Stanley Chu
fc53683b45
scsi: ufs: Export ufshcd_uic_change_pwr_mode()
...
Export ufshcd_uic_change_pwr_mode() to allow vendors to use it for
SoC-specific power mode change design limitations.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected] >
Signed-off-by: Stanley Chu <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-06-16 22:08:43 -04:00
Alim Akhtar
c0d93b12f3
scsi: ufs: Rearrange addresses in increasing order
...
Rearrange all the unipro and mphy addresses in their increasing order.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Chanho Park <[email protected] >
Signed-off-by: Alim Akhtar <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-06-16 21:47:55 -04:00
Alim Akhtar
cb2bf7c6e5
scsi: ufs: host: ufs-exynos: Use already existing definition
...
UFS core already uses RX_MIN_ACTIVATETIME_CAPABILITY macro, let's use the
same in driver as well instead of having a different macro name for the
same offset.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Chanho Park <[email protected] >
Signed-off-by: Alim Akhtar <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-06-16 21:47:55 -04:00
Yoshihiro Shimoda
2f11bbc2c7
scsi: ufs: core: Add UFSHCD_QUIRK_HIBERN_FASTAUTO
...
Add UFSHCD_QUIRK_HIBERN_FASTAUTO quirk for host controllers which supports
auto-hibernate the capability but only FASTAUTO mode.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Yoshihiro Shimoda <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-06-13 21:57:34 -04:00
Yoshihiro Shimoda
6554400d6f
scsi: ufs: core: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS
...
Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS for host controllers which do not
support 64-bit addressing.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Yoshihiro Shimoda <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-06-13 21:57:34 -04:00
Bart Van Assche
dd11376b9f
scsi: ufs: Split the drivers/scsi/ufs directory
...
Split the drivers/scsi/ufs directory into 'core' and 'host' directories
under the drivers/ufs/ directory. Move shared header files into the
include/ufs/ directory. This separation makes it clear which header files
UFS drivers are allowed to include (include/ufs/*.h) and which header files
UFS drivers are not allowed to include (drivers/ufs/core/*.h).
Update the MAINTAINERS file. Add myself as a UFS reviewer.
Link: https://lore.kernel.org/r/[email protected]
Cc: Adrian Hunter <[email protected] >
Cc: Avri Altman <[email protected] >
Cc: Bean Huo <[email protected] >
Cc: Bjorn Andersson <[email protected] >
Cc: Keoseong Park <[email protected] >
Tested-by: Bean Huo <[email protected] >
Tested-by: Adrian Hunter <[email protected] >
Reviewed-by: Bean Huo <[email protected] >
Acked-by: Avri Altman <[email protected] >
Acked-by: Adrian Hunter <[email protected] >
Signed-off-by: Bart Van Assche <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-05-19 20:27:37 -04:00