From: Arun Kumar K <arun.kk@samsung.com>
To: Kyungmin Park <kmpark@infradead.org>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
Jeongtae Park <jtp.park@samsung.com>,
Jang-Hyuck Kim <janghyuck.kim@samsung.com>,
peter Oh <jaeryul.oh@samsung.com>,
NAVEEN KRISHNA CHATRADHI <ch.naveen@samsung.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Kamil Debski <k.debski@samsung.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
"hans.verkuil@cisco.com" <hans.verkuil@cisco.com>,
"mchehab@infradead.org" <mchehab@infradead.org>
Subject: Re: [PATCH v2 2/2] [media] s5p-mfc: update MFC v4l2 driver to support MFC6.x
Date: Thu, 12 Jul 2012 12:43:30 +0000 (GMT) [thread overview]
Message-ID: <3152828.307961342097010008.JavaMail.weblogic@epml02> (raw)
Hi Kyungmin Park,
Thank you for the review.
Please find my comments inline.
On Fri, Jul 6, 2012 at 7:51 PM, Kyungmin Park <kmpark@infradead.org> wrote:
> Hi,
>
> On Fri, Jul 6, 2012 at 11:00 PM, Arun Kumar K <arun.kk@samsung.com> wrote:
>> From: Jeongtae Park <jtp.park@samsung.com>
>>
>> Multi Format Codec 6.x is a hardware video coding acceleration
>> module fount in new Exynos5 SoC series.
>> It is capable of handling a range of video codecs and this driver
>> provides a V4L2 interface for video decoding and encoding.
>>
>> Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
>> Singed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
>> Singed-off-by: Jaeryul Oh <jaeryul.oh@samsung.com>
>> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
>> Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
>> Cc: Marek Szyprowski <m.szyprowski@samsung.com>
>> Cc: Kamil Debski <k.debski@samsung.com>
>> ---
>> drivers/media/video/Kconfig | 16 +-
>> drivers/media/video/s5p-mfc/Makefile | 7 +-
>> drivers/media/video/s5p-mfc/regs-mfc-v6.h | 676 ++++++++++
>> drivers/media/video/s5p-mfc/regs-mfc.h | 29 +
>> drivers/media/video/s5p-mfc/s5p_mfc.c | 163 ++-
>> drivers/media/video/s5p-mfc/s5p_mfc_cmd.c | 6 +-
>> drivers/media/video/s5p-mfc/s5p_mfc_cmd.h | 3 +
>> drivers/media/video/s5p-mfc/s5p_mfc_cmd_v6.c | 96 ++
>> drivers/media/video/s5p-mfc/s5p_mfc_common.h | 123 ++-
>> drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c | 160 ++-
>> drivers/media/video/s5p-mfc/s5p_mfc_ctrl.h | 1 +
>> drivers/media/video/s5p-mfc/s5p_mfc_dec.c | 210 +++-
>> drivers/media/video/s5p-mfc/s5p_mfc_dec.h | 1 +
>> drivers/media/video/s5p-mfc/s5p_mfc_enc.c | 191 ++--
>> drivers/media/video/s5p-mfc/s5p_mfc_enc.h | 1 +
>> drivers/media/video/s5p-mfc/s5p_mfc_intr.c | 1 -
>> drivers/media/video/s5p-mfc/s5p_mfc_opr.c | 278 +++--
>> drivers/media/video/s5p-mfc/s5p_mfc_opr.h | 25 +-
>> drivers/media/video/s5p-mfc/s5p_mfc_opr_v6.c | 1697 ++++++++++++++++++++++++++
>> drivers/media/video/s5p-mfc/s5p_mfc_opr_v6.h | 140 +++
>> drivers/media/video/s5p-mfc/s5p_mfc_pm.c | 6 +-
>> drivers/media/video/s5p-mfc/s5p_mfc_shm.c | 28 +-
>> drivers/media/video/s5p-mfc/s5p_mfc_shm.h | 13 +-
>> drivers/media/video/v4l2-ctrls.c | 1 -
>> 24 files changed, 3476 insertions(+), 396 deletions(-)
>
> Doesn't it too big for one patch? Can you split it into several patches?
>
Ok. I will split it in the next patch.
>> create mode 100644 drivers/media/video/s5p-mfc/regs-mfc-v6.h
>> create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_cmd_v6.c
>> create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_opr_v6.c
>> create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_opr_v6.h
>>
>> diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig
>> index 99937c9..0d7fe77 100644
>> --- a/drivers/media/video/Kconfig
>> +++ b/drivers/media/video/Kconfig
>> @@ -1198,13 +1198,27 @@ config VIDEO_SAMSUNG_S5P_JPEG
>> This is a v4l2 driver for Samsung S5P and EXYNOS4 JPEG codec
>>
>> config VIDEO_SAMSUNG_S5P_MFC
>> + bool
>> +
>> +config VIDEO_SAMSUNG_S5P_MFC_V5
>> tristate "Samsung S5P MFC 5.1 Video Codec"
>> - depends on VIDEO_DEV && VIDEO_V4L2 && PLAT_S5P
>> + depends on VIDEO_DEV && VIDEO_V4L2 && ARCH_EXYNOS4
>> + select VIDEO_SAMSUNG_S5P_MFC
>> select VIDEOBUF2_DMA_CONTIG
>> default n
>> help
>> MFC 5.1 driver for V4L2.
>>
>> +config VIDEO_SAMSUNG_S5P_MFC_V6
>
> Yes, I know it's exynos5 series features. however, it's not good idea
> to add new config.
> It already handled platform device with proper name.
> e.g., s5p-mfc-v5, s5p-mfc-v6 and handle it with platform data.
>
Ok. Code changes are required for compiling both v5 and v6 together.
Will incorporate in next patch.
[snip]
>> -#define MFC_CLKNAME "sclk_mfc"
>> +#if defined(CONFIG_VIDEO_SAMSUNG_S5P_MFC_V5)
>> +#define MFC_CLKNAME "sclk_mfc"
>> +#elif defined(CONFIG_VIDEO_SAMSUNG_S5P_MFC_V6)
>> +#define MFC_CLKNAME "aclk_333"
> I think it can handle clkname without new config.
>
Yes I will change it.
Regards
Arun
next reply other threads:[~2012-07-12 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-12 12:43 Arun Kumar K [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-07-12 12:54 [PATCH v2 2/2] [media] s5p-mfc: update MFC v4l2 driver to support MFC6.x Arun Kumar K
2012-07-06 14:00 [PATCH v2 0/2] " Arun Kumar K
2012-07-06 14:00 ` [PATCH v2 2/2] [media] s5p-mfc: " Arun Kumar K
2012-07-06 14:21 ` Kyungmin Park
2012-07-10 15:10 ` Kamil Debski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3152828.307961342097010008.JavaMail.weblogic@epml02 \
--to=arun.kk@samsung.com \
--cc=ch.naveen@samsung.com \
--cc=hans.verkuil@cisco.com \
--cc=jaeryul.oh@samsung.com \
--cc=janghyuck.kim@samsung.com \
--cc=jtp.park@samsung.com \
--cc=k.debski@samsung.com \
--cc=kmpark@infradead.org \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mchehab@infradead.org \
--cc=s.nawrocki@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox