• Nathan Lynch's avatar
    [POWERPC] Remove gratuitous reads from pasemi pci config space methods · b139f1fb
    Nathan Lynch authored
    The pasemi pci configuration space write method reads the written
    location immediately after the write is performed, presumably in order
    to flush the write.  However, configuration space writes are not
    allowed to be posted, making these reads gratuitous.  Furthermore,
    this behavior potentially causes us to violate the PCI PM spec when
    changing between e.g. D0 and D3 states, because a delay of up to 10ms
    may be required before the OS accesses configuration space after the
    write which initiates the transition.
    
    Remove the unnecessary reads from pa_pxp_write_config.
    Signed-off-by: default avatarNathan Lynch <ntl@pobox.com>
    Acked-by: default avatarOlof Johansson <olof@lixom.net>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    b139f1fb
pci.c 4.1 KB