mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacmn: Use right macro to enable delayed register writes
Fix macro name to enable delayed register writes. Donot use delayed register writes for non fastpath access. Change-Id: I235116ab3df5cb26bbfbb72de4ac6ed4b363a13a CRs-Fixed: 2645865
This commit is contained in:
parent
99e3c8b80e
commit
db3f6a4b8c
2 changed files with 2 additions and 7 deletions
|
|
@ -417,6 +417,7 @@ void hal_write_address_32_mb(struct hal_soc *hal_soc,
|
|||
hal_write32_mb(hal_soc, offset, value);
|
||||
}
|
||||
|
||||
|
||||
#ifdef DP_HAL_MULTIWINDOW_DIRECT_ACCESS
|
||||
static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
|
||||
struct hal_srng *srng,
|
||||
|
|
@ -425,7 +426,7 @@ static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
|
|||
{
|
||||
qdf_iowrite32(addr, value);
|
||||
}
|
||||
#elif defined(FEATURE_HAL_DELAYED_WRITE)
|
||||
#elif defined(FEATURE_HAL_DELAYED_REG_WRITE)
|
||||
static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
|
||||
struct hal_srng *srng,
|
||||
void __iomem *addr,
|
||||
|
|
|
|||
|
|
@ -228,15 +228,9 @@
|
|||
#define SRNG_SRC_ADDR(_srng, _reg) \
|
||||
SRNG_REG_ADDR(_srng, _reg, _reg ## _GROUP, SRC)
|
||||
|
||||
#ifdef FEATURE_HAL_DELAYED_WRITE
|
||||
#define SRNG_REG_WRITE(_srng, _reg, _value, _dir) \
|
||||
hal_delayed_reg_write(_srng->hal_soc, _srng,\
|
||||
SRNG_ ## _dir ## _ADDR(_srng, _reg), (_value))
|
||||
#else
|
||||
#define SRNG_REG_WRITE(_srng, _reg, _value, _dir) \
|
||||
hal_write_address_32_mb(_srng->hal_soc,\
|
||||
SRNG_ ## _dir ## _ADDR(_srng, _reg), (_value), false)
|
||||
#endif
|
||||
|
||||
#define SRNG_REG_WRITE_CONFIRM(_srng, _reg, _value, _dir) \
|
||||
hal_write_address_32_mb(_srng->hal_soc,\
|
||||
|
|
|
|||
Loading…
Reference in a new issue