Skip to content
  • Marek Vasut's avatar
    mmc: renesas-sdhi: Do not access SCC during tuning in send_cmd callback · b7863063
    Marek Vasut authored and Jaehoon Chung's avatar Jaehoon Chung committed
    Do not access SCC when sending commands during tuning operation as that
    will disrupt the tuning operation. The tuning operation is adjusting the
    SCC settings itself in execute_tuning callback.
    
    When renesas_sdhi_execute_tuning() is called by the MMC core code, a loop
    which consists of renesas_sdhi_prepare_tuning(), mmc_send_tuning() and
    renesas_sdhi_compare_scc_data() iterates over each SCC tuning tap.
    
    The renesas_sdhi_prepare_tuning() configures the SCC tuning tap number into
    hardware, mmc_send_tuning() triggers transfer of tuning block which depends
    on the bus mode for which the bus is currently being tuned, this information
    is supplied by the MMC core code, and finally renesas_sdhi_compare_scc_data()
    tests the received tuning block for validity.
    
    Because renesas_sdhi_prepare_tuning() configures the SCC tuning tap into
    the hardware to fit the tuning operation, mmc_send_tuning() which triggers
    command transfer using renesas_sdhi_sen...
    b7863063