[coreboot-gerrit] Change in coreboot[master]: soc/intel/common/block: Add Intel common smbus code

Rizwan Qureshi (Code Review) gerrit at coreboot.org
Wed Apr 26 14:17:30 CEST 2017


Rizwan Qureshi has posted comments on this change. ( https://review.coreboot.org/19372 )

Change subject: soc/intel/common/block: Add Intel common smbus code
......................................................................


Patch Set 4:

(2 comments)

https://review.coreboot.org/#/c/19372/4/src/soc/intel/common/block/smbus/smbus.c
File src/soc/intel/common/block/smbus/smbus.c:

PS4, Line 23: #include <soc/ramstage.h>
you need this for soc_pci_ops? all the IPs which use  will have to include this SOC file. Can we somehow avoid this?
Hypothetical: what if I create a SoC and I pick this IP and I don't want to have a ramstage.h


PS4, Line 95: soc_pci_ops
soc_pci_ops in both APL and SKL is only updating .set_subsystem and both of them have the same implementation.

it is very similar to the function pci_dev_set_subsystem which is in src/device/pci_device.c, can we just extend this function and use it to define a pci_ops in this same file i.e

static struct pci_operations pci_ops = {                                        
        .set_subsystem = &pci_dev_set_subsystem                                 
};


-- 
To view, visit https://review.coreboot.org/19372
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I936143a334c31937d557c6828e5876d35b133567
Gerrit-PatchSet: 4
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Aamir Bohra <aamir.bohra at intel.com>
Gerrit-Reviewer: Aamir Bohra <aamir.bohra at intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin at chromium.org>
Gerrit-Reviewer: Hannah Williams <hannah.williams at intel.com>
Gerrit-Reviewer: Paul Menzel <paulepanter at users.sourceforge.net>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi at intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik at intel.com>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-HasComments: Yes



More information about the coreboot-gerrit mailing list