From patchwork Mon Nov 19 18:01:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priit Laes X-Patchwork-Id: 10689237 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 89F155A4 for ; Mon, 19 Nov 2018 18:01:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B6F92A1C8 for ; Mon, 19 Nov 2018 18:01:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7018C2A30A; Mon, 19 Nov 2018 18:01:44 +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.9 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,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 C1E6E2A28F for ; Mon, 19 Nov 2018 18:01:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732078AbeKTE0R (ORCPT ); Mon, 19 Nov 2018 23:26:17 -0500 Received: from plaes.org ([188.166.43.21]:48022 "EHLO plaes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730227AbeKTE0Q (ORCPT ); Mon, 19 Nov 2018 23:26:16 -0500 Received: from localhost (85.253.196.132.cable.starman.ee [85.253.196.132]) by plaes.org (Postfix) with ESMTPSA id 75F09402DF; Mon, 19 Nov 2018 18:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=plaes.org; s=mail; t=1542650500; bh=DToJFfvuHspWhT6jKx116NmVcimEg+O3gNE3CqYN8jE=; h=From:To:Subject:Date:From; b=MJ2ajqm6825rKDDxbsINnCmiMYdUC/BTwdVqJTehiF68tSXl/ECg52J6GolthInFn 0s4ZCeRnH8yg05J2/CiHVcyMKxgucejBvEZFuyuI/sv7Eov6XV9b7Uvm1mmBgeGk3L /5LnKR8DreuDChFlsOqpS65zdvh8SaWoZ/lNxYZCUHxprZlPyDdt6ZIKwYNmsIfwiW I95J6k6G6vIRWNmkSgCd31055jTdHYRJ6oMO91FDz1oN/Qk5O0S0NrPp7pF2hIK+ay 9M5PSPSXVTQ4dcZtiYrhcIbPWU6aFIluL4lEc8YepuKqrbdIZD8qiu70TJRpNAYGfW +SpSJUku04AyQ== From: Priit Laes To: Larry Finger , Priit Laes , Jia-Ju Bai , Kalle Valo , Kees Cook , "Gustavo A. R. Silva" , Colin Ian King , Arend van Spriel , Varsha Rao , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org Subject: [PATCH 0/4] wireless: Use common cordic algorithm for b43 driver Date: Mon, 19 Nov 2018 20:01:21 +0200 Message-Id: X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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 b43 wireless driver includes an internal implementation of cordic algorithm, although there's a common cordic library which was split out from brcmsmac driver. Use that and drop internal implementation. During the process, cordic-algorithm related macros in brcmfmac driver were also removed and use general macros. Please note that this series is only compile-tested, as I do not have access to the hardware. --- Changes since v3: - Added ACKed-By bits for patches 1, 4 - Added new patch for stable by Larry as patch 3 - Fixed argument scaling for b43 driver in patch 4 Changes since v2: - Improvements to commit messages. No functional changes. - Collect reviewed-by bits. Changes since v1: - Merged brcmsmac driver patches into single patch - Merged b43 driver patches into single patch Larry Finger (1): b43: Fix error in cordic routine Priit Laes (3): lib: cordic: Move cordic macros and defines to header file brcmsmac: Use cordic-related macros from common cordic library b43: Use cordic algorithm from kernel library drivers/net/wireless/broadcom/b43/Kconfig | 1 +- drivers/net/wireless/broadcom/b43/phy_common.c | 47 +------- drivers/net/wireless/broadcom/b43/phy_common.h | 9 +- drivers/net/wireless/broadcom/b43/phy_lp.c | 13 +- drivers/net/wireless/broadcom/b43/phy_n.c | 13 +- drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h | 7 +- drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c | 4 +- drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c | 4 +- include/linux/cordic.h | 9 +- lib/cordic.c | 23 +--- 10 files changed, 35 insertions(+), 95 deletions(-) base-commit: 9ff01193a20d391e8dbce4403dd5ef87c7eaaca6