From patchwork Wed Apr 17 19:14:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10906007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 75D7A17E6 for ; Wed, 17 Apr 2019 19:15:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BE4628B9C for ; Wed, 17 Apr 2019 19:15:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B5DE28B9B; Wed, 17 Apr 2019 19:15:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E7A1728A93 for ; Wed, 17 Apr 2019 19:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=80oTEDb+zX+dHaG82KwTu2w+q882dskHBG4knE3HwIs=; b=cS4y4cgFIUSsIn ehaQa9E5d0L6FX+NEq5jxd+jSIGcp1dTbrg07BYJ7NgiHdO1q7FYch3xZ4lywdjVGfpASUKojDj0m VVKdITaApg67GpfLDi3SK54dn8eTMWryWHZj76n/ca0pjFIHBRZz8QSMu+WZDh0OTQMYOSbRsUof4 vS+nzpAsFE/nKArH47ZUV59JZLezmapwDi90bJhN80Bt6enzmMa5eshii+UzPyRB8nLAliqNVYz7u 8PFcGw8Vlu4jYPaIYJtQegNgvmdRvI+LGdalJ0ygY3FFoL2uHXAoXeNxXc+1vvzg910jB2ALTF9Zm RuLOAHCnpn4DQPWRi+0w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGq1s-0007Hn-Nl; Wed, 17 Apr 2019 19:15:32 +0000 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGq1o-0007F8-OI for ath10k@lists.infradead.org; Wed, 17 Apr 2019 19:15:29 +0000 Received: by mail-lf1-x141.google.com with SMTP id w23so19690890lfc.9 for ; Wed, 17 Apr 2019 12:15:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3PWgHfylOd7/V9eOJa0wx2I7Oy4kUSx7mENXgzd+VbU=; b=HWRLc+yFxQlwK+CEpkR3LXV53WlERIeIrLrw6DA1BhigJdzDhKLIZYviSHMFWtY6SP Q+m4Cwiz1oomdi0Fj44wYrhEj7CTdyjZ8fXYrY3LS3qOSJUvdAtJC4fCnt9mui8AImXI HkLdSM8uodtiPd5EYgbpwF5Jxzrmfk00BkACG0mkfmGn0fJ20Ielr9F7d8NNsCGLlg1S orTceo4QNfPLJsT2AlqhmuYfuHvtS2w+PLEGDcroXvR44oa9vS4L+41wSLlz7qwmgvIw KKFGyy7PNw+950VlcGz0c7XWzZoQHej4kU7t+uPnb3dvSeWhf2PxO5+8IzpL8RPH15Mm TZqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3PWgHfylOd7/V9eOJa0wx2I7Oy4kUSx7mENXgzd+VbU=; b=jJROEn+nvdl/V3kRimKQ6rBGSB7Kbew7x56fvxj5CPvEYjJ2aEcEW5Ny0+BZFvpljw Jkp6eNZr2aQekWs2Lmxpq55RBZnmC2ZXQsnH9PWSnR0NJfov8q8mBvno3328MzVuSXhb PYSZCfD32uPvHbnaul79IHAxK39XQkHsCoqP045DTtbrlHdjdmnNcXz65GECnx4cAPO8 CAxUHZc+BysQbOyWX+cz2okqSDJT5wfNuCWYZ/QK/Iq2FA7UtDseX7JaoIdw+XMWHUhk CdOVWvNqCKEYxhRkLjWq4N1qKDh5+ZmpRzKf5VMIfA+5536Y4iiszBRvuy5Jyc2goCSH TGTA== X-Gm-Message-State: APjAAAWXz25/c9E2wq/pFgg+c4tET1yDo+r0tqqP+ZCA+UMrzGyWN6Dz S8hFNQ11ySV3X0Og7WulEV0= X-Google-Smtp-Source: APXvYqxEDdzjflNKkq3brx8QJS5ylSinjqXQiW3VUQW54xKF9eDMUBpmMvxA2PGQX/+JX6kZ5JUsGA== X-Received: by 2002:ac2:5495:: with SMTP id t21mr12020513lfk.3.1555528526847; Wed, 17 Apr 2019 12:15:26 -0700 (PDT) Received: from localhost.localdomain (81-233-89-221-no75.tbcn.telia.com. [81.233.89.221]) by smtp.gmail.com with ESMTPSA id j27sm11387203lfk.97.2019.04.17.12.15.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 12:15:26 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [PATCH v2 1/5] ath10k: add initialization of HTC header Date: Wed, 17 Apr 2019 21:14:59 +0200 Message-Id: <20190417191503.18814-2-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190417191503.18814-1-erik.stromdahl@gmail.com> References: <20190417191503.18814-1-erik.stromdahl@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190417_121528_786950_CE016509 X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Stromdahl , Alagu Sankar Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Alagu Sankar HTC header carries junk values that may be interpreted by the firmware differently. Enable credit update only if flow control is enabled for the corresponding endpoint. Signed-off-by: Alagu Sankar Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/htc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c index 805a7f8a04f2..1d4d1a1992fe 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c @@ -73,6 +73,7 @@ static void ath10k_htc_prepare_tx_skb(struct ath10k_htc_ep *ep, struct ath10k_htc_hdr *hdr; hdr = (struct ath10k_htc_hdr *)skb->data; + memset(hdr, 0, sizeof(struct ath10k_htc_hdr)); hdr->eid = ep->eid; hdr->len = __cpu_to_le16(skb->len - sizeof(*hdr));