public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Darius Augulis <augulis.darius@gmail.com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	paulius.zaleckas@teltonika.lt
Subject: Re: [PATCH V3] Add camera (CSI) driver for MX1
Date: Fri, 03 Apr 2009 13:44:53 +0300	[thread overview]
Message-ID: <49D5E8A5.1080608@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0904031204280.4729@axis700.grange>

Guennadi Liakhovetski wrote:
> Ok, we're almost there:-) Should be the last iteration.
>
> On Fri, 3 Apr 2009, Darius Augulis wrote:
>
>   
>> From: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
>>
>> Changelog since V2:
>> - My signed-off line added
>> - Makefile updated
>> - .init and .exit removed from pdata
>> - includes sorted
>> - Video memory limit added
>> - Pointers in free_buffer() fixed
>> - Indentation fixed
>> - Spinlocks added
>> - PM implementation removed
>> - Added missed clk_put()
>> - pdata test added
>> - CSI device renamed
>> - Platform flags fixed
>> - "i.MX" replaced by "MX1" in debug prints
>>     
>
> I usually put such changelogs below the "---" line, so it doesn't appear 
> in the git commit message, and here you just put a short description of 
> the patch.
>
>   
>> Signed-off-by: Darius Augulis <augulis.darius@gmail.com>
>> Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
>> ---
>>     
>
> [snip]
>
>   
>> diff --git a/arch/arm/plat-mxc/include/mach/memory.h b/arch/arm/plat-mxc/include/mach/memory.h
>> index e0783e6..7113b3e 100644
>> --- a/arch/arm/plat-mxc/include/mach/memory.h
>> +++ b/arch/arm/plat-mxc/include/mach/memory.h
>> @@ -24,4 +24,12 @@
>>  #define PHYS_OFFSET		UL(0x80000000)
>>  #endif
>>  
>> +#if defined(CONFIG_MX1_VIDEO)
>>     
>
> This #ifdef is not needed any more now, the file is not compiled if 
> CONFIG_MX1_VIDEO is not defined.
>   
this header file is included by arch/arm/include/asm/memory.h
By default dma bufer size is only 2Mbytes. If we remove this ifdef, this 
bufer will be increased to re-defined size.
Therefore I suggest to leave this ifdef.

>   
>> +	/* Make choises, based on platform choice */
>> +	if ((common_flags & SOCAM_VSYNC_ACTIVE_HIGH) &&
>> +		(common_flags & SOCAM_VSYNC_ACTIVE_LOW)) {
>> +			if (pcdev->pdata->flags & MX1_CAMERA_VSYNC_HIGH)
>> +				common_flags &= ~SOCAM_VSYNC_ACTIVE_LOW;
>> +			else
>> +				common_flags &= ~SOCAM_VSYNC_ACTIVE_HIGH;
>> +	}
>> +
>> +	if ((common_flags & SOCAM_PCLK_SAMPLE_RISING) &&
>> +		(common_flags & SOCAM_PCLK_SAMPLE_FALLING)) {
>> +			if (pcdev->pdata->flags & MX1_CAMERA_PCLK_RISING)
>> +				common_flags &= ~SOCAM_PCLK_SAMPLE_FALLING;
>> +			else
>> +				common_flags &= ~SOCAM_PCLK_SAMPLE_RISING;
>> +	}
>> +
>> +	if ((common_flags & SOCAM_DATA_ACTIVE_HIGH) &&
>> +		(common_flags & SOCAM_DATA_ACTIVE_LOW)) {
>> +			if (pcdev->pdata->flags & MX1_CAMERA_DATA_HIGH)
>> +				common_flags &= ~SOCAM_DATA_ACTIVE_LOW;
>> +			else
>> +				common_flags &= ~SOCAM_DATA_ACTIVE_HIGH;
>> +	}
>>     
>
> In all three clauses above pdata can be NULL.
>
> Thanks
> Guennadi
> ---
> Guennadi Liakhovetski, Ph.D.
> Freelance Open-Source Software Developer
>
>   


  reply	other threads:[~2009-04-03 10:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-03  8:09 [PATCH V3] Add camera (CSI) driver for MX1 Darius Augulis
2009-04-03 10:22 ` Guennadi Liakhovetski
2009-04-03 10:44   ` Darius Augulis [this message]
2009-04-03 10:54     ` Guennadi Liakhovetski
2009-04-03 11:22       ` Darius Augulis

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=49D5E8A5.1080608@gmail.com \
    --to=augulis.darius@gmail.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=linux-media@vger.kernel.org \
    --cc=paulius.zaleckas@teltonika.lt \
    --cc=s.hauer@pengutronix.de \
    /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