Code Monkey home page Code Monkey logo

Comments (1)

pfiser avatar pfiser commented on July 21, 2024 1

Replaying to myself :)

Here is a solution:

Author: Primoz Fiser <[email protected]>
Date:   Tue Aug 27 17:26:17 2019 +0200

    Disable caldata prefetch for SDIO bus
    
    - when enabled on iMX6 platform we get:
    
            mmc0: Timeout waiting for hardware interrupt.
    
      if we try to disable wireless interface with:
    
            ifconfig wlan0 down
    
      Afterwards, the wireless interface & SDIO bus are
      left unresponsive and cannot be easily brought back
      to operation.

diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c
index 6942cd2..81f738a 100644
--- a/drivers/net/wireless/ath/ath10k/debug.c
+++ b/drivers/net/wireless/ath/ath10k/debug.c
@@ -1255,6 +1255,9 @@ static int ath10k_debug_cal_data_fetch(struct ath10k *ar)
        if (ar->hw_params.cal_data_len == 0)
                return -EOPNOTSUPP;
 
+       if (ar->hif.bus == ATH10K_BUS_SDIO)
+               return -EINVAL;
+
        hi_addr = host_interest_item_address(HI_ITEM(hi_board_data));
 
        ret = ath10k_hif_diag_read(ar, hi_addr, &addr, sizeof(addr));

I guess disabling caldata prefetch on SDIO bus interfaces fixes the problem.

from linux-ath.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.