From: Darius Augulis <augulis.darius@gmail.com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
paulius.zaleckas@teltonika.lt,
Sascha Hauer <s.hauer@pengutronix.de>
Subject: Re: [RFC PATCH V2] Add camera (CSI) driver for MX1
Date: Thu, 02 Apr 2009 20:50:40 +0300 [thread overview]
Message-ID: <49D4FAF0.9060305@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0904010034300.12031@axis700.grange>
>> + * struct mx1_camera_pdata - i.MX1/i.MXL camera platform data
>> + * @init: Init board resources
>> + * @exit: Release board resources
>> + * @mclk_10khz: master clock frequency in 10kHz units
>> + * @flags: MX1 camera platform flags
>> + */
>> +struct mx1_camera_pdata {
>> + int (*init)(struct device *);
>> + int (*exit)(struct device *);
>>
>
> I thought the agreement was to avoid these .init() and .exit() hooks in
> new code...
>
Should I config board statically during system start-up?
>> +static void mx1_videobuf_queue(struct videobuf_queue *vq,
>> + struct videobuf_buffer *vb)
>> +{
>> + struct soc_camera_device *icd = vq->priv_data;
>> + struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
>> + struct mx1_camera_dev *pcdev = ici->priv;
>> + struct mx1_buffer *buf = container_of(vb, struct mx1_buffer, vb);
>> +
>> + dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__,
>> + vb, vb->baddr, vb->bsize);
>> +
>> + list_add_tail(&vb->queue, &pcdev->capture);
>>
>
> No, you had a spinlock here and in DMA ISR in the previous version, and it
> was correct. Without that lock the above list_add races with
> list_del_init() in mx1_camera_wakeup().
>
what can save and help for the spinlock on single-core system? mx3 there
does not have spinlock.
next prev parent reply other threads:[~2009-04-02 17:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 14:53 [RFC PATCH V2] Add camera (CSI) driver for MX1 Darius Augulis
2009-03-31 6:32 ` Darius Augulis
2009-04-02 15:47 ` Guennadi Liakhovetski
2009-04-02 17:50 ` Darius Augulis [this message]
2009-04-02 17:54 ` Guennadi Liakhovetski
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=49D4FAF0.9060305@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.