Patch Set 7:

(2 comments)

I would prefer that we use a consistent decision to enable it
across all stages of coreboot. If a specific card always needs
power, the user shouldn't turn it off. What would be left to
do is to move the current enabling/disabling from ramstage to
romstage. e.g.

    void h8_early_init(void)
{
/* comment why we might need it early */
h8_wwan_enable(h8_has_wwan(dev) && h8_wwan_nv_enable());
}

bootblock doesn't need SMBUS, only romstage and ramstage do.
If such a card is present it can never be disabled in romstage.
What should work is

h8_wwan_enable(h8_has_wwan(dev));

in romstage, but there's no nice way to reference the EC's struct device.

View Change

1 comment:

To view, visit change 39043. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia7a2ca370124ecf743b000998b56855d5ed8f573
Gerrit-Change-Number: 39043
Gerrit-PatchSet: 7
Gerrit-Owner: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Reviewer: Alexander Couzens <lynxis@fe80.eu>
Gerrit-Reviewer: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: Richard Hughes <richard@hughsie.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Nico Huber <nico.h@gmx.de>
Gerrit-Comment-Date: Sat, 22 Feb 2020 09:34:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h@gmx.de>
Gerrit-MessageType: comment