From patchwork Fri Dec 1 07:41:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 10086419 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 572C66037E for ; Fri, 1 Dec 2017 07:50:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4564129FAC for ; Fri, 1 Dec 2017 07:50:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39B862A040; Fri, 1 Dec 2017 07:50:12 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3206929FAC for ; Fri, 1 Dec 2017 07:50:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751694AbdLAHuJ (ORCPT ); Fri, 1 Dec 2017 02:50:09 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:44457 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbdLAHuD (ORCPT ); Fri, 1 Dec 2017 02:50:03 -0500 Received: by mail-pg0-f66.google.com with SMTP id j9so4153318pgc.11; Thu, 30 Nov 2017 23:50:03 -0800 (PST) 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; bh=NDU4FxxHxz4it6OFrSdzqoacU5amplBDF/GBSgGnCxE=; b=bqC53xh7s8Poo+T0i5oRHugcg1ULU61IPrOpKLA6H12rKvnwz8oDM8qEYGNFFXSNgu Tf37X4lf2609OWf7PQ0v4fO2TyVllgkeFcQPQPeih+GgMDilvuwA4XqmGvhtYhrZrQaq rKAUIOJQy7gM1N4ay/5+mwZgZGQW+9cAc/hhUnMiZ4DHyPi8qs5tw4bvrjekDUn5mqx9 ia8FiQjU+BrAEwbXHInxsg3F0wLvewgnPrwAL1ArEi3qFeYzeIujm3yEkQ50DdwfWvja sShD9qJVVNBAyU7Qyp36qnJM9vbEZL7VvtzUEtSCs67Qc5k1af4F55QSrhlkMg/Kr3Ot cSJw== 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; bh=NDU4FxxHxz4it6OFrSdzqoacU5amplBDF/GBSgGnCxE=; b=pi9HJ1GWPltc0utnVkxW1TCBgR2Ff9f4YFiarmS4V+k1mEkuZMSxSpQ7eVlcfFnx6D FkLIu4xQg2OwekKU6EiE0le8w8xJ95/XbeLRjdhLBhP2/0fF0Y9GZpersRn5CXbfTsvz W+gUMrOm45rRfgSPP+t8O+4s8zCB1oZQmbZLi3kdvIHbjrpjt8FXp8wYr/010FbgCpF5 xwUfgaLcrozuD191AmgayXok5UzpwFXnsUMWDsSptASExbV7J2jSwAufMFoDf+3DPK64 NqpEo+RU46EBTuHaEGsY+2ZjLZxPIq6RAL3zHiuV+LvxiqDpXVV9904M9xCXV06TtKyK wJ9Q== X-Gm-Message-State: AJaThX5S+FtL3OrbaJv7AEWGx6b2NQ8nXZMwprlT2EZS0EPhaPaNajrB snwp0TaGDL0XeVcuF5loN38= X-Google-Smtp-Source: AGs4zMZkS7CU6HZspVrD0A8q9HIU139m0RP7+ajnMmUWjAUmdllV2iO1VUEhYQLQF8H73HeuHG/9sg== X-Received: by 10.99.171.77 with SMTP id k13mr5078369pgp.229.1512114603411; Thu, 30 Nov 2017 23:50:03 -0800 (PST) Received: from cpu185.redpinesignals.com ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id v15sm11537611pfa.68.2017.11.30.23.50.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Nov 2017 23:50:02 -0800 (PST) From: Amitkumar Karwar To: Kalle Valo , marcel@holtmann.org Cc: linux-wireless@vger.kernel.org, Amitkumar Karwar , Prameela Rani Garnepudi , linux-bluetooth@vger.kernel.org Subject: [v3 8/8] rsi: sdio changes to support BT Date: Fri, 1 Dec 2017 13:11:25 +0530 Message-Id: <1512114085-2615-9-git-send-email-amitkarwar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512114085-2615-1-git-send-email-amitkarwar@gmail.com> References: <1512114085-2615-1-git-send-email-amitkarwar@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Prameela Rani Garnepudi Queue number is correctly updated for BT traffic. Also, kzalloc instead of kmalloc is used for Rx packet allocation. Signed-off-by: Prameela Rani Garnepudi Signed-off-by: Amitkumar Karwar --- drivers/net/wireless/rsi/rsi_91x_sdio.c | 2 ++ drivers/net/wireless/rsi/rsi_91x_sdio_ops.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/rsi/rsi_91x_sdio.c b/drivers/net/wireless/rsi/rsi_91x_sdio.c index 5722736..beb18d0 100644 --- a/drivers/net/wireless/rsi/rsi_91x_sdio.c +++ b/drivers/net/wireless/rsi/rsi_91x_sdio.c @@ -763,6 +763,8 @@ static int rsi_sdio_host_intf_write_pkt(struct rsi_hw *adapter, int status; queueno = ((pkt[1] >> 4) & 0xf); + if (queueno == RSI_BT_MGMT_Q || queueno == RSI_BT_DATA_Q) + queueno = RSI_BT_Q; num_blocks = len / block_size; diff --git a/drivers/net/wireless/rsi/rsi_91x_sdio_ops.c b/drivers/net/wireless/rsi/rsi_91x_sdio_ops.c index 26abe51..83652bd 100644 --- a/drivers/net/wireless/rsi/rsi_91x_sdio_ops.c +++ b/drivers/net/wireless/rsi/rsi_91x_sdio_ops.c @@ -103,7 +103,7 @@ static int rsi_process_pkt(struct rsi_common *common) rcv_pkt_len = (num_blks * 256); - common->rx_data_pkt = kmalloc(rcv_pkt_len, GFP_KERNEL); + common->rx_data_pkt = kzalloc(rcv_pkt_len, GFP_KERNEL); if (!common->rx_data_pkt) { rsi_dbg(ERR_ZONE, "%s: Failed in memory allocation\n", __func__);