From patchwork Mon Apr 27 13:40:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 220499 Return-Path: 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=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham 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 D41BCC54FD0 for ; Mon, 27 Apr 2020 13:41:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ACD7F206BF for ; Mon, 27 Apr 2020 13:41:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="OE+laAYx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728105AbgD0Nl2 (ORCPT ); Mon, 27 Apr 2020 09:41:28 -0400 Received: from mail-mw2nam12on2070.outbound.protection.outlook.com ([40.107.244.70]:26405 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728057AbgD0NlT (ORCPT ); Mon, 27 Apr 2020 09:41:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h6f/IKkPNzsyGecOBcTPPdkIrzojNwDUHIs8GeT8e16DaNZPf/+io4dxKnm2V18pWL0Ig4Wi6v6rAWZAYYLcQEFrME6DR7PdjhQK1g91KnJ4PO9wFqD/ValZYuA2cwhXLapo6rnEC/S3ms5vUyFsZsV1bZdrkt8alb/SvIB8T7B8n3UXNkYrhNsneQsMcIpdKO5RJYk0vAqD5HeESFoEa6fRVUo0ZcJCNB9Sbxr/yRCzhUyDu1vd6mRZiEcuNk0I9rpjycZcKhYNeKfwZnZ58GUTt6KMNKjO+2enO+XPipAeyHPSnUuO5CXSxKJVu1Q8iHCTtv5+9PdkLpnWWtSlkQ== 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=Ls12IveF/ET4mH1NJA5R84/E6bI4tj6ugofbKWmst6g=; b=FjXz46DJeLygf39RSuVhJBJPJ7i9XLnRZVGZjGYWGuIEO/kB7rpac5GguX0TGmB3l7SIj4CFunsKdtOLIDrKeTvaS5SNME+TDPniUXfciXeZSwB+3VxVwjQsINu596hJMKgbH1FVYJ0Xie0j0UASzMi+BeVXuEG3JzP/BSEDphDuiOC3OPsspQMbxUIZkaB+9aPs2pFBbW3wnlc2jQ8SxAUFblis/FD6qr3/lZ8RFVDloAHxiuA31yH3qbLZ1sew2wyxPPVj2C2onp/PszInYhgXUGNn/Way2NOgWeo6Q2jv6/mipRgQ/ch250g3m+Uht/5F3fjFV5/hTuG3PUr3bg== 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=Ls12IveF/ET4mH1NJA5R84/E6bI4tj6ugofbKWmst6g=; b=OE+laAYx1zVoeLwpuTaFG+TJjgyHLDKHHyFaATSrnnAc6SJSGIFTF4sem2CS5NAaPa0azR8ubvEItTzaElCqWXMw2O4kPIJesx+EmeVBA3zjKnDZjbilhTfBjBQh2MSGxMypS50mECU+g5MOUU4jn9Gp1ugysN/t0E0jXVW00cw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerome.Pouiller@silabs.com; Received: from MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) by MWHPR11MB1424.namprd11.prod.outlook.com (2603:10b6:300:26::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Mon, 27 Apr 2020 13:41:17 +0000 Received: from MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe]) by MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe%10]) with mapi id 15.20.2937.023; Mon, 27 Apr 2020 13:41:17 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 07/17] staging: wfx: add an explicit warning when chip detect too high temperature Date: Mon, 27 Apr 2020 15:40:21 +0200 Message-Id: <20200427134031.323403-8-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200427134031.323403-1-Jerome.Pouiller@silabs.com> References: <20200427134031.323403-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR0P264CA0232.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::28) To MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.home (2a01:e35:2435:66a0:544b:f17b:7ae8:fb7) by PR0P264CA0232.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Mon, 27 Apr 2020 13:41:14 +0000 X-Mailer: git-send-email 2.26.1 X-Originating-IP: [2a01:e35:2435:66a0:544b:f17b:7ae8:fb7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8d7b5a36-3022-45e8-2c9b-08d7eab0a934 X-MS-TrafficTypeDiagnostic: MWHPR11MB1424: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1417; X-Forefront-PRVS: 0386B406AA 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:(136003)(39850400004)(376002)(346002)(396003)(366004)(8886007)(66476007)(66556008)(4326008)(81156014)(86362001)(8936002)(6486002)(52116002)(6666004)(6506007)(5660300002)(16526019)(6512007)(1076003)(478600001)(8676002)(36756003)(186003)(2616005)(54906003)(107886003)(66574012)(2906002)(316002)(66946007); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: silabs.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pcNnUOaV36BM1jTS8xlEBIv5aeslHoLXy00PHYUsLYAULeUcbqThiHhJZnBJMOgsHyJ4YgWnk/Pc7sXg1InofviuMXPkJC4Tb+5PU8EtOo+e//ymM91Z09THzOmpf3c+37284SV9aoG9OlgGIi4wj9r/eIt3E9828zh4cqS5Q8x479olOVLfgj+tEFAPwqTdAbt8Kl6a0m2a9XZJAxDNDrjFSo/J2+qMa1imHyIo7o6JI9IRhQ/FVfp30li1aq9uOBWroTwnq23QLdC/UJ0sm2pIYWlV29SgG6b3rMXHQvYY89k1kJhAKYWecv7X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8d7b5a36-3022-45e8-2c9b-08d7eab0a934 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2020 13:41:17.2026 (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: g/FwydEZOkKD8L2Z/5PqdZSCkG5j6ekC9lvh5APibOwXo5J9NpoOIH8E9cq1IoXhLWLA9DO2eM2JjMz+Uy1vJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1424 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jérôme Pouiller Device is able to measure its temperature and raise warning when this one is too high. If the the temperature is even higher, the chipis also able to send an error just before to stop responding. Until now, the error message was "asynchronous error: unknown (6)". Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index 6de210139d8a..e6daac36f5c8 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx/hif_rx.c @@ -280,6 +280,10 @@ static int hif_error_indication(struct wfx_dev *wdev, dev_err(wdev->dev, "asynchronous error: out-of-range overvoltage: %#.8x\n", *pStatus); break; + case HIF_ERROR_OOR_TEMPERATURE: + dev_err(wdev->dev, "asynchronous error: out-of-range temperature: %#.8x\n", + *pStatus); + break; case HIF_ERROR_PDS_VERSION: dev_err(wdev->dev, "asynchronous error: wrong PDS payload or version: %#.8x\n",