Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Paul Burton's avatar
    6fb49e4a
    pcnet: force ordering of descriptor accesses · 6fb49e4a
    Paul Burton authored
    
    The ordering of accesses to the rx & tx descriptors is important, yet
    the send & recv functions accessed them via regular structure accesses.
    This leaves the compiler with the opportunity to reorder those accesses
    or to hoist them outside of loops. Prevent that from happening by using
    readl & writel to access the descriptors. As a nice bonus, this removes
    the need for the driver to care about endianness.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
    6fb49e4a
    History
    pcnet: force ordering of descriptor accesses
    Paul Burton authored
    
    The ordering of accesses to the rx & tx descriptors is important, yet
    the send & recv functions accessed them via regular structure accesses.
    This leaves the compiler with the opportunity to reorder those accesses
    or to hoist them outside of loops. Prevent that from happening by using
    readl & writel to access the descriptors. As a nice bonus, this removes
    the need for the driver to care about endianness.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>