From: Sekhar Nori <nsekhar@ti.com>
To: Prabhakar lad <prabhakar.csengg@gmail.com>
Cc: DLOS <davinci-linux-open-source@linux.davincidsp.com>,
LAK <linux-arm-kernel@lists.infradead.org>,
LMML <linux-media@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Mauro Carvalho Chehab <mchehab@redhat.com>
Subject: Re: [PATCH v3 2/3] media: davinci: vpbe: venc: move the enabling of vpss clocks to driver
Date: Tue, 9 Apr 2013 15:27:23 +0530 [thread overview]
Message-ID: <5163E603.3030103@ti.com> (raw)
In-Reply-To: <1365423553-12619-3-git-send-email-prabhakar.csengg@gmail.com>
On 4/8/2013 5:49 PM, Prabhakar lad wrote:
> From: Lad, Prabhakar <prabhakar.csengg@gmail.com>
>
> The vpss clocks were enabled by calling a exported function from a driver
> in a machine code. calling driver code from platform code is incorrect way.
>
> This patch fixes this issue and calls the function from driver code itself.
>
> Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
> ---
> drivers/media/platform/davinci/vpbe_venc.c | 25 +++++++++++++++++++++++++
> 1 files changed, 25 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/media/platform/davinci/vpbe_venc.c b/drivers/media/platform/davinci/vpbe_venc.c
> index f15f211..91d0272 100644
> --- a/drivers/media/platform/davinci/vpbe_venc.c
> +++ b/drivers/media/platform/davinci/vpbe_venc.c
> @@ -202,6 +202,25 @@ static void venc_enabledigitaloutput(struct v4l2_subdev *sd, int benable)
> }
> }
>
> +static void
> +venc_enable_vpss_clock(int venc_type,
> + enum vpbe_enc_timings_type type,
> + unsigned int pclock)
> +{
> + if (venc_type == VPBE_VERSION_1)
> + return;
> +
> + if (venc_type == VPBE_VERSION_2 && (type == VPBE_ENC_STD ||
> + (type == VPBE_ENC_DV_TIMINGS && pclock <= 27000000))) {
checkpatch --strict will throw a "Alignment should match open
parenthesis" check here. You may want to fix before you send the pull
request. No need to resend the patch just for this.
Thanks,
Sekhar
next prev parent reply other threads:[~2013-04-09 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-08 12:19 [PATCH v3 0/3] davinci: vpss: clock cleanup Prabhakar lad
2013-04-08 12:19 ` [PATCH v3 1/3] media: davinci: vpss: enable vpss clocks Prabhakar lad
2013-04-08 12:19 ` [PATCH v3 2/3] media: davinci: vpbe: venc: move the enabling of vpss clocks to driver Prabhakar lad
2013-04-09 9:57 ` Sekhar Nori [this message]
2013-04-09 10:03 ` Prabhakar Lad
2013-04-08 12:19 ` [PATCH v3 3/3] davinic: vpss: trivial cleanup Prabhakar lad
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=5163E603.3030103@ti.com \
--to=nsekhar@ti.com \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=prabhakar.csengg@gmail.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