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
此提交包含在:
@@ -417,6 +417,7 @@ void hal_write_address_32_mb(struct hal_soc *hal_soc,
|
|||||||
hal_write32_mb(hal_soc, offset, value);
|
hal_write32_mb(hal_soc, offset, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef DP_HAL_MULTIWINDOW_DIRECT_ACCESS
|
#ifdef DP_HAL_MULTIWINDOW_DIRECT_ACCESS
|
||||||
static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
|
static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
|
||||||
struct hal_srng *srng,
|
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);
|
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,
|
static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
|
||||||
struct hal_srng *srng,
|
struct hal_srng *srng,
|
||||||
void __iomem *addr,
|
void __iomem *addr,
|
||||||
|
@@ -228,15 +228,9 @@
|
|||||||
#define SRNG_SRC_ADDR(_srng, _reg) \
|
#define SRNG_SRC_ADDR(_srng, _reg) \
|
||||||
SRNG_REG_ADDR(_srng, _reg, _reg ## _GROUP, SRC)
|
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) \
|
#define SRNG_REG_WRITE(_srng, _reg, _value, _dir) \
|
||||||
hal_write_address_32_mb(_srng->hal_soc,\
|
hal_write_address_32_mb(_srng->hal_soc,\
|
||||||
SRNG_ ## _dir ## _ADDR(_srng, _reg), (_value), false)
|
SRNG_ ## _dir ## _ADDR(_srng, _reg), (_value), false)
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SRNG_REG_WRITE_CONFIRM(_srng, _reg, _value, _dir) \
|
#define SRNG_REG_WRITE_CONFIRM(_srng, _reg, _value, _dir) \
|
||||||
hal_write_address_32_mb(_srng->hal_soc,\
|
hal_write_address_32_mb(_srng->hal_soc,\
|
||||||
|
新增問題並參考
封鎖使用者