From: Dan Carpenter <dan.carpenter@oracle.com>
To: s.nawrocki@samsung.com
Cc: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org
Subject: re: [media] s5p-csis: Add support for non-image data packets capture
Date: Fri, 23 Aug 2013 12:35:04 +0300 [thread overview]
Message-ID: <20130823093504.GJ31293@elgon.mountain> (raw)
Hello Sylwester Nawrocki,
I had a question about 36fa80927638: "[media] s5p-csis: Add support for
non-image data packets capture" from Sep 21, 2012.
S5PCSIS_INTSRC_NON_IMAGE_DATA is defined in mipi-csis.c:
#define S5PCSIS_INTSRC_NON_IMAGE_DATA (0xff << 28)
And it's only used in one place.
drivers/media/platform/exynos4-is/mipi-csis.c
692 u32 status;
693
694 status = s5pcsis_read(state, S5PCSIS_INTSRC);
695 spin_lock_irqsave(&state->slock, flags);
696
697 if ((status & S5PCSIS_INTSRC_NON_IMAGE_DATA) && pktbuf->data) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"status" is a u32 so 0xff0000000 is 4 bits too much. In other words,
the mask is effectively "(0xf << 28)". Was that intended or should it
be (0xff << 24)?
698 u32 offset;
699
700 if (status & S5PCSIS_INTSRC_EVEN)
701 offset = S5PCSIS_PKTDATA_EVEN;
regards,
dan carpenter
next reply other threads:[~2013-08-23 9:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 9:35 Dan Carpenter [this message]
2013-08-23 9:54 ` [media] s5p-csis: Add support for non-image data packets capture Sylwester Nawrocki
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=20130823093504.GJ31293@elgon.mountain \
--to=dan.carpenter@oracle.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.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