From patchwork Wed Dec 6 09:56:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 10095175 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 F02A860327 for ; Wed, 6 Dec 2017 10:05:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF4E428749 for ; Wed, 6 Dec 2017 10:05:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4154287BB; Wed, 6 Dec 2017 10:05:37 +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 7CEFE28749 for ; Wed, 6 Dec 2017 10:05:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754847AbdLFKFg (ORCPT ); Wed, 6 Dec 2017 05:05:36 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34027 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754395AbdLFKFa (ORCPT ); Wed, 6 Dec 2017 05:05:30 -0500 Received: by mail-pf0-f195.google.com with SMTP id a90so2064365pfk.1; Wed, 06 Dec 2017 02:05:30 -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=NoI418Rc/PU0o9PRMuM+JN2EJkZv2rfA5WUQ68xBxP5lUwuufuVJWYVfJygJxBqcCU PucrsmcH+V/N8xH+SxxmogcnDytSkEQZzLt9/cx5Ou68GJmv5j8OornepUuaEuT/YZk+ TW1TQ3/8UGMhPTF+rFyZr/9W82B2Pfv1l5G95OsnlAK+QmXr5pnPJ4cTJGhK8aT4T7Y6 CyadrGfiL1pEcGnjTUIhV7NKXugNpgZD/1dtEV+V5mh1FAmgn6VYXuXoF384Jp98s0d3 HV/iELuMEloE5uYtStPjE30LgaAiq5ZuWImgiDLOfwJFyMDWtvbk8O7eomnCtynDhP0C Vuqw== 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=Bl2phAF2HAGzyE/UcxqY46lARW8biUwffnF1ObiBcEXVsKIPfYrqK16eIs9+uj3H78 0KaKNj8/HTbKyajUHzb173fA9tJN+d+/8dV4j3K77ukvfY9ANJOnYC+mRJ99nxjWXQ5a iKmWoFwO3YbkJjPKzei8S8DifMjud8ZR4gaidyjGZ7wnoRTNPBuGTIzKniarfPIxfjJs ZgX5GWZQzQn5Iih/WoNRMzo9dlxR/UrrMXLBNnpbsi2jfu3RXRWGt7VqLihhW+n49yGH h6EFBy2OV9yz3I3kZwO9BXr0eOiF0RxXsa1zD9OZA9dWz578YbiSgfvOtUNJzYm/zK2h 1r3A== X-Gm-Message-State: AKGB3mL3Kkg26kvQ1k0kr/H03hZMs1mLkxbglQjAXdS9sxTvUw5IGpQX Rt3sOjWN1FYMlbbbrDQLJls= X-Google-Smtp-Source: AGs4zMatxVGbk5y2hgDvq9c42G6SjzL4jy/25hg1bMf//oTUrJM6//Di8X/1Imj5h2LrcX6U3UUURQ== X-Received: by 10.98.102.219 with SMTP id s88mr2236708pfj.191.1512554729950; Wed, 06 Dec 2017 02:05:29 -0800 (PST) Received: from cpu185.redpinesignals.com ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id d9sm4872675pfk.117.2017.12.06.02.05.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Dec 2017 02:05:29 -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: [v4 8/8] rsi: sdio changes to support BT Date: Wed, 6 Dec 2017 15:26:37 +0530 Message-Id: <1512554197-19664-9-git-send-email-amitkarwar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512554197-19664-1-git-send-email-amitkarwar@gmail.com> References: <1512554197-19664-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__);