From patchwork Mon Feb 19 13:19:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 10227853 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 E266F60392 for ; Mon, 19 Feb 2018 13:31:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD65C28709 for ; Mon, 19 Feb 2018 13:31:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C078B287D0; Mon, 19 Feb 2018 13:31:38 +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 5923A28709 for ; Mon, 19 Feb 2018 13:31:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752925AbeBSNbg (ORCPT ); Mon, 19 Feb 2018 08:31:36 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:45673 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752901AbeBSNbd (ORCPT ); Mon, 19 Feb 2018 08:31:33 -0500 Received: by mail-pf0-f195.google.com with SMTP id j24so1193791pff.12; Mon, 19 Feb 2018 05:31:33 -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=M7yntkhQDEqmq6HgcFPjR2bQ80YgtnvRqqpWQaG7ZXZ69Bn6WUSG0JbqnM+qtgbFUZ Lx5qori1wU6CORX0KnnCdnNtjw9dGILxvi6w92al8tkoMIgmnJyJYTCOPIB23VMN5qR3 177dQxIc34qey4uk29MU8h94JHwX+lrNSY7QUQh/MFmeXJ9E2rf2iqO34QM4/VujrjLS uqF18WrHPRWPFINmStUlYrY+v7y022UdV89jErL6D4Z5SfIvc6S+LVxeyU/NVhoXIiJa fA3DguJo7IaApeFwaP58YD/kWOrPM3T37aHZBqxcHzhlYwpoxbaUDOriyb1y2233HKsG aofA== 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=Occ6xAp4f9tM6S0fHzKfQ4rPdXLeFsJQD+khaFZlU9+T6IKBShrhpFDlC/cFTqDZCY 2pbrmsgW5Gld4M4L3XCJgTvWVjd0sZLMIU52YtlqrNqqDXqKl3VkKa2qumw2Jbs8fS3f 0nJ+dKx9JPThOStVoSD+GSETn0MN9m4jfZu8+4CTYHTp+RCPLCAXAqQopAB59RWk6oGt 2tT7B/SIykt1LMCH5getFx5LGvl3gMxbr7/9R7ed+WxtVgSE7XrFkSdIWyHGTWMVWPTr S+fh5trMgAaldbgzvpO1Y6gIofrjj7FTtZN4HsTez5x+4w+Kj5tPSw7BSBROcg4aqShx QDhA== X-Gm-Message-State: APf1xPCqJiBUOTsqi5bHmC3ROt0l0gSTU3yM6MPooaxe3kMVHBMc+eHk V9VDEmZwvdVlMZDwdas/dUA= X-Google-Smtp-Source: AH8x227j4XgYzMFMhNzP2kzZnpvGJ7Qtk6KOSjewjLdu/UEMW37nX1/XOjfXeFWT3L6fniTjiWdWGg== X-Received: by 10.98.141.208 with SMTP id p77mr14536086pfk.5.1519047093391; Mon, 19 Feb 2018 05:31:33 -0800 (PST) Received: from cpu185.redpinesignals.com ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id m24sm32584982pgv.14.2018.02.19.05.31.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Feb 2018 05:31:32 -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: [v7 8/8] rsi: sdio changes to support BT Date: Mon, 19 Feb 2018 18:49:39 +0530 Message-Id: <1519046379-10068-9-git-send-email-amitkarwar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519046379-10068-1-git-send-email-amitkarwar@gmail.com> References: <1519046379-10068-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__);