Re: [PATCH] ACPI / PMIC: CrystalCove: Extend PMOP support to support all possible fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 13-08-18 17:55, Mika Westerberg wrote:
On Sun, Aug 12, 2018 at 06:33:44PM +0200, Hans de Goede wrote:
+/*	{
+		.address = 0x00,
+		.reg = ??,
+		.bit = ??,
+	}, ** VSYS */

Do you really need to keep these here? I think it just makes the table
uglier than it needs to be. And the code you took the entries does not
have them either.

Having these helps to verify that the address and names match,
the DSDT has:

                OperationRegion (PMOP, 0x8D, Zero, 0x0100)
                Field (PMOP, DWordAcc, NoLock, Preserve)
                {
                    VSYS,   32,
                    SYSX,   32,
                    SYSU,   32,
                    SYSS,   32,
                    V50S,   32,
                    HOST,   32,
                    VBUS,   32,
                    HDMI,   32,
                    S285,   32,
                    X285,   32,
                    V33A,   32,
                    V33S,   32,
                    V33U,   32,
                    V33I,   32,
                    V18A,   32,
                    REFQ,   32,
                    V12A,   32,
                    V18S,   32,
                    V18X,   32,
		    ....
		}

And address really is just an offset into this "struct", so
basically to check all the addresses are correct, I first check
that all the labels which I've put in comments (including the
ones which do not have implemented) match with the list
of fields in the DSDT and then as a second step I check the
addresses are 0x00 0x04 0x08 0x0c 0x10 0x14 ...

Having holes in the table makes this a lot harder, note
there are no holes in the DSDT definition of the struct.

Regards,

Hans



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux