From patchwork Tue Jun 20 10:43:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiji Yang X-Patchwork-Id: 13285598 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48BFCEB64D8 for ; Tue, 20 Jun 2023 10:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230144AbjFTKoP (ORCPT ); Tue, 20 Jun 2023 06:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231979AbjFTKoM (ORCPT ); Tue, 20 Jun 2023 06:44:12 -0400 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2051.outbound.protection.outlook.com [40.92.99.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E9CDE42; Tue, 20 Jun 2023 03:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ml14MtGrjWnOLiLstIeiqGLAvxPMEfCC/nCbKzI3gzNfooNWwsawHD3OCs6oBnC4uvU/dTC1kielLbsNGJVSqaKQ9Gvpi+HwzBoz3yJY2R4wrSKt5wXxfXQ4pEmMkGhaH2JA1zNJOYbo4m50OucnUFohF3l7mKQfkb/1Z2N3/RSdPu/MMgfG6NfzJ+757Tx11Wb7xapdq/pVVdbT77brKzH67xrvZsUxxyftisZTznAOgSxQaH6nLwPPL2ug511by8zbi9T0NVN74yEg5RPmQlIBBFRX7/5iSUQE7XJ2IcTdzZ6uJEL0IJ5fj5zwzkG5v4B4JGuFeJkl97JWrr5hBw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1X+kg+AgOfUBuS2OBbJ/rYQUt9Gb8ePdeQMUcUwcewk=; b=BYt1BwpEv7T3Gh3ba9JVCC+f2tPMwu/DXsn9BsiuIdRPSzavFiDDUQulQ6HdPnTgVQnpgFzUhicWSitETd3Gf1ZdJFunLfU81cjcLhgNEZE0CDKdM6A5NRuIAcvJck317vKCdAS+KMeS6LDT4WOv39GNBQW69t4EWgZd785+3ljj3Qynu2Nyibgc5TUd7c3eUuvpv3lrqvy/SFQphK1+642X5pCSiTdwhaZGGdX4NHHzyZ0j5qK1kNSXMHmk0Rb0SbPo4V9+14LDVv0BV5L2br1GtGZEXNmeEirIFpYpkPhXSxw+XHCZvbtf/uCR9vSn3oUq0SFvhKBelV12O8DrCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1X+kg+AgOfUBuS2OBbJ/rYQUt9Gb8ePdeQMUcUwcewk=; b=SDfgIvORk0MKGArLtsF4mTzOvvaCvkRAVyAljWSmaiI7iJCA83dy4sJDToUcQjhPG2vCMhjjRWr1cnvRcXLTvbdG85dJGuaT7xf5IYrK1X9EgD+tIKf3erVmTd0IKuPvGIO2UbD2Badr11JE9gv0rLN7bhN1TRSNlcbnIWW5Yyk48H850ffJUJcCPr4ufa23vprnVgaksF3a/eloGEREPkbss9XvTk/IIa+tO7Ei0GtCKJPMZswmMt/hx4y/NkasPFcaJ91/AKu/x4/EbBclocK7g/7mslL98Wqnzk7e8dOePbdCHVgb3ZbpycUotV/uPyYk80HUQfhVgVsV0CgwcA== Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) by TYYP286MB1546.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 10:44:06 +0000 Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::ca7e:d73d:ba3f:64a6]) by TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::ca7e:d73d:ba3f:64a6%5]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 10:44:06 +0000 From: Shiji Yang To: linux-mips@vger.kernel.org Cc: tsbogend@alpha.franken.de, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Shiji Yang Subject: [PATCH 1/2] mips: pci-mt7620: do not print NFTS register value as error log Date: Tue, 20 Jun 2023 18:43:22 +0800 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230620104323.1736-1-yangshiji66@outlook.com> References: <20230620104323.1736-1-yangshiji66@outlook.com> X-TMN: [LDe8uqoVX3fEtYvsMupMhNIvx5Yxr9wd] X-ClientProxiedBy: TYCP286CA0307.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38b::15) To TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) X-Microsoft-Original-Message-ID: <20230620104323.1736-2-yangshiji66@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0315:EE_|TYYP286MB1546:EE_ X-MS-Office365-Filtering-Correlation-Id: 0289eeed-250a-40cd-8985-08db717b44f8 X-MS-Exchange-SLBlob-MailProps: 02NmSoc12DcenbC5w/UaZkbuHE2qqzIUWZk6EQ8qKIMhKITUW12DuVKppOMqtnzjj7B/gA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9QRRGA7wSevt2gT8bvoO+3vd2nuCc5zpG+iJhJu4dzdb4B0QkWX4OavW8AUmMIuG30atMVhaGsfkf6XCT9eRgQXlHuvTatLsEz1ueXgIJ/crJbUJyEZ6qUD6ztQSeAdDbRLn6hW0dOwXfcTgs8UcoEPEDIcmTb0wUXVW8WhIgLB5TcXjmzDr/APQqXEzEDc/6CFpz6j4IjSgHgjLhhBPD+FK08vy1R0SAO2hxFJnDCHBSBWTmM/ws07jD1Rov8pT7lZJ/zK8TSqYJInJNfzUArcM1wm2vKw/5nORT+tCGM5UkaQzVdXi3RTeJJMimlql/1E2uFL2J/9dSz4Vu+aCyENI1zl6PgzDX57i7AvIer82uMxthPLM7UatALrRorRLqnvlFIz0OrrAhPLqp52LjpPbad9SiS3XIN4drN0nwNlzeofyhAXU2key88c/l2b5xVoTdZDHcCb2gqQlyeOe8J5bCpKDPuUW6hvlHwJHBdyzpODiWOmvA0bgIEkiB/baV5yUaZ64J1v48CxqUyl4eMvteiU/1PKZ9BOLTK/AbWZa1eNBbLjbs8= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0289eeed-250a-40cd-8985-08db717b44f8 X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 10:44:06.1071 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYYP286MB1546 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org These codes are used to read NFTS_TIMEOUT_DELAY register value and write it into kernel log after writing the register. they are only used for debugging during driver development, so there is no need to keep them now. Tested on MT7628AN router Motorola MWR03. Signed-off-by: Shiji Yang --- arch/mips/pci/pci-mt7620.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/pci/pci-mt7620.c b/arch/mips/pci/pci-mt7620.c index 2700d75d4..df3347643 100644 --- a/arch/mips/pci/pci-mt7620.c +++ b/arch/mips/pci/pci-mt7620.c @@ -274,9 +274,6 @@ static int mt7628_pci_hw_init(struct platform_device *pdev) val |= 0x50 << 8; pci_config_write(NULL, 0, 0x70c, 4, val); - pci_config_read(NULL, 0, 0x70c, 4, &val); - dev_err(&pdev->dev, "Port 0 N_FTS = %x\n", (unsigned int) val); - return 0; } From patchwork Tue Jun 20 10:43:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiji Yang X-Patchwork-Id: 13285599 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5BF1EB64DD for ; Tue, 20 Jun 2023 10:44:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230397AbjFTKoQ (ORCPT ); Tue, 20 Jun 2023 06:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231612AbjFTKoN (ORCPT ); Tue, 20 Jun 2023 06:44:13 -0400 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2051.outbound.protection.outlook.com [40.92.99.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5AB610DC; Tue, 20 Jun 2023 03:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K1aBqqpPjM7kVIzQ26/nIcbCBYzWMKKo2Jczpu4w+P37vgnxDJpVwzdd618BRikZQshmme5uuAJax1ysZAbWMBWq0y+LIWyinFe2SJx2sj5zxm0I85kqe90A+UIo0WKrAAR+7tOfHu1prVA4PwwRInw2fqBT8yF/0uHmI6kjhHqATby2X4Bovba5zLYGQg+snbbLTzU3aHFmtotJxZkhWqbHSpAWjiXAPelHOlruA3ISNQdaMuVaWew0IOBOsegLWYdANv2ojQPcwMUqD+bTVyZtUrVoYWi5ZK2M+7nQhz0X+OGvV1T5ieeeIYwFJpLCUaVr3KHMBno/hcIDeNAbUA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Cmp+l10mEGmUqx++0/Ab8xfA5655iXnQb5xbTLxbufQ=; b=Km+XI1OCDiE1ukyhCLjibWzecwHRWiwfZ+x66ORMq26RlyWir+VmV6b6CxnoxEICsTZRW8LSIISU0LXBTcmZbPNUocAvYGNi7A7uabpdkpzm81ukBSubdjlzGgJhlgzjcJ7SDjXNrWVoF5BBBQyKvfmWJyP8z43am+ksE3IK+5iGCYwr/hWlA4vNEwSQBD+946C+n7pbpH+IGUsibKklU3enejwmodQeMa76j9wdhtwTYWbKz3yUEnSXUWaltb5ccN9fmFV6QCDCT487RguiQMsJM8bb8fe1oiGJpe2sV2rBLrFBPuqI+NgQdG8PWpQI85HW5FcwLpE1y2RP9d0UNQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Cmp+l10mEGmUqx++0/Ab8xfA5655iXnQb5xbTLxbufQ=; b=CgqOD5IqbqZcBKmViQoSpEx8VHw5lnAaYDpfst1Bou6qK+IDIGeZk1CcEQVy8opNjI8pu+rXSBFib4I6CIyzUO8+xEGtB5HZHiNxtxDsIlh/rWC/grqQvrxgS9zP4PgjHTxGbcUE/SYU6X2Ch3Eaot417nTV2NdWQmhhxoj8NwvOF7ZAEqYOFTMt2EWhRHnMgIFpg91wM+JdNxZQNM/PbzRqmyRb5k+kBR994VdXz0DMEPqbFWkpV+tW8Q93o73kqPxZ6vV8CQfWDGirpc28qBn/Lw/2W43m9wsaTCsJsWJuq+hizVgzNWoTA/zs8YG6coRRO01Jug1z24TAGx0gSA== Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) by TYYP286MB1546.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 10:44:07 +0000 Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::ca7e:d73d:ba3f:64a6]) by TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::ca7e:d73d:ba3f:64a6%5]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 10:44:07 +0000 From: Shiji Yang To: linux-mips@vger.kernel.org Cc: tsbogend@alpha.franken.de, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Shiji Yang Subject: [PATCH 2/2] mips: pci-mt7620: use dev_info() to log PCIe device detection result Date: Tue, 20 Jun 2023 18:43:23 +0800 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230620104323.1736-1-yangshiji66@outlook.com> References: <20230620104323.1736-1-yangshiji66@outlook.com> X-TMN: [LUH//fxmpTtOP915Azf5tt70V5/q6Tkw] X-ClientProxiedBy: TYCP286CA0307.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38b::15) To TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) X-Microsoft-Original-Message-ID: <20230620104323.1736-3-yangshiji66@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0315:EE_|TYYP286MB1546:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d62fda8-dc5f-48c4-22a8-08db717b4620 X-MS-Exchange-SLBlob-MailProps: 02NmSoc12DcenbC5w/UaZkbuHE2qqzIU+ycbbO/upcpuaqeE7dpFuOkQKVFEGrfsGUcB61uBAMA6itXtHIqwj9/hGnCQJPqB1W2VCQWWTp1SgNcsH8ZleOG3UI+PAfM7Cmh8Fi26nuOpkrmz4f/Dbmei6Q9jvt9DTnb4lx39ftLHKvi/T6j8RbhVUQ9phAui6GpHovmoo4u/jJiOqYxsC86w392nKG/BSctXV+ijzMDCfRR5vFA4zXvm7wMLdghCxUYeDO40kShrcqZ9k0FgzaubZmQNoVKeazs1GkSNaTj6KPebzDreFHTbrghPH543KZAYi8Up0C/IIijE3vEBO1ValXQyHSVJG/5S/d/3QsjXsl1INMzFadIXWfbnIQiH4iwaSIPrgGVhV7ZSH8c0zgq5JnTMlOQBT9SV9wToNkpriNzs4ablfc7AQ9ZIexSV6MmNfeP/05iitrS3wNVIMqrVjJGG72hmHuRCGavI9QkKCAKn4dQM4IrzNQu23xsB967/Vkghd1BfZKKRvIKyj+jhOmZBWtmLr62cOP5DGjG3Y+YKYrMfuqEhbHUKpRgd5ZGvMwyhbrcWfcC5N1QJuqTuc5APfCKq7lCA1KsyOTWNAdDRigB2QR2A08kcpZnELQ4gkj1pzoDGcRpG44I/9LrQKfh3k0fva81rdej4Rr2siu6A0ckjJkCdz2LisV0TgjN3xxehvw/17dR2uyZNH/XkWIMLfXG2raaQAaNezUCppXKrC8VeY9mHoNQgGn/m X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dzy0SxVyE1fzdTII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R7iPftoh7x8GGxbjZWRX0uTHUbm/CfFe1HoTUIB6JGWBVlIybY4f83KG4cgRoRYFy2x9Qqd5qbjYtIT2qFZ78gYJJGEy+linVb9MuGMHdo0H4KvC1sDwnd9hKR7iYVDAc2lki0gB3A7/XgV4QG7Hs6NovTBn/Nle6PE55xcqihUidV9ouJi/wPLdS4St9lKKvMgjSw39s9ZbmVggRUKZtdEuW1KScHLS2veU9rGpf4aY1Qbn5V4I8sNTATV7Mln0x2Uud40JNsrOVJQoAI8KKwgI48VLetgWTfMU2+El7R7Dc79KrqRwDWd8+0WsrAVaO8cJBXqeWofpWmkqpO1uiYyzE5BSxd4V+TO3iBydvHiRMoe1UnlrtEzgIeVkXiAHpwgk84RpvwJpNmT1dmQ0jHVtIKZWnjbFV8pmjlYeYJva8AT9xbJ8oG9wKgyHY2WfqQJGmiNDpi/pUBX8GKOp7rBmqPAhz+5i/QoUCUmGv30B2l68xKS9n59n0nGqAmWQ/fgcLyU9yqKB+0wmY/oQAWovrJOUv4NfMYKICjsFQlDgk/YVVOSdYoysSzOZ9jhNfaCidaF8ftjFAaY2uQVWxpmYueyWclFhO/uu6dNx8iJh8oPs+g6f8VK/gwmu/on2gyRqnag2udLvmtZ/KkLQgW4oLkjL7EQgNiWOhoFIzd+9ld0snWL89lMgESfGeH4MGIIbUqFdMVasBPkJBZuOjZWq6c2QxC1QCAKMYX7Cm5Aw/5ikLYm0Hm/v0hSCTL1n+AF4FV1kWzG4cYHgvLqrGWsE7jkQ+VYLsdvElVoArXXfYVX8O11UAWQA6/bjL9/LSjyHDcQrnDdc2I+HjChmgGH1HG9TZ54= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d62fda8-dc5f-48c4-22a8-08db717b4620 X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 10:44:07.7792 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYYP286MB1546 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Usually, We only need to print the error log when there is a PCIe card but initialization fails. Whether the driver finds the PCIe card or not is the expected behavior. So it's better to log these information with dev_info(). Tested on MT7628AN router Motorola MWR03. Signed-off-by: Shiji Yang --- arch/mips/pci/pci-mt7620.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/pci/pci-mt7620.c b/arch/mips/pci/pci-mt7620.c index df3347643..5c4bdf691 100644 --- a/arch/mips/pci/pci-mt7620.c +++ b/arch/mips/pci/pci-mt7620.c @@ -327,7 +327,7 @@ static int mt7620_pci_probe(struct platform_device *pdev) rt_sysc_m32(RALINK_PCIE0_CLK_EN, 0, RALINK_CLKCFG1); if (ralink_soc == MT762X_SOC_MT7620A) rt_sysc_m32(LC_CKDRVPD, PDRV_SW_SET, PPLL_DRV); - dev_err(&pdev->dev, "PCIE0 no card, disable it(RST&CLK)\n"); + dev_info(&pdev->dev, "PCIE0 no card, disable it(RST&CLK)\n"); return -1; } @@ -370,7 +370,7 @@ int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) dev->bus->number, slot); return 0; } - dev_err(&dev->dev, "card - bus=0x%x, slot = 0x%x irq=%d\n", + dev_info(&dev->dev, "card - bus=0x%x, slot = 0x%x irq=%d\n", dev->bus->number, slot, irq); /* configure the cache line size to 0x14 */