Message ID | 20200511154930.190212-1-Jerome.Pouiller@silabs.com |
---|---|
Headers | show
Return-Path: <SRS0=e4DQ=6Z=vger.kernel.org=linux-wireless-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99D64C47255 for <linux-wireless@archiver.kernel.org>; Mon, 11 May 2020 15:51:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 729C4206DB for <linux-wireless@archiver.kernel.org>; Mon, 11 May 2020 15:51:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="Om6SQfVH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729877AbgEKPts (ORCPT <rfc822;linux-wireless@archiver.kernel.org>); Mon, 11 May 2020 11:49:48 -0400 Received: from mail-mw2nam12on2062.outbound.protection.outlook.com ([40.107.244.62]:10442 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726687AbgEKPtr (ORCPT <rfc822; linux-wireless@vger.kernel.org>); Mon, 11 May 2020 11:49:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TcLgH5Z/Tbykv3MLotLh7U8WwRF7mOt0/7dgH/CCStszpDhoDptLNxJVWQ6U6zmTiAyqGHmexp94co9iIHgkWnuqW0sumjoEqNlO3Dpur6gwAY/XEt4QE6TeZdLoGwc4ktIXQ1cUTimGNhMwlYKsqH4LgPhX/qp1p+KXM8MNr+QZb/jM5TmFd/4ksNu8ToYJWNuzVXp1v6k3Q/0jACax1U+O5OpVIsUccbPEgbK3vVDtm9Yb4qtBl50EyHGhNZ4EWrvKmD/NTkv5uad6t65iQ991yEpe7hFvva/7f7J0TyrrZVpeVu+fgQ1XFqUKU0U0ilvf7wVUhelF8HknuApIQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z/TB9JC+WJu9XPSdbNjc/pIfsnX0Jy3XdP7lwsqL9sk=; b=ECDpEw00IXwVIrX5uiYXJY5p3WPuINj9bE+mb+N9CmNDL0IQBZeZPxPbKmqRnEsR5SbYYS5MYChH+Rvr4HShAl1El9VIyvdT/R6jAHdOs96E82IzCYl36v5HUM7wbJsh8nQ98g+0oYxGM3fNm0kajsDEoYbhsht6DGaFsP9xns9ST6pLEma0tPE7Sa1NKtgiwgrn0UXOdx8iXb6VRaEWpEzPZGtmDoukps5nEvtdJqII/MNGDy3HvG5FiIpX37H1LGcPylqmO4mU1QY96RDBfM5VvCoeZrgAI9TMTEbUbTid1G2/MjNWeOiybuwdeqIGfXqpkRLlV6ZB407ck7tL3Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z/TB9JC+WJu9XPSdbNjc/pIfsnX0Jy3XdP7lwsqL9sk=; b=Om6SQfVHGbbJU+5ES+zSqbFGUKnJMQVDmh5ehRbY5I79MBRkHVzjy8NdHHs+a40rhw9V5pPcc9jMmBTBdahfS1seVQyOrzi5a6esDGpdImv6FiBmzdUI2jEVjNWqL4U6JHZkiTEoF7zsjey3NQ3UnDDd9YZ/YOd6PwJD3gweoFU= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) by MWHPR11MB1968.namprd11.prod.outlook.com (2603:10b6:300:113::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.26; Mon, 11 May 2020 15:49:45 +0000 Received: from MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::e055:3e6d:ff4:56da]) by MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::e055:3e6d:ff4:56da%5]) with mapi id 15.20.2979.033; Mon, 11 May 2020 15:49:44 +0000 From: Jerome Pouiller <Jerome.Pouiller@silabs.com> To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Kalle Valo <kvalo@codeaurora.org>, "David S . Miller" <davem@davemloft.net>, =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= <jerome.pouiller@silabs.com> Subject: [PATCH 00/17] staging: wfx: fix support for big-endian hosts Date: Mon, 11 May 2020 17:49:13 +0200 Message-Id: <20200511154930.190212-1-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.26.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-ClientProxiedBy: SN6PR2101CA0026.namprd21.prod.outlook.com (2603:10b6:805:106::36) To MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.silabs.com (82.67.86.106) by SN6PR2101CA0026.namprd21.prod.outlook.com (2603:10b6:805:106::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.2 via Frontend Transport; Mon, 11 May 2020 15:49:42 +0000 X-Mailer: git-send-email 2.26.2 X-Originating-IP: [82.67.86.106] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 188d453f-ba90-4f70-0af4-08d7f5c2ecd3 X-MS-TrafficTypeDiagnostic: MWHPR11MB1968: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <MWHPR11MB196870469C3EA8481038921193A10@MWHPR11MB1968.namprd11.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-Forefront-PRVS: 04004D94E2 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TI7mMsl8/OL4r7UdyA169y9aRTtzsH3Xx6FWCHwDC3477FqrDLmXDbXs1WS8DJw1KkSnSjBpv+ICpWPQC8z8TKVHN8ufNP9pqvoFKQ4pXUBamVj6EYnmFqcKP7kz6IFgWhajMqlL4oQtbgbz0vg2nnZxrLkafm/2jJMi3fDaVVJJPUHIHhyhxKfIXjStOG64P6wBwF+LmkDSR+R8p9U0sXfswI3u2hnf8Amh+5K/k5Lc0+y3Aon+zP2UHiGKTu04+MjoKS2M5KDOHjpK6kOalafamonZaJIryWr63BDJphDZfrbTRK59rlBXz0NpI8M8BuudWlV5u19NizRPw1Fw/8XcEEay/0b2kArI/h92p4+WpbCigP/pJBr5wnz6AOzvXmdx1ognbIGyLt4IEqZkaoOC6yVEdK3zbpcaMsPcAXjkN/D0Qsokj56dOXoocxLiP+PnJzmW3OEDJvDKToqQ2+2XiuegenmYJk1QhDmJnPnbxIfZTNd25ufHOvwdTjEawlJJq1/GxfFwWShJl7/KTCagu+QR1cx9Lok00d11ZZPpgGA67Pxvw/6SoXAN4PTUUnTPsS448MrZhGwWuIOn4XY/TFjzb1W9QDR8uokPuCY= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1775.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(39850400004)(346002)(136003)(396003)(376002)(366004)(33430700001)(186003)(52116002)(86362001)(316002)(5660300002)(7696005)(6486002)(33440700001)(478600001)(54906003)(6666004)(4326008)(107886003)(66574014)(36756003)(16526019)(26005)(8936002)(956004)(2616005)(8676002)(1076003)(66476007)(66946007)(966005)(66556008)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Hx1lVDi/EGwhqr0snJER/ZH9+KOJoP6GkWAXVGjPF5DRa5Dxd8p1oGFKV72DsEi0RGBmue9k/U8nx821DzWx+SRjW6EHWS/gf4QvUkd8jwftLArVw1522to7BH72KLj1QonpLlkaphQowFivABHmqKP2thwC/EFS6LsnLlbccbquzKWkrPN3GDX7HppR0CgT1/nRtSi2xFVa6YLn4HeCc5Ok9UG5+O8/AtF1/Z5oPRY0tBjVwflZ4ZN5GmY5iWaMrVzzNf3YLY8ZI2msGQDNOPBBjXVVok9DsvwvEz38liH8N0dX6BNsdeIBp+v3/zLdYb8PT+16kMOOv0XYB/bekpD9ZlsSb8eblmgvEVOfo5kWr9L6EGDEUK5PQx+X6voXPHTlLuzYT4wr872mf28qfrmzHGwwvCEDae9NWPkNFnNUg4bj2mc/Yk0Kxq6DyOguqHqJ8I6BHukCqJllluci8CDWsD3W1lAcloZ5yTBC3vI= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 188d453f-ba90-4f70-0af4-08d7f5c2ecd3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2020 15:49:44.5267 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ju1YfG5D0bYDFS0Hu5wRhScJIlv+S/bkhfk8PIEw+Tsib6hDrChprH/gh5FZcA3o+E/0ujNMQOatewyKOBzOeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1968 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org |
Series |
staging: wfx: fix support for big-endian hosts
|
expand
|
From: Jérôme Pouiller <jerome.pouiller@silabs.com> Hello, As already discussed here[1], this series improves support for big endian hosts. All warnings raised by sparse are now fixed. Note, this series aims to be applied on top of PR named "staging: wfx: fix Out-Of-Band IRQ" [1] https://lore.kernel.org/lkml/20191111202852.GX26530@ZenIV.linux.org.uk Jérôme Pouiller (17): staging: wfx: fix use of cpu_to_le32 instead of le32_to_cpu staging: wfx: take advantage of le32_to_cpup() staging: wfx: fix cast operator staging: wfx: fix wrong bytes order staging: wfx: fix output of rx_stats on big endian hosts staging: wfx: fix endianness of fields media_delay and tx_queue_delay staging: wfx: fix endianness of hif_req_read_mib fields staging: wfx: fix access to le32 attribute 'ps_mode_error' staging: wfx: fix access to le32 attribute 'event_id' staging: wfx: fix access to le32 attribute 'indication_type' staging: wfx: declare the field 'packet_id' with native byte order staging: wfx: fix endianness of the struct hif_ind_startup staging: wfx: fix endianness of the field 'len' staging: wfx: fix endianness of the field 'status' staging: wfx: fix endianness of the field 'num_tx_confs' staging: wfx: fix endianness of the field 'channel_number' staging: wfx: update TODO drivers/staging/wfx/TODO | 19 --------- drivers/staging/wfx/bh.c | 11 +++--- drivers/staging/wfx/data_rx.c | 4 +- drivers/staging/wfx/data_tx.c | 9 +++-- drivers/staging/wfx/debug.c | 11 ++++-- drivers/staging/wfx/hif_api_cmd.h | 42 +++++++++----------- drivers/staging/wfx/hif_api_general.h | 55 +++++++++++++++++---------- drivers/staging/wfx/hif_rx.c | 32 ++++++++-------- drivers/staging/wfx/hif_tx.c | 20 +++++----- drivers/staging/wfx/hif_tx_mib.c | 2 +- drivers/staging/wfx/hwio.c | 2 +- drivers/staging/wfx/main.c | 2 +- drivers/staging/wfx/traces.h | 8 ++-- 13 files changed, 105 insertions(+), 112 deletions(-)