From patchwork Fri Feb 23 13:54:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 10237851 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 03E08602A0 for ; Fri, 23 Feb 2018 14:07:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E607029607 for ; Fri, 23 Feb 2018 14:07:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D86BF2960C; Fri, 23 Feb 2018 14:07:16 +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 7B40529607 for ; Fri, 23 Feb 2018 14:07:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751570AbeBWOHP (ORCPT ); Fri, 23 Feb 2018 09:07:15 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35634 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751559AbeBWOHN (ORCPT ); Fri, 23 Feb 2018 09:07:13 -0500 Received: by mail-pf0-f196.google.com with SMTP id y186so2869541pfb.2; Fri, 23 Feb 2018 06:07:13 -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=60Qq06LJERVLn6IU8x2x8EnuX+JfLgf4CNM+mIWNkDM=; b=oun9w6ukQDQyjq1JlHb4Uzi/v+9Ywi1FydPSuQvDmcug4qPqpKZ+m4qgozL29LiWOk LFlvblsRA5mzK+QtzjMp5gDQgrbOPm7ZKv3AmWUAitQFnEQQkWr4S5BJ3lMzJfQzdSJx IFOcyRom+T2Bhda4NZsaZ00jECAJC6Aqi/QzSLm0mGOaVpTLLDynIZIXPT3JOi1CXc2J Cx0wNq5z0uJQb8Q1w5XQAHjIvGG3FLLE3O9vxOKSRWbDtl2gIgAfnFTzulCU6K8ZjhfE x5I3/dR1F+o5SqVr0C4htDtbdUGEqdEiy2yDokYtVCC5Maq18K77x83XzZcuwkP4pCZD zv6w== 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=60Qq06LJERVLn6IU8x2x8EnuX+JfLgf4CNM+mIWNkDM=; b=tMaEkbIOoS//jPJAF5XiCSahgZeoj0q7as3JWUFZ0yPhGiJouY731sSrN5IcsrEsw/ KhDSuzhhPshTKXfsv6+cOoIfJYI2HpRs4SnOWkXlUqkbpUdp3+3xX1r6pn1ojM3IVgia JB4gd0/6V8lwvxOweQywZRK2fBubFiF4R3dcv4GD2O0yq52Pn3/+qKdRJ2t7fLtb3q6R sXpkvB1EY1MI4MMi9+Hr1tqUwGAFVfh0ViajUDDUh12dRonfem28XUrJk3H0JWBbyVdI zw3Lm8I6kxSWW47ga5oPhL0OwQkP2cQ6o6i0S1V/7y/SOBJRfBWKspu35Ep1j83mZJwz Ou6Q== X-Gm-Message-State: APf1xPCC5ckwSs4DpQxo9YOpTsDEa69QmI9fq40Gc+NHvasPCfyBzmnm tGqzZGqxGh3gUVaPNPVzulM= X-Google-Smtp-Source: AH8x22546JXGinJesg/x05UKrFkpeUEC7WkaER8MOqzWD7Vw3lCk/9VgD1qvBIXy0LRzWLlMvlTqNA== X-Received: by 10.99.96.77 with SMTP id u74mr1557004pgb.453.1519394832785; Fri, 23 Feb 2018 06:07:12 -0800 (PST) Received: from cpu185.redpinesignals.com ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id z125sm5060476pfz.27.2018.02.23.06.07.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Feb 2018 06:07:11 -0800 (PST) From: Amitkumar Karwar To: Kalle Valo , marcel@holtmann.org Cc: linux-wireless@vger.kernel.org, Amitkumar Karwar , Siva Rebbagondla , linux-bluetooth@vger.kernel.org, Prameela Rani Garnepudi Subject: [v8 8/8] rsi: sdio changes to support BT Date: Fri, 23 Feb 2018 19:24:58 +0530 Message-Id: <1519394098-24220-9-git-send-email-amitkarwar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519394098-24220-1-git-send-email-amitkarwar@gmail.com> References: <1519394098-24220-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 169c981..6e74261 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__);