To support 32bit application, we should use fixed-length types in ioctl
parameters, specifically avoid using the type long and unsigned long.
remove some unused ioctl cmd.
clear some building warning.
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: TaoJiang <tao.jiang_2@nxp.com>
imx device cooling driver device_cooling.c is removed, so replace the
expired config CONFIG_DEVICE_THERMAL(device_cooling.c) with the
current used one CONFIG_DEVFREQ_THERMAL(devfreq_cooling.c).
Signed-off-by: Dandan Sun <dandan.sun@nxp.com>
Reviewed by: Guangliu Ding <guangliu.ding@nxp.com>
call compat_ptr_ioctl directly for the ioctl
that either ignore the argument or
pass a pointer to a compatible data type
refine hantrodec_ioctl32 to handle other ioctl correctly.
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: TaoJiang <tao.jiang_2@nxp.com>
the semaphore is unlocked in isr in normal case,
if the interrupt is missed, and timeout is triggered,
there will be no change to unlock it
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Since kernel verision 5.16, there has a blk-ctrl driver uniformly handle blk-ctrls,
so, don't need vpu driver handle it separately
keep original function to be compatiable with previous device tree.
Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
replace ioremap_nocache with ioremap
ioremap has provided non-cached semantics by default since the Linux 2.6
Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>