mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
ufs: Port UFS driver to use headers from core kernel for Linux 6.7
Some of the drivers-private headers are now available in public header path in core kernel. Use such headers directly from the core kernel for Linux 6.7 and later instead of copying it in the nvidia-oot/include/driver-private. Also match the quirks definition with core kernel for Linux 6.0 and later. Bug 4346767 Change-Id: If994466a3cabc6df8eeb0e97018f48d48a8306dc Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3038489 Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Tested-by: Vishwaroop A <va@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
b282d21004
commit
dfff2311c3
@@ -157,6 +157,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_struct_has_iosys_map
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_write_has_u8_ptr_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_set_termios_has_const_ktermios_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += ufs_hba_variant_ops_suspend_has_status_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += ufshcd_quirks_enum_has_ufshcd_quirk_broken_64bit_address
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_async_connection_struct_present
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_async_match_type_enum_present
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_async_subdev_nf_init
|
||||
|
||||
@@ -7581,6 +7581,22 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_UFS_HBA_VARIANT_OPS_SUSPEND_HAS_STATUS_ARG" "" "types"
|
||||
;;
|
||||
|
||||
ufshcd_quirks_enum_has_ufshcd_quirk_broken_64bit_address)
|
||||
#
|
||||
# Determine if the 'UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS' is defined in the
|
||||
# enum ufshcd_quirks.
|
||||
#
|
||||
# In Linux v6.0, the enum UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS is added as
|
||||
# commit 6554400d6f66 ("scsi: ufs: core: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS")
|
||||
#
|
||||
CODE="
|
||||
#include <ufs/ufshcd.h>
|
||||
enum ufshcd_quirks quirk = UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS;
|
||||
"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_UFSHCD_QUIRKS_ENUM_HAS_UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS" "" "types"
|
||||
;;
|
||||
|
||||
v4l2_async_connection_struct_present)
|
||||
#
|
||||
# Determine if the 'struct v4l2_async_connection' present or not.
|
||||
|
||||
Reference in New Issue
Block a user