• Barry Song's avatar
    spi/bfin_spi: fix CS handling · 8221610e
    Barry Song authored
    The CS helper functions were toggling both the Flag Enable and the Flag
    Value bits, but the Flag Value bit is ignored if the corresponding Flag
    Enable bit is cleared.  So under high speed transactions, the CS sometimes
    would not toggle properly.
    
    Since it makes no sense to toggle the Flag Enable bit dynamically when we
    actually want to control the Flag Value, do this when setting up the device
    and then only handle toggling of the CS value during runtime.
    Signed-off-by: default avatarBarry Song <barry.song@analog.com>
    Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
    8221610e
spi_bfin5xx.c 43.2 KB