Linux Media Controller development
 help / color / mirror / Atom feed
From: Sergey Lebedev <lsa.uz@pm.me>
To: Hans de Goede <hansg@kernel.org>
Cc: Daniel Scally <dan.scally@ideasonboard.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	platform-driver-x86@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: int3472: the vendor GPIO type table, and four values that differ
Date: Tue, 01 Sep 2026 17:58:50 +0000	[thread overview]
Message-ID: <20260901175842.47669-1-lsa.uz@pm.me> (raw)
In-Reply-To: <20260831180837.69000-1-lsa.uz@pm.me>

Hans, thank you - your two anchors let me find the bug, and it was mine.

You wrote that 0x12 = HANDSHAKE came from Intel directly, and pointed at
dmanresa's independent mapping of 0x10 to AVDD. Neither fits the table I
sent, so I went back to the binary. The table I posted is short by two
entries.

My first pass ran strings(1) with a minimum length of three, which
silently dropped every name shorter than that. Two were dropped, both
sitting between PrivateLED and Avdd:

  0001f370: 4544 0000 4146 0000 494f 0000 4176 6464   ED..AF..IO..Avdd
                      ^^^^        ^^^^
                      0x0e AF     0x0f IO

Everything above 0x0d was therefore reported two slots low. Corrected,
the table runs 0x00..0x15:

  0x00 Reset       0x01 Enable       0x02 Strobe       0x03 Torch
  0x04 Flash       0x05 LedRear      0x06 LedFront     0x07 Power0
  0x08 Power1      0x09 Standby      0x0a WriteProtect 0x0b PowerEn
  0x0c Mclk        0x0d PrivateLED   0x0e AF           0x0f IO
  0x10 Avdd        0x11 Core         0x12 Handshake    0x13 HDMI_INT_IO
  0x14 HDMIDetect  0x15 Reserved

Every disagreement I reported disappears:

  value   int3472.h        vendor, corrected
  0x01    POWERDOWN        Enable          - same pin, as you explained
  0x10    DOVDD            Avdd
  0x12    HANDSHAKE        Handshake       - agrees
  0x13    HOTPLUG_DETECT   HDMI_INT_IO     - agrees, same function

So the answer to the question I asked is that the kernel was right at
every disputed value and my table was wrong. Sorry for the noise.

One thing survives, and it is the reason I am writing rather than just
withdrawing. You said the 0x10 dovdd mapping was a guess - that you knew
it controlled a regulator, did not know which, and picked dovdd because
avdd was already taken by 0x0b. Intel's own table calls 0x10 Avdd. That
is a second, independent vote for dmanresa's reading, arrived at from a
different artifact.

It does not settle what 0x0b should be called. If 0x10 is avdd, then
0x0b - which the vendor calls PowerEn, and which the kernel calls
POWER_ENABLE, not a rail name at all - may never have needed a rail
name. Your point that drivers bulk-enable everything still decides
whether any of this is worth changing.

The indexing is still positional inference: nothing in the binary takes
the address of these strings, so I am reading an array of logging text
and assuming its order is the enum's order. What makes me believe it now
is that three values established independently of this binary - Intel's
0x12, dmanresa's 0x10, and the kernel's 0x13 - all land at once under a
single two-slot correction. That is a much better argument than the one
I made the first time.

Sergey Lebedev


      parent reply	other threads:[~2026-09-01 18:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 18:08 int3472: the vendor GPIO type table, and four values that differ Sergey Lebedev
2026-09-01 13:35 ` Hans de Goede
2026-09-01 17:58 ` Sergey Lebedev [this message]

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=20260901175842.47669-1-lsa.uz@pm.me \
    --to=lsa.uz@pm.me \
    --cc=dan.scally@ideasonboard.com \
    --cc=hansg@kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=sakari.ailus@linux.intel.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