]> git.baikalelectronics.ru Git - kernel.git/commit
media: mtk-jpeg: Get rid of mtk_smi_larb_get/put
authorYong Wu <yong.wu@mediatek.com>
Mon, 17 Jan 2022 07:05:03 +0000 (08:05 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jan 2022 14:30:21 +0000 (15:30 +0100)
commit4b5c938c80d43e73a0f1efd36f573cd37dcf1115
treeacb9cd2b8ca9b6525a90ede30f1e1ab954560b4e
parent97bea52058edd1dac523abb81be5198fd5340778
media: mtk-jpeg: Get rid of mtk_smi_larb_get/put

MediaTek IOMMU has already added device_link between the consumer
and smi-larb device. If the jpg device calls the pm_runtime_get_sync,
the smi-larb's pm_runtime_get_sync also be called automatically.

After removing the larb_get operations, then mtk_jpeg_clk_init is
also unnecessary. Remove it too.

CC: Xia Jiang <xia.jiang@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Evan Green <evgreen@chromium.org>
Acked-by: Rick Chang <rick.chang@mediatek.com>
Reviewed-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Tested-by: Frank Wunderlich <frank-w@public-files.de> # BPI-R2/MT7623
Acked-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h