From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: "Arve Hjønnevåg" <arve@android.com>
Cc: linux-omap@vger.kernel.org, Dima Zavin <dima@android.com>
Subject: Re: [PATCH] OMAP: DSS2: DSI: Support non-dcs long read
Date: Fri, 05 Aug 2011 10:53:07 +0300 [thread overview]
Message-ID: <1312530787.1907.28.camel@deskari> (raw)
In-Reply-To: <CAMP5XgcQCL+enaiWYX4ZLkxfpQh9UhxC8_3i3h736OET4kEGhA@mail.gmail.com>
Hi,
On Fri, 2011-08-05 at 00:17 -0700, Arve Hjønnevåg wrote:
> 2011/8/5 Tomi Valkeinen <tomi.valkeinen@ti.com>:
> > On Thu, 2011-08-04 at 18:15 -0700, Arve Hjønnevåg wrote:
> >> 2011/8/4 Tomi Valkeinen <tomi.valkeinen@ti.com>:
> >> > Hi,
> >> >
> >> > On Wed, 2011-06-29 at 20:44 -0700, Arve Hjønnevåg wrote:
> >> >> Change-Id: I18168c887e1384c07dc033a1ffc57abdacb26073
> >> >> Signed-off-by: Arve Hjønnevåg <arve@android.com>
> >> >> ---
> >> >> drivers/video/omap2/dss/dsi.c | 7 ++++++-
> >> >> 1 files changed, 6 insertions(+), 1 deletions(-)
> >> >
> >> > This feels somehow partial... Why do you want to read generic packets if
> >> > there are no functions to send generic packets?
> >> >
> >>
> >> The chip responds with a generic packet when reading from some
> >> registers. This is a simple fix while adding support for sending
> >> generic packets would probably require an api change.
> >
> > What command do you use to read the register? DCS? If so, sounds rather
> > strange HW implementation.
> >
>
> This change modifies dsi_vc_dcs_read to accept a generic response
Ok, so you do send a DCS read command, and you get a generic response.
> packet. If you want a separate generic read command that would also
> work, but the it would make it a little harder to write the driver
> since you then would need to know what type of response the chip
> sends.
Well, you do know what type of response the chip sends. According to
MIPI DSI spec, a DCS read is answered with DCS short/long response, and
a generic read is answered with generic short/long response.
If your HW doesn't work like that, it's against the spec. If a broken
chip like that was widely used, I guess we would have to add a hack for
that, but until such day I want to keep the driver working as the spec
says.
Tomi
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-08-05 7:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-30 3:44 [PATCH] OMAP: DSS2: DSI: Support non-dcs long read Arve Hjønnevåg
2011-08-04 12:06 ` Tomi Valkeinen
2011-08-05 1:15 ` Arve Hjønnevåg
2011-08-05 7:09 ` Tomi Valkeinen
2011-08-05 7:17 ` Arve Hjønnevåg
2011-08-05 7:53 ` Tomi Valkeinen [this message]
2011-08-05 23:05 ` Arve Hjønnevåg
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=1312530787.1907.28.camel@deskari \
--to=tomi.valkeinen@ti.com \
--cc=arve@android.com \
--cc=dima@android.com \
--cc=linux-omap@vger.kernel.org \
/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