From patchwork Tue Nov 28 12:53:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hennerich, Michael" X-Patchwork-Id: 10080221 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 445C260353 for ; Tue, 28 Nov 2017 12:50:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70CEC29263 for ; Tue, 28 Nov 2017 12:50:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65BE72911B; Tue, 28 Nov 2017 12:50:42 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 E69FA2911B for ; Tue, 28 Nov 2017 12:50:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751439AbdK1Mul (ORCPT ); Tue, 28 Nov 2017 07:50:41 -0500 Received: from mail-dm3nam03on0073.outbound.protection.outlook.com ([104.47.41.73]:40072 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751144AbdK1Muj (ORCPT ); Tue, 28 Nov 2017 07:50:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wvTpoeP6tGfZ37PageORolmJ/1sVX71vtFfdWZ68DlE=; b=ftSrdFazj1UMA0v7gFFsJCMjidjT2rdjGdykF8FkKAGVwAbOZS8af/HUw+AmnyQF5+5PHqyNH4xtDNnELODOPJYmadJBjyBBhTN8tE/IbRpF7MMtEUM/zlcPGUE14QmdbIQpyB7Zz5B+8YmAdSgiTOGMIpBJnXY9rL5SYL8dxXI= Received: from MWHPR03CA0022.namprd03.prod.outlook.com (10.175.133.160) by BY2PR0301MB2055.namprd03.prod.outlook.com (10.163.196.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Tue, 28 Nov 2017 12:50:37 +0000 Received: from BN1AFFO11FD037.protection.gbl (2a01:111:f400:7c10::179) by MWHPR03CA0022.outlook.office365.com (2603:10b6:300:117::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Tue, 28 Nov 2017 12:50:37 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BN1AFFO11FD037.mail.protection.outlook.com (10.58.52.241) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.218.12 via Frontend Transport; Tue, 28 Nov 2017 12:50:36 +0000 Received: from NWD2HUBCAS9.ad.analog.com (nwd2hubcas9.ad.analog.com [10.64.69.109]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id vASCoaqQ013481 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 28 Nov 2017 04:50:36 -0800 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS9.ad.analog.com (10.64.69.109) with Microsoft SMTP Server id 14.3.210.2; Tue, 28 Nov 2017 07:50:36 -0500 Received: from mhenneri-D04.ad.analog.com ([10.44.3.40]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id vASCoXv9011793; Tue, 28 Nov 2017 07:50:35 -0500 From: To: , CC: , Michael Hennerich Subject: [PATCH 3/5] net: ieee802154: adf7242: Add additional DEBUG information Date: Tue, 28 Nov 2017 13:53:13 +0100 Message-ID: <1511873595-29238-3-git-send-email-michael.hennerich@analog.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511873595-29238-1-git-send-email-michael.hennerich@analog.com> References: <1511873595-29238-1-git-send-email-michael.hennerich@analog.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(2980300002)(438002)(189002)(199003)(72206003)(47776003)(246002)(356003)(7636002)(305945005)(478600001)(189998001)(107886003)(106466001)(50226002)(8936002)(8676002)(86152003)(4326008)(76176999)(50986999)(2876002)(77096006)(106002)(33646002)(39060400002)(86362001)(54906003)(316002)(36756003)(110136005)(16586007)(50466002)(2906002)(5660300001)(48376002)(7696005)(6666003)(2950100002)(51416003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB2055; H:nwd2mta1.analog.com; FPR:; SPF:Pass; PTR:nwd2mail10.analog.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD037; 1:e+DZzxc5cUZG+0Q7dgSrVxC7ilFnU9A3LsK8DaclGG5XHVUvnb71cvs2+a4j5pqcGNjlJk3HeSmAd2Ujsl5hwq+SyM3i7Kdo3fqv2cEy9D4KhiIX+f5aaVO7LSRjtHqM X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85ca4b2e-cf66-4f3a-f436-08d5365e9f51 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603199); SRVR:BY2PR0301MB2055; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2055; 3:valWIhpxkWowsq4Q6iiY7uj7cDgcEDmnHsr+8BBFyfd6UKlfPjThRo0J6RvzR8PhUsaw6GO6SAR4n30gGNHHTdwXIMOPv3NMAzEU5yvi+L/3avjFmwAfVihKdYCZbX7hbxMYlUx8xCUtGbbiPC/3rEMyHo6qr76WP6Sb+8Zy1HuUtasczhVrNwd+bXMvEqIHvji6EBITcHQH8DDaTEaR8mULbnENBJEJrKKVtrVSePDYlOO/11lCs/vadTK4tF/6b9G7rwyHZWzbxtwfJWR5snCTGy0R37CHIWM+PSiv9Y22O1ZdEIWLRFmgp6BvzsMiNFOoDkIlMNOAwr+RSBWM5g==; 25:KMTJEsRYtCZv44HOCgvtE4QTv9LwihjKWB2zPf9gMb8HjO48L/YJRboFHmYNcyjef5GyiYMOnuQNBQkSZPDa04OSHtQnvFiGF7rp2k7wIpHAlw1f4p6tMtnztwnFxKshdxRNTpDU884vaKf/zuclsdQls68oopsMWOgF8Oz9L3eiRzgZwehf44KKd4yTy/v1Av+OKFboDMxqdPtvI4aLJLZGMpU56enuFlWwoZ42sZzXQZGGcHzjm5Gu0N6tiYCq2EId3gp6e3k+YyU5wh8vUozNIclaqpaj+6TG1eEdGr10iQHpykxTRZwlMQ5/BPQB9Wa28a69R7pn4kfmkE00lqazLO1Rjtag7vvZj169564= X-MS-TrafficTypeDiagnostic: BY2PR0301MB2055: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2055; 31:8oIg1peDpFYM1Z1P+izMZ6MzMfpns1GOTQGGBjdIKGqnxKi6qKoWEAUVBpRy6Kd1JDL7Hc8mg+8DBBFyEyDNySYE6GKJg2bhohYtuoQQRHhbce/ZMFhCr1n83lrn5qUn78DB6iiqfMHdXXC0UNWQYgCYsmRVwq7xJTjBj+CscdNGhAcHAxE0y1cv0Sg0QhKQOSVjCiZkMYLlu3MBebv4RfIrBzPFYPhECy3bej0M5dU=; 20:8AJ3KyYcytUCMmq4ZRddf7AW7p1T/vvGdWzGc1CiHnuNK6CGdykpuhy4QWbw2XMpm63PKtCUCmEukV1b7Jnjy5Ebc7ve3mMmv6KGj62Z79WVpImZLQjDSHXNGMsjs7UsJN7lTBLMiPWPcvZGtxzdXU0Wtis1JBNLOpQciKjVVE8uQsBZEmxz0a8ti8UlM8EjSElqEe/ZIDncM/FbdXumgKK1kPY0fCberIuV9TeJQLqqnjVYIw+VMnDdR7Ii00iTVQ6Ck56LWKnYXDIp0MkZ62OB/2U9ffoJQxQTcHsfZY9FqjVdThVjJYynR/8oXlK16TfFAxGduaM2Xkn+jsxG2w+9BjE74som8tQ2IwoSQJLortYDDQO2HzveJhlS/IXf826+ncimm68ljo8bjEgE454QoSvv5lmg+5WG8JdwU+U8uvhEGLa4M/lTyhaQZbvQpnk8l1KX0g2P9KJ2QIGfsU3K+68tqOlsQVgFwS3AYSjLYIEv5XKEuKCLsE+ajAyz X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3231022)(3002001)(6055026)(6041248)(20161123562025)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BY2PR0301MB2055; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BY2PR0301MB2055; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2055; 4:jq4GLFbHtFf3wcUb2sCUF75PH8M5Eo+Uru/tjz6UiYf1AGIKLjM3Mns4pIq+0pmApH9Hwar7Am+O8ZHbYUuJTFBApe+pmmNnuvKLNlopc4kvvXwx6VxkYLpwjYuqlu5RUMTlcCgH0WUCOK4aKUNnxOHPuCQbB797fBZyag2WH+vEQUTotpDBS/epUzBSGJEhyAnZFdsTpopBEkXZNdbhcgp5fm+GKgVkwSFIaHcCjuAgF2iuYdbq5a25uzYWpWfss4Xh+hqgphAaQt5cP96NnGpYXY+WZN3AFQrT28UTzaN//aBlPBRufnPjoDGc4uGQ X-Forefront-PRVS: 0505147DDB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB2055; 23:OrQO8NOA7SVAaeGAMWYnUEc6atvZGD/0taF5CED?= =?us-ascii?Q?F8d1t1j5PkxYzreBVZTM/OiKwwMxH9UX4K1C6ZpdLLlNMpEbwncREomeQJCK?= =?us-ascii?Q?ujqv4a3pZrczziZ6+28BIoocj1JsIZuo2H/+yerZa9quzk1gjRFVRINhXh3v?= =?us-ascii?Q?XexY7jOw/Tj5HtQ9wdQM08aoRKKNFEQTFd7a31CBhAk9hl6fHIH0ZN29xjmB?= =?us-ascii?Q?aSrrWKiWweojsHLP77scEm1c9s4iKdPiZdV4kf2vp+19xG1I/b7MLReUmDgK?= =?us-ascii?Q?fGy5k8nKgAYZYfvbOudczaezpSAOsPd2UZgKMa2eVs0v/a7HiSxYTCt5qj6a?= =?us-ascii?Q?kjQq4Tfg8308myQJfTy47+hPtG1MtqIrhlXmvydnKE7rEQtxYaz8j4upjCNo?= =?us-ascii?Q?MEmAw7faagCauWWccw/dEdenjxcyOrl/SIQC1kRfDe4FtZIfnWMoWl3hTTcW?= =?us-ascii?Q?WB+CNE1Vyi3VK3JOlw78HElM4lTmYsB+BKqEITyEzJ+5k5HqKoV4WESXFQVL?= =?us-ascii?Q?pep5A3Gl7ixpHSlRMnd7Fe2fL7WTAwUN+Wr5130oV/0ormEiVyKG48j+KyST?= =?us-ascii?Q?e7QaySi6M6ZVsuh9HDMPmFs6HewJtBnea/UmXD/k88r9nGOc/dxG51OH4yuh?= =?us-ascii?Q?xxo+/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24:fMd74SRxiOW0gucH4vSnqlUnuEHiS2Spl3iXZeApmTsm/stMLUm+uNl/Gy7pi5f4VuAt+LhvxawaSvG6GEwRhNpHaR7di4jLbLz0kUxXIX0=; 7:Z06pVeraeVmWG5Ql8bmJSidgxdKs1pO7IXbLe7JmiTga69Z9E4X6QfVkmN9jSyGo80swFHQGJdl0LWqNvlYXS7BQ0QyennpD0POx24CSGwL+mYIxF3kw1ii3bNeVKtWUenrvtcjAEfazpyP+Or5Amh/e6QSilTNGuvzf2n635QitGTge3ANnbHvSgjN1MvOwOowaCtM00Xjz3BkH19cXnmLOLQDdEv6VYaS7XydcxneGUYCGLXGwJF/lW2AHWZ6n SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2017 12:50:36.9475 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 85ca4b2e-cf66-4f3a-f436-08d5365e9f51 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a; Ip=[137.71.25.55]; Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB2055 Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Michael Hennerich This adds missing status bits and improves the DEBUG prints. Signed-off-by: Michael Hennerich --- drivers/net/ieee802154/adf7242.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c index a11948a..ce1a6d2 100644 --- a/drivers/net/ieee802154/adf7242.c +++ b/drivers/net/ieee802154/adf7242.c @@ -906,9 +906,12 @@ static void adf7242_debug(struct adf7242_local *lp, u8 irq1) irq1 & IRQ_FRAME_VALID ? "IRQ_FRAME_VALID\n" : "", irq1 & IRQ_ADDRESS_VALID ? "IRQ_ADDRESS_VALID\n" : ""); - dev_dbg(&lp->spi->dev, "%s STATUS = %X:\n%s\n%s%s%s%s%s\n", + dev_dbg(&lp->spi->dev, "%s STATUS = %X:\n%s\n%s\n%s\n%s\n%s%s%s%s%s\n", __func__, stat, + stat & STAT_SPI_READY ? "SPI_READY" : "SPI_BUSY", + stat & STAT_IRQ_STATUS ? "IRQ_PENDING" : "IRQ_CLEAR", stat & STAT_RC_READY ? "RC_READY" : "RC_BUSY", + stat & STAT_CCA_RESULT ? "CHAN_IDLE" : "CHAN_BUSY", (stat & 0xf) == RC_STATUS_IDLE ? "RC_STATUS_IDLE" : "", (stat & 0xf) == RC_STATUS_MEAS ? "RC_STATUS_MEAS" : "", (stat & 0xf) == RC_STATUS_PHY_RDY ? "RC_STATUS_PHY_RDY" : "", @@ -1086,8 +1089,11 @@ static int adf7242_stats_show(struct seq_file *file, void *offset) irq1 & IRQ_FRAME_VALID ? "IRQ_FRAME_VALID\n" : "", irq1 & IRQ_ADDRESS_VALID ? "IRQ_ADDRESS_VALID\n" : ""); - seq_printf(file, "STATUS = %X:\n%s\n%s%s%s%s%s\n", stat, + seq_printf(file, "STATUS = %X:\n%s\n%s\n%s\n%s\n%s%s%s%s%s\n", stat, + stat & STAT_SPI_READY ? "SPI_READY" : "SPI_BUSY", + stat & STAT_IRQ_STATUS ? "IRQ_PENDING" : "IRQ_CLEAR", stat & STAT_RC_READY ? "RC_READY" : "RC_BUSY", + stat & STAT_CCA_RESULT ? "CHAN_IDLE" : "CHAN_BUSY", (stat & 0xf) == RC_STATUS_IDLE ? "RC_STATUS_IDLE" : "", (stat & 0xf) == RC_STATUS_MEAS ? "RC_STATUS_MEAS" : "", (stat & 0xf) == RC_STATUS_PHY_RDY ? "RC_STATUS_PHY_RDY" : "",