• Tejun Heo's avatar
    pccard: configure CLS on attach · 15ea76d4
    Tejun Heo authored
    For non hotplug PCI devices, the system firmware usually configures
    CLS correctly.  For pccard devices system firmware can't do it and
    Linux PCI layer doesn't do it either.  Unfortunately this leads to
    poor performance for certain devices (sata_sil).  Unless MWI, which
    requires separate configuration, is to be used, CLS doesn't affect
    correctness, so the configuration should be harmless.
    
    This patch makes pci_set_cacheline_size() always built and export it
    and make pccard call it during attach.
    
    Please note that some other PCI hotplug drivers (shpchp and pciehp)
    also configure CLS on hotplug.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Daniel Ritz <daniel.ritz@gmx.ch>
    Cc: Dominik Brodowski <linux@dominikbrodowski.net>
    Cc: Greg KH <greg@kroah.com>
    Cc: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
    Cc: Axel Birndt <towerlexa@gmx.de>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    15ea76d4
pci.c 72.7 KB