• Jisheng Zhang's avatar
    net: mvneta: improve suspend/resume · 1799cdd2
    Jisheng Zhang authored
    Current suspend/resume implementation reuses the mvneta_open() and
    mvneta_close(), but it could be optimized to take only necessary
    actions during suspend/resume.
    
    One obvious problem of current implementation is: after hundreds of
    system suspend/resume cycles, the resume of mvneta could fail due to
    fragmented dma coherent memory. After this patch, the non-necessary
    memory alloc/free is optimized out.
    Signed-off-by: default avatarJisheng Zhang <Jisheng.Zhang@synaptics.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1799cdd2
mvneta.c 128 KB