22 Aug, 2013

1 commit


17 Apr, 2013

4 commits

  • If a pci load instruction fails the content of the register where the
    data is stored is possibly unchanged. Fix the inline assembly wrapper
    __pcilg to not return stale data. Additionally fix the callers of this
    function who access uninitialized variables.

    Reviewed-by: Gerald Schaefer
    Signed-off-by: Sebastian Ott
    Signed-off-by: Martin Schwidefsky

    Sebastian Ott
     
  • Don't let pci_load and friends crash the kernel when called with
    e.g. an invalid offset. Return -ENXIO instead.

    Reviewed-by: Gerald Schaefer
    Signed-off-by: Sebastian Ott
    Signed-off-by: Martin Schwidefsky

    Sebastian Ott
     
  • Use distinct (and hopefully sane) names for the pci instruction
    wrappers.

    Reviewed-by: Gerald Schaefer
    Signed-off-by: Sebastian Ott
    Signed-off-by: Martin Schwidefsky

    Sebastian Ott
     
  • Uninline pci related instruction wrappers to de-bloat the code:
    add/remove: 15/0 grow/shrink: 2/24 up/down: 1326/-12628 (-11302)

    This is especially useful for the inlined pci read and write functions
    which are used all over the kernel. Also remove the unused __stpcifc
    while at it.

    Reviewed-by: Gerald Schaefer
    Signed-off-by: Sebastian Ott
    Signed-off-by: Martin Schwidefsky

    Sebastian Ott