public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: "K, Mythri P" <mythripk@ti.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 0/8] HDMI: Split hdmi.c to seperate HDMI IP dependant code from DSS.
Date: Fri, 01 Jul 2011 11:51:09 +0300	[thread overview]
Message-ID: <1309510269.1821.18.camel@deskari> (raw)
In-Reply-To: <BANLkTi=XUVEXxw7Ag23BEBw8zHY6J+c9OQ@mail.gmail.com>

On Thu, 2011-06-30 at 23:16 +0530, K, Mythri P wrote:
> Hi Tomi,
> 
> On Wed, Jun 29, 2011 at 9:51 PM, Tomi Valkeinen <tomi.valkeinen@ti.com> wrote:
> > Hi,
> >
> > On Wed, 2011-06-29 at 19:08 +0530, K, Mythri P wrote:
> >> Hi Tomi,
> >
> >> As the HDMI PLL , PHY and video blocks are logical blocks it would
> >> make sense to have the API's for all and the DSS HDMI (interface
> >> driver - user driver) would make a call to configure this in a
> >> particular sequence to enable HDMI , in case you the call to be
> >> generic across OMAPS in future then we should i either have a funtion
> >> in hdmi.c which will do this sequence and will be  aware of underlying
> >> IP , Which doesnt appear to be the solution you prefer but then there
> >> would be a need to have an intermediate file which would take the
> >> common API call(function pointer) and then arbitrate between different
> >> IP's based on the make , Is that what you are suggesting ?
> >
> > I agree that they are separate blocks, and at some level they need to be
> > separate with own functions for each. But I don't see why the user needs
> > to know about it.
> >
> > For example, consider OMAP DSI. DSI has protocol, PLL and PHY blocks,
> > and the driver has functions to initialize them, use them etc. But the
> > user of DSI, in this case panel drivers, do not need to know about it,
> > and the API exported to the panel drivers does not contain any functions
> > related to PLL or PHY. The panel drivers just enable the DSI driver and
> > use it.
> >
> > So I'm still asking: what benefit does it give to the user that the API
> > has functions to handle the blocks separately? There has to be a reason
> > for the functions in the API.
> >
> It doesnt give any additional benefit but flexibility to change the
> blocks (PHY / PLL) indivudally to use a different one.

Right. But this API is not the right place to implement that
flexibility. If there's no benefit for the user of the API to know about
the details of the HW, it's better hidden. The user just wants to use
the functionality, not know what lies below.

> >> > And it just occurred to me that perhaps our views of the API are a bit
> >> > different, and that's why we have differing opinions. I see this API as
> >> > something that could be used by OMAP DSS (and equivalent components on
> >> > other SoCs) to use the HDMI HW on OMAP4 and any future OMAPs. And
> >> > perhaps you see this API more as an API to use the current HDMI HW in
> >> > the OMAP4.
> >>
> >> Tomi , Yes my Idea of this API is for OMAP and Netra series only , I
> >> am unable to envision a common HDMI API library , in that case it
> >> would make more sense to have an intermediate file and have function
> >> pointer , which would take common API calls like hdmi_enable ,
> >> hdmi_avi_confg etc and then arbitrate based on the build. Please let
> >> me know if you have anything else in mind.
> >
> > I didn't mean a generic HDMI API either. I meant a TI HDMI API,
> > currently for OMAP and Netra. But my comments would be valid even if the
> > API would be only OMAP DSS internal.
> >
> Neither the HDMI DSS driver should be concerned about these PHY/PLL
> internal API's nor should the configuration be done in the  IP driver
> as the IP driver shpuld only provide functionality and should be
> flexible enough as across OMAP4 and netra itself there is a

What configuration are you referring to? I don't think the user of the
API (i.e. omapdss) should do any configuration that requires knowledge
of the underlying HDMI HW.

> possibility of the PHY block being different , so  Now the only
> solution i see is to have a intermediate file , whose job is to
> provide common API function and based on the CPU switch would be aware
> of the IP inside and make appropriate call to IP driver , Does this
> sound like a good approach ?

I don't see a need for a separate file right now. We have the
hdmi_ti_4xxx_ip.c file which contains code for the HDMI block as a
whole, and could well contain the code that implements the API.

 Tomi



  reply	other threads:[~2011-07-01  8:51 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17  8:17 [PATCH 0/8] HDMI: Split hdmi.c to seperate HDMI IP dependant code from DSS Mythri P K
2011-06-17  8:17 ` [PATCH 1/8] OMAP4: DSS: HDMI: HDMI clean up to pass base_address Mythri P K
2011-06-17  8:17   ` [PATCH 2/8] OMAP4 : DSS : HDMI : Move the EDID portion from HDMI IP Mythri P K
2011-06-17  8:17     ` [PATCH 3/8] OMAP4: DSS: HDMI: Use specific HDMI timings structure Mythri P K
2011-06-17  8:17       ` [PATCH 4/8] OMAP4: DSS: HDMI: Move the common header file definition Mythri P K
2011-06-17  8:17         ` [PATCH 5/8] OMAP4: DSS2: HDMI: Split the HDMI driver to DSS and IP Mythri P K
2011-06-17  8:17           ` [PATCH 6/8] OMAP4: DSS: HDMI: Rename the functions in HDMI IP Mythri P K
2011-06-17  8:17             ` [PATCH 7/8] HDMI: Move HDMI IP Library from OMAP DSS to common Mythri P K
2011-06-17  8:17               ` [PATCH 8/8] OMAP4: DSS: Rename hdmi_omap4_panel.c to hdmi_panel.c Mythri P K
2011-06-20 13:48           ` [PATCH 5/8] OMAP4: DSS2: HDMI: Split the HDMI driver to DSS and IP Premi, Sanjeev
2011-06-23  5:55             ` K, Mythri P
2011-06-20 12:46       ` [PATCH 3/8] OMAP4: DSS: HDMI: Use specific HDMI timings structure Premi, Sanjeev
2011-06-23  5:45         ` K, Mythri P
2011-06-23  8:30       ` Tomi Valkeinen
2011-06-23  8:46         ` K, Mythri P
2011-06-20 13:33   ` [PATCH 1/8] OMAP4: DSS: HDMI: HDMI clean up to pass base_address Premi, Sanjeev
2011-06-23  5:51     ` K, Mythri P
2011-06-23 10:30       ` Premi, Sanjeev
2011-06-23 11:00         ` K, Mythri P
2011-06-23 11:03           ` Premi, Sanjeev
2011-06-23 11:09             ` K, Mythri P
2011-06-23  9:58 ` [PATCH 0/8] HDMI: Split hdmi.c to seperate HDMI IP dependant code from DSS Tomi Valkeinen
2011-06-23 12:05   ` K, Mythri P
2011-06-23 12:31     ` Tomi Valkeinen
2011-06-27  5:51       ` K, Mythri P
2011-06-27 12:58         ` Tomi Valkeinen
2011-06-29 13:38           ` K, Mythri P
2011-06-29 16:21             ` Tomi Valkeinen
2011-06-30 17:46               ` K, Mythri P
2011-07-01  8:51                 ` Tomi Valkeinen [this message]
2011-07-01  9:22                   ` K, Mythri P
2011-07-01 11:44                     ` Tomi Valkeinen
2011-07-01 12:43                       ` K, Mythri P

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=1309510269.1821.18.camel@deskari \
    --to=tomi.valkeinen@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=mythripk@ti.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