From patchwork Fri Mar 17 18:54:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13179368 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9590AC76195 for ; Fri, 17 Mar 2023 18:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mZIHkip9dI99DlU5FXK4oBCFkG5xq21LcObg7n0oNGI=; b=t5VKlHErvO8hQE oIjm73DmPGyKwKkepHz15KlSIXwMdmkFwGWhOTzkjicCM0iT6dEvZq9G15DDy8t4RKbDzz8ALDeih gLByDPhOr7nd9crnfEAZAvK9cKDHclLwbQcNgaT1fyGRCMcGYFo6myvZRSmYNa2g1wQc1VHUdtinL DapXvaN9+Kun7qYsvY3DQqPEIwjIqeC6yG9Vvandaff8ATXks0VtmccTCiI78/KJpQkvhot3PUJuz iJVAjSipHgvzK/SYkyXywnfJeRbG7xGXRVWEX9DooOBXyXUbTYPchj6Uc4q/Sm/xPulDUVEXNd4UX ItxSuCrZ6JB8v98UzkMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pdFDw-0034xy-0k; Fri, 17 Mar 2023 18:54:44 +0000 Received: from mail-bn8nam11on20700.outbound.protection.outlook.com ([2a01:111:f400:7eae::700] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pdFDs-0034ut-1q for linux-phy@lists.infradead.org; Fri, 17 Mar 2023 18:54:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SqUR7yDhyfaQBCOCpzeyGv2NNcDUUJGiZwsuiMNV/fbeT4CidSpz3IFR1khWEaL4e8t/LatkMSy6WcoftYO/WJZSYOBpDwfwdPj50EptFBGeAMV9Mhu7G/q3Hh0pGjMpSrNMDh/9IkuGGTwqcbLarvjM3yY8srF2kHhEtjRNjw9nyFLxW3YaJ1YzcgariqpRkDeAInpQhyXg1cciWo4S8Yb8ZIkLbI3UCYPHd8XFt2a3IrTp7Nkk63TJswyhXZw83UYgGFwMpNxDrbFvnIsv0zy7DQiwfNkPkPxlamyLsDQzhLl1jxiu6i6d9hdStOE4mOJl1njhMD0SHEtkwv8MjQ== 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=ECnQlW8CcTHfw9R2rNPzg6MoANDLlmn6PgI5oEwVaAY=; b=grXGE5eWSJN5gKKcwrDprvlWtOrdS2CqIR161sl0eIVzfuHBCTBhefJfi48FN+u695hHjy3SNAYAEGCal2jakpTsG6Soo49pfvzWaTzf/eZXrkPnTbmBN8Pe8rrdspHM5NW0OeGjSKgbhOIRlJA4YrNhFjlvGmNWunMgjksjXogVYNiYWDYGEiFQSIQFus37Q8pto3hCRx6b+J5m1PoaRnMsDAdpyytCqfOx8ZdUyhTpPDV2x9VxwEZfdcJf0+6SicVMao8DMlZRYD74X+Z/XlgE/lUrfIoTe8z0vTO4IuPuP2XXrZ7oMY7SglOysdp8KxDtWZDENSqRk2K+wiXgrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ECnQlW8CcTHfw9R2rNPzg6MoANDLlmn6PgI5oEwVaAY=; b=hc1ds+WRlUUze2JUY3z9TnLY8cr+eyn0VQ8LCfyq5q/fvAGdQh4BMf9OOyIHu+MQk0dNor+/TGEFM6IWZNFpg2yyWIrvoTaTXfDhZ4j8WRCdWarC9skJv67tN+dlMrDakCTVA0zwrrVledk8eOWFtGgFB5XO7GvdxOYs0DRjEgA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by CH0PR10MB5289.namprd10.prod.outlook.com (2603:10b6:610:d8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.35; Fri, 17 Mar 2023 18:54:37 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::1897:6663:87ba:c8fa]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::1897:6663:87ba:c8fa%4]) with mapi id 15.20.6178.035; Fri, 17 Mar 2023 18:54:36 +0000 From: Colin Foster To: linux-phy@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Russell King , Kishon Vijay Abraham I , Vinod Koul , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Florian Fainelli , Andrew Lunn , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean , Lee Jones Subject: [PATCH v2 net-next 6/9] net: dsa: felix: attempt to initialize internal hsio plls Date: Fri, 17 Mar 2023 11:54:12 -0700 Message-Id: <20230317185415.2000564-7-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230317185415.2000564-1-colin.foster@in-advantage.com> References: <20230317185415.2000564-1-colin.foster@in-advantage.com> X-ClientProxiedBy: BY5PR16CA0025.namprd16.prod.outlook.com (2603:10b6:a03:1a0::38) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|CH0PR10MB5289:EE_ X-MS-Office365-Filtering-Correlation-Id: e92919cb-43d7-4821-62ea-08db27190e08 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JwBlKbUGTTQPxoQX6hMes8RAQZlmOgZYNindHCYWIdcTOcb6bYNjH6cUlCSvLvQBZPomq74o2raUhzrk1co9Sf9Cs7ps657sK1D7Q1WTPEm7/vYmzRaNZFMX6wskhuPLBF8gLTjVO24c1xKlFHBvcTfGdIk6LUitTT0J1piKVVCN2Q8Ggrc3XnQcc42AzaAEC4TRYncDw/WmEhx9TPIfRoUMxAa7JzCWg9PP0E5KWM6JxG1BcKgSuJ4xHKiRx9SEasz9HBnBqXa4vfZm81aj2E/p/7g9q4q4q/yxrzBxRy6Yu/bSbcpLMxKe04sbkQ4bno/rMT8sRjdGRQM6dQzgHcPqAhFsj4roIDGc6hgmvLTFJwGqU/qRbAsWMa3znvh4xWK9qyfa3y1o61XM1M+G7hwOR82Vjj/yNdBMtnbVGHrgcEXD1wTKUt4vquI1J4S4+LDgetcocZ5IjdyivkVW1fM6SMAVOp/B6JZyYP9NGJ8HgkK+xRn+GhUnulsV/kcVFt/UJxz2X9JbHWJVEG727B76P36qOr/4AiliMHkBFil9GYG2uZm8NEorWAxlxCkyajVV8n/QH8Nq8++r9gPMnG7LslJi4OECA9okd8IYqKdiHRsbqO5SQkQLlCE3QbZZw4x4W/mATpDawaPpoSsPPFUnSR3F+v9/eBr3Lvx/VrINdw304IvzZGJ1xLxaPY5/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(396003)(346002)(366004)(376002)(136003)(39840400004)(451199018)(44832011)(41300700001)(4744005)(8936002)(5660300002)(2906002)(7416002)(86362001)(36756003)(38100700002)(38350700002)(478600001)(52116002)(8676002)(6666004)(66946007)(6486002)(66556008)(66476007)(1076003)(4326008)(54906003)(316002)(6506007)(26005)(2616005)(6512007)(186003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kRFKAQkUjTJYM2vK/OX986sjTzg4WktmKhWrEZXL7uPOsEZNKi2vzvUvNhWUkyhviZHuuqJSuoMKTohyI/Vjv9sLBYxY79zFSnfmduAF+9LRminN8qCani98HG3F/9x3VuXOc9c5HpCj3fm6IsqmnqLL47Row2tFkMUWQ0WAfhHAJBwUDfizNOnhydJTsu+4INU7UsOkZlHDZOj/2XX1LI0hYsyUWN1HiUREDTWUI/w4oiOW+5jWvb0YiplttfHrgYXAAOc/uymjgZJUUvkscC8ri12lSKL3uUDOTw0U4bixaFQcCNJg0+9AlBc9/J/78ECXjv05o3UpDwRrh+SFtJjM4yaHv9+b3lU4q9yteUfGEneBHRG6YDitJFOFZNmgEOM8nLFN9mpPgDPfau/fsXX3ICbwaJvo2w9xJisQTBTIZZOBtgyJ0iKW9sGao60wgjSTIRC8yElH3nluGdXvkJPqmIKnSpM3yeGYS0O53/XtZobcGxBK+ZDFKK7DZhHFsFnl5vywV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WQvMvKK9i70B3Ri01NAMOoHFlPjzhV6Rt3VQXLEfvuWgmjPurA= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: e92919cb-43d7-4821-62ea-08db27190e08 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2023 18:54:36.9122 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FUJXuHienEuo99Q1MjFR5RbEaS79XOAwAqc4a5m4khQmg2hUaF7s6wEYCigZN3bfaUbikqnpnvnWBvn6MFRI8CVrmG/UwFokt5bxiZV99bI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5289 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230317_115440_609551_8C59BA2B X-CRM114-Status: GOOD ( 10.15 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org The VSC7512 and VSC7514 have internal PLLs that can be used to control different peripherals. Initialize these high speed I/O (HSIO) PLLs when they exist, so that dependent peripherals like QSGMII can function. Signed-off-by: Colin Foster --- v1 -> v2 * No change --- drivers/net/dsa/ocelot/felix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index d4cc9e60f369..21dcb9cadc12 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -1555,6 +1555,9 @@ static int felix_setup(struct dsa_switch *ds) if (err) return err; + if (ocelot->targets[HSIO]) + ocelot_pll5_init(ocelot); + err = ocelot_init(ocelot); if (err) goto out_mdiobus_free;