Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp281620ybl; Tue, 7 Jan 2020 19:20:37 -0800 (PST) X-Google-Smtp-Source: APXvYqzExCFtptFBZnHRCY7oK9SLM+rWU5nFHkLMSBYcshGwGPNXrQKFKZgI0oRX35PZRrw+eGMm X-Received: by 2002:aca:fcd0:: with SMTP id a199mr1351701oii.143.1578453637771; Tue, 07 Jan 2020 19:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578453637; cv=none; d=google.com; s=arc-20160816; b=BMf4oqQ9gxdcTEtSvCsSTnT/YPKc24BP3oJZaJ+KWjp3iJ33LimpjMGuXUKmv0Oy1o DaaDuEQJxF/cAqQxsfPu1SnMGY1gNgj4qwzw4z/uZ+WGXOkFa3cgysXEAVLmAcw/Exys inwRCAFLKSSwpx+wb4pESMxs2aUPA4LY+4dZtvxRBFTySgSWzciEFSc25PCUmipz/fru Cg2hEw8dclPjONREuMB333HQpiF/UfolUiL/osIPqMhsQgFlqRT5Exl+0DweMXeMfN1c q9tzZkUODXEK/j+DqRy+mwdLrBBviVfDJZgbhSvf4H4y1flJFMimqdcsHtwZbGCvqTwN IYSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature; bh=F7JyZ/oMEmFgVBHR7Mu5PKIJmLDZQX7TveUow6wRTL4=; b=lvONi0vdRPq4PODZY1WtmOW3cG46TApcwBe3QUTe8meqjYKGgfAKRi74zodEa88Dcp AJxjL84Bp+X56f7JghMoxFakA8oDMRyFWCX2cDL1IjRkfDZJLAkW1IfLYocwX30vAc9m 1qn8FFo5Adw2E5hWndsRW3ysuk0C44D8W/CnQfMtz5upC3ebgiAuy8zBsikXdNDgnyxC hj7XqQmUZKXIlk/+arS8fMWL6LjV3EKjO6fPyYyWhGwg3lI2PBA43nbp0C4tBjBAlx7c ZJzoaZg/J0IEVo2krPrkHRpCWv8dO7kugehmbZyDX1WOuk6mAkQHIWPhmUDd7j0P3ya2 10rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=VCRJ7Agy; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i140si1154067oib.90.2020.01.07.19.20.13; Tue, 07 Jan 2020 19:20:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=VCRJ7Agy; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726180AbgAHDUK (ORCPT + 99 others); Tue, 7 Jan 2020 22:20:10 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:25850 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgAHDUK (ORCPT ); Tue, 7 Jan 2020 22:20:10 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1578453609; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=F7JyZ/oMEmFgVBHR7Mu5PKIJmLDZQX7TveUow6wRTL4=; b=VCRJ7Agy7+SpJnDoizu4KAyx/gvjvAr9kZxZkBqJU8EFWNfZfpwOpeQVBMk/IPyHo0Do8g24 Jo+7aTpRgpeJ6up6YCqK/jkIbknDJTZeJihWA2tsX3ie+6lz4ifbBP6rsGl5IJnRQ7ufSPyX jM5i2Na+DeS9qEfgcUhZLG2whNU= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e154a69.7faf27d8b500-smtp-out-n01; Wed, 08 Jan 2020 03:20:09 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0D734C433A2; Wed, 8 Jan 2020 03:20:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from wgong-HP-Z240-SFF-Workstation.qca.qualcomm.com (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id CA437C433CB; Wed, 8 Jan 2020 03:20:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CA437C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=wgong@codeaurora.org From: Wen Gong To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Subject: [PATCH v4 0/2] start recovery process when payload length overflow for sdio Date: Wed, 8 Jan 2020 11:19:55 +0800 Message-Id: <20200108031957.22308-1-wgong@codeaurora.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org when it happened payload length exceeds max htc length, start recovery process v4: add atomic_dec(&ar->restart_count) if state is not on v3: change atomic_inc_and_test to atomic_add_return, remove check of ATH10K_STATE_ON v2: add "add refcount for ath10k_core_restart" and remove ar_sdio->can_recovery Wen Gong (2): ath10k: add refcount for ath10k_core_restart ath10k: start recovery process when payload length exceeds max htc length for sdio drivers/net/wireless/ath/ath10k/core.c | 13 +++++++++++++ drivers/net/wireless/ath/ath10k/core.h | 2 ++ drivers/net/wireless/ath/ath10k/mac.c | 1 + drivers/net/wireless/ath/ath10k/sdio.c | 4 ++++ 4 files changed, 20 insertions(+) -- 2.23.0