devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Chase <jnchase@google.com>
To: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: linux-media@vger.kernel.org, mchehab@kernel.org,
	robh+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v5 2/2] media: cec: i2c: ch7322: Add ch7322 CEC controller driver
Date: Thu, 18 Jun 2020 09:25:27 -0700	[thread overview]
Message-ID: <CALTkaQ02_ttD52h=74hGos09a0ihQwv-rQS5vwpDsrdnK_rYrg@mail.gmail.com> (raw)
In-Reply-To: <e45bf5a1-3862-66a2-213b-f7e5563e5a5d@xs4all.nl>

On Thu, Jun 18, 2020 at 3:05 AM Hans Verkuil <hverkuil-cisco@xs4all.nl> wrote:
>
> On 18/06/2020 10:59, Jeff Chase wrote:
> > Hi Hans,
> >
> > We are using two of these in an Intel-based Chromebox. I see that the
> > cros-ec and seco drivers just statically define the PCI BDF of the
> > Intel graphics device for their boards. I don't see an example of ACPI
> > passing this information. I can copy cros-ec and seco by adding a
> > board table and then use the UID of each device to select the correct
> > port. Adding board-specific configuration to the driver doesn't seem
> > ideal but I'm not sure what the proper way to pass this using ACPI is.
>
> You are right, it's not ACPI, it's using DMI matching.
>
> I have zero knowledge about ACPI, so I have no idea if there is some standard
> method of retrieving this association via ACPI.

I'm not very familiar with ACPI either. I looked for but did not find
an ACPI equivalent of_get_mac_address().

I believe it's possible to reference the PCI node but it would take a
bit of work on both the coreboot and linux side.

>
> This particular chip can actually be used both with DMI matching but also
> on an ARM with device tree, but since you can't test this on an ARM board,
> there is no point in adding support for that.
>
> However, compared to the cros-ec and seco drivers you can do something a bit
> different here: those drivers just return -ENODEV if there is no match, but
> since this driver reads the EDID it can just continue as long as it does not
> set the CEC_CAP_CONNECTOR_INFO capability.

Is it necessary to add support if we don't set CEC_CAP_CONNECTOR_INFO?

Thanks,
Jeff

  reply	other threads:[~2020-06-18 16:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-15 19:38 [PATCH v5 0/2] CH7322 CEC controller driver Jeff Chase
2020-06-15 19:38 ` [PATCH v5 1/2] dt-bindings: Add ch7322 media i2c device Jeff Chase
2020-06-17 20:26   ` Rob Herring
2020-06-17 22:07     ` Jeff Chase
2020-06-15 19:38 ` [PATCH v5 2/2] media: cec: i2c: ch7322: Add ch7322 CEC controller driver Jeff Chase
2020-06-18  7:51   ` Hans Verkuil
2020-06-18  8:59     ` Jeff Chase
2020-06-18 10:05       ` Hans Verkuil
2020-06-18 16:25         ` Jeff Chase [this message]
2020-06-18 16:33           ` Hans Verkuil
2020-06-18 16:40             ` Jeff Chase
2020-06-20  4:56               ` Jeff Chase
2020-06-20  8:57                 ` Hans Verkuil

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='CALTkaQ02_ttD52h=74hGos09a0ihQwv-rQS5vwpDsrdnK_rYrg@mail.gmail.com' \
    --to=jnchase@google.com \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).