From patchwork Wed Nov 15 07:20:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 10058903 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 AF085601D3 for ; Wed, 15 Nov 2017 07:28:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0F5F29DBE for ; Wed, 15 Nov 2017 07:28:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95AF229DCF; Wed, 15 Nov 2017 07:28:58 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 4CFB929DBE for ; Wed, 15 Nov 2017 07:28:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755254AbdKOH2z (ORCPT ); Wed, 15 Nov 2017 02:28:55 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:56960 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755207AbdKOH2w (ORCPT ); Wed, 15 Nov 2017 02:28:52 -0500 Received: by mail-pf0-f196.google.com with SMTP id q4so8276452pfg.13; Tue, 14 Nov 2017 23:28:52 -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=mfW8qUthLBBaP2go7Ms9fpu/wzpUX9FmRGIGgET4QnOlliymgyJhzp6Gj0qlJVb3w3 QiA6Ptuhy08ZtYMoqKhFajTy2+IqSk4d3yI6H+8GxaVT2Eu7+bjkXOaeCNrrDHtCxMQT 6PAMCBpsU+NKx7biE1wDwrwl4N+AXtfCFZtOK2XmYTvYu66ozKgOW5p0Z6w+krMeCpAg PmFBsxYuKYuXWLVC/2AmR2YF6SBAq8EPiX4Z+L3xz/Owsmzdb4V8g/tQXaINzScVxr7h h0FixFDXoajzgVsOgMGYfEph5stj4HkTwCwk2B3s52YRAaf034yCS+yY5qP8p69JFdoS ZvUA== 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=lksfXGiziDO83BST+eelcaLDHFRXJldB4f+PcKnyKc+3OD3T8a33qHRbG7/EBvM1pq /QZ7EZH6VLttH4u9lsc2usbjqehsJufcDjyyaCKPfLV1E5321dbddv2Eg1HTCxG0iYlK AMuiV/jLpNXXEFvKhMtl/hPV/GdpodIC58atQV/F9nWG10SkRklfIDRTc46x1AT27zTh 2miH11LJ4AIZswJfPZHPmsN3egM5LWAhkiCJO7eiY3W2QhWNp8qsGnnKNV4vb8ttifSj YIbaTdZok/E4ejoV7Cjm3gZvPxlBLD/F6YWNGNkhOs4HwjYQFm7NYIVsIDOtc6pFvMaA SDag== X-Gm-Message-State: AJaThX48ty+tf4AXm8D5MJppm80F/GtPzrBByNDgOeAgRE6Lr7v4UEJa A/oCtSfLkIZl3RilFxtHVbSNuw== X-Google-Smtp-Source: AGs4zMbYiAhobYAt9TagQcXxBwzBiq2pGAPGbq6+319f8mFg5hCDBISyABiy+CqQq5nRBK7uJ1SrZg== X-Received: by 10.98.194.16 with SMTP id l16mr16474507pfg.139.1510730931616; Tue, 14 Nov 2017 23:28:51 -0800 (PST) Received: from cpu185.redpinesignals.com ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id y5sm14975850pfa.128.2017.11.14.23.28.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Nov 2017 23:28:51 -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: [PATCH 8/8] rsi: sdio changes to support BT Date: Wed, 15 Nov 2017 12:50:44 +0530 Message-Id: <1510730444-3237-9-git-send-email-amitkarwar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510730444-3237-1-git-send-email-amitkarwar@gmail.com> References: <1510730444-3237-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__);