Message ID | 20230328211247.1987820-1-rasmus.villemoes@prevas.dk |
---|---|
State | Accepted |
Delegated to: | Ramon Fried |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=bTMhRF58; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PmMps5D4bz1yYr for <incoming@patchwork.ozlabs.org>; Wed, 29 Mar 2023 08:13:09 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C9BF485C6E; Tue, 28 Mar 2023 23:13:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="bTMhRF58"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 74DCF85C86; Tue, 28 Mar 2023 23:13:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,SPF_HELO_PASS, T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.2 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on0726.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::726]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BEDEB85C67 for <u-boot@lists.denx.de>; Tue, 28 Mar 2023 23:12:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hZdzfqExjrVbilwuBbH8n6dZeZ9I/GCs8DigR2/gbrPiB3lhYbPtK7miv4+tNlH0XTG4I7lVZQ1VCgixzi41V+1NRuiT+O1cdxv5bBOhkB93OP+yX7PCCAcUcLo8yINIEtkSHcLopvUuqPVLBEcwCLXOTDdjO0UD3IB4B4eR3WLeWEvZGsuhR6ENK/UCRkW0FhYdSQsWmUmI6sCWd1Bff4/YwkTQjm4MBhaGdpE8sMdkY2Dr9TdY6W7kDuWn+3hSO17jl9jNHSDCX7BihYW1u6q+ba8O2eCsmgJoGxoWUAWtRsK4ALy4iMt3KVOVkM/pJRGTma7efe9jjIJQOZsXNA== 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=7+L/jBCI3UnCNhAfCuuTE1zv+Gqk2aGJ9N7VjrC0xs4=; b=Fm87lkMyGeqIAk0+IGqjqNtpUKRX87IFTeX2tp/+boVWGrxKz/Yh++GRKMJNN8S6+GAM9dM1aEGpek3gc569IXH0jnpkPhIf4aOlGvBNpAxIcaROe1s/1Ku/xrhiAmaQ+5SgJPjofH6vBkiinT5MkDbWOkC0nwDMmy0IBRZ7MmhZiM22Yv82tORRYx+CJD27qDimr1Af01WAKt8gdfEX6ORlTloz7tHpFBQj8VnpIipGRI3rWxr/urb1lrdvybNe/B9xTeBH/0286VyYy6USGCM8tCHcJ13WdkcdZIhVOM72gD0Vi8exNPhXgFGE230Gym4oixpvBWIIAKn/fkzISA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7+L/jBCI3UnCNhAfCuuTE1zv+Gqk2aGJ9N7VjrC0xs4=; b=bTMhRF58oJfbM6VRliMXclK2YgyiPTeVQjwTjI+t4HsYauQuf2Ve+91KzRmtaoKhc10DRro73Fp5VITcin/Y/dO2oogHnOoh7L2buRUcfR+XaNYIS7HunVqmbFvz9qRNIMPFFhw+7MRs1AByXtsrHbapROnsmC1HfMan6L7EWMw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=prevas.dk; Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) by DB9PR10MB5425.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:336::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.16; Tue, 28 Mar 2023 21:12:56 +0000 Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM ([fe80::18c1:25d1:3fb0:1439]) by DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM ([fe80::18c1:25d1:3fb0:1439%6]) with mapi id 15.20.6254.018; Tue, 28 Mar 2023 21:12:56 +0000 From: Rasmus Villemoes <rasmus.villemoes@prevas.dk> To: u-boot@lists.denx.de Cc: Joe Hershberger <joe.hershberger@ni.com>, Ramon Fried <rfried.dev@gmail.com>, Rasmus Villemoes <rasmus.villemoes@prevas.dk> Subject: [PATCH] phy: broadcom: don't duplicate genphy_startup Date: Tue, 28 Mar 2023 23:12:47 +0200 Message-Id: <20230328211247.1987820-1-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.37.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BE1P281CA0228.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:8c::7) To DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR10MB7100:EE_|DB9PR10MB5425:EE_ X-MS-Office365-Filtering-Correlation-Id: e471e97b-11ba-44de-f9bf-08db2fd13382 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M+5l82g+rxFB7EqBdaGr51oeHJyFfrDY7R1wDsXVd+z+hzMf7XNuuFBBzGpFUxnrmFQoioFhiDdg01mmBWC/l+BbKxKRn83TMscyK5ZxbP2iOHGsJqQRN50P9m8Ft3LUyw/1RN4glktsvFUHSTrib881CPnbVB0rbbVH+j2PqYf10OmCkgQ7NxWp2WJlHhvaaitYzZWlhb8kqnVL5UieJyZ9bpXdcisxLEy+QHpsqh1wwT/7uyZsmW3ltHjbQtQkmuN8f/PimKShbeH3VzsHbTcidiw7HCzCfAwF/lHpTJeF58BG+bcICn1eMwkCwfliAUHxvQa8y7OoQaU+PxxvKqEPQna4G6xAMOQQvbJs5Sv+j+Pwz39zTMrSOXIeyOoCoZVSgzgbhb/qElZa7sr9Cz8ySxS9GJDmxH1FAEYdmFXU/F10UzQ9FrT7NP+dz8K65mgbrodUGoNtSIfalRp4wRVhukFb697CdOLX0AzOwzwEgWFP1Y8PpXuCN6aY+nPM8U133V5htRMp735MbYx+M9IfOuwDva9P78lbbk+dc2fAK1z+iK+6mOVVo63trlQtfOHXOYNSBp7IQfTyI8LbzgPkUx7Q8W0bEXWiZ+WhCCIRoG+gi+kOJF9TfRHcqIpI X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230028)(346002)(39850400004)(366004)(396003)(136003)(376002)(451199021)(8936002)(83380400001)(2616005)(2906002)(41300700001)(38350700002)(86362001)(36756003)(38100700002)(5660300002)(8976002)(6486002)(44832011)(478600001)(54906003)(66946007)(66556008)(8676002)(6916009)(66476007)(6512007)(4326008)(6666004)(186003)(6506007)(107886003)(52116002)(316002)(1076003)(26005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: k0DKEGYrQqVpAhBbXcxVZmGwSJv5GJ2Mbk0d0BNZsN3mClzJ9G1YPwwtZxG+fDBl4duQnvZbdf22jGw81UD3hKPm5rT+E6xl6YE/pArVXAEHfqlSMBV2Rh5kqL4kuAX4nL4VDA0I2GwKVSikfvLnHW0Rc06qEOpXqcXWLx/74qzGWqx8MHWIDXN7jt0Z52iaox7v9hVt4aDKogVIFOYpmV+0TLzkCvXq6bfbFv9ypt/jN6PoDGLcI8IQNHvoyMmAR+RyRzbHAsE6k79rSSk9gSzjOkxipWbvTJkdy8CIEhi+Y0UxpElwrWQBImwkB3Gj9iOXsLwzvQsMqGq+Nsc8Y5hsOey5bDupKhHCzMBh96S3/+9CLBPDEh+guoIxGRoDrlgFJru20TGaArcxH9jWbretQSwDnsU5+v0kAMPEjd4TeEIMqOFsT11fujh4Xy8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fPhamSJrX5jwIJ/tkDX5vHtDV3MCKKZLLvkZ+ljercGzNneo+0bdjD6c94D9ONGAwSR93UpnlRhW7swJwlt44sNVKgWIg== X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: e471e97b-11ba-44de-f9bf-08db2fd13382 X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2023 21:12:56.4272 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Axgsx2nrEQTAL7tGNH3pwgMNf+laqKRWqduVb8L8/3Zz5O6so0tY9c/bQ38LWdUfjyoiX/lY9ZuXm+iLIfJ0s/UjhO7prKO8zywNBVMhRFM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB5425 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
phy: broadcom: don't duplicate genphy_startup
|
expand
|
On Tue, Mar 28, 2023 at 11:12:47PM +0200, Rasmus Villemoes wrote: > Functionally, bcm_cygnus_startup() is an exact copy of > genphy_startup(). > > Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Applied to u-boot/master, thanks!
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 566fcb8de7..5499ff12df 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -162,18 +162,6 @@ static int bcm5482_config(struct phy_device *phydev) return 0; } -static int bcm_cygnus_startup(struct phy_device *phydev) -{ - int ret; - - /* Read the Status (2x to make sure link is right) */ - ret = genphy_update_link(phydev); - if (ret) - return ret; - - return genphy_parse_link(phydev); -} - static void bcm_cygnus_afe(struct phy_device *phydev) { /* ensures smdspclk is enabled */ @@ -359,7 +347,7 @@ static struct phy_driver BCM_CYGNUS_driver = { .mask = 0xfffff0, .features = PHY_GBIT_FEATURES, .config = &bcm_cygnus_config, - .startup = &bcm_cygnus_startup, + .startup = &genphy_startup, .shutdown = &genphy_shutdown, };
Functionally, bcm_cygnus_startup() is an exact copy of genphy_startup(). Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> --- drivers/net/phy/broadcom.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)