Message ID | 20200922092347.19141-6-Zhiqiang.Hou@nxp.com |
---|---|
State | Not Applicable |
Delegated to: | Priyanka Jain |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=qyjvDVYu; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bwbhy28Fxz9sR4 for <incoming@patchwork.ozlabs.org>; Tue, 22 Sep 2020 19:33:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 56B7A825A9; Tue, 22 Sep 2020 11:32:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com 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=nxp.com header.i=@nxp.com header.b="qyjvDVYu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 204168259A; Tue, 22 Sep 2020 11:32:38 +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=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20613.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::613]) (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 47A308259D for <u-boot@lists.denx.de>; Tue, 22 Sep 2020 11:32:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=zhiqiang.hou@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mY7s7LLbCXtDWsHvXtewRGHze11tG2lcB5/vQg2Akc14ePIJed4mfER4vYguOQ7bLwSSureFAH2PG4plnqvOXh5NKBY0O4mlnn+6gCQKzAsEN0z8cSCf4NCS4BaP7UOBMChMjucJdA9fJSdPhPlK9u12eOIgcfALfEpfmRIbl2oaCtOpCQE3A6qvXL3V8+UxlPEz9CXFYzV+Tx29L6YxZe3TZXTIiKAktdszN/tUKzRtgufOYQAEf6Yal/9uHa5vxaewWpdUkGCCuZUqKgkZdj/k1kD1NESunArV68K4Rxg01tCr0Uifz9stacStKEzoPGIUqZwIeOppVQymCsESOA== 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=oVXghYvVWAP5buBabJDOOE9iwpJsWCgib6Lh3aX28vY=; b=dNn34AQENKPOfUr9oUWgK7Qv72Ip4OCtU6/wMfUepojbnEhY/vy83KnPfb27tMIlu5bcauEbaN/SWrNfZ0p8T0Deh6SPrvwyciBgLFDWHNcbaLnNwKP31VccArjxA4/qhluqI9qVH+q6ddnfXs3ljrN233ShmmcHYAayhfbbTMDxHMS0rD7hUftcf/y9MWAzrQcaTb22NdlCJUf40f/dJzgvhGZ1yuZwRP82FM5z+iFP4XyyutqliB9438THhMekVC68hIR5fYQSinbFalx1f1S0tuG2bCSCv0aN9KBu8642C/ObS7KtjtM+qCDYcroyTT5q89XQ1gM36x1EHntPPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oVXghYvVWAP5buBabJDOOE9iwpJsWCgib6Lh3aX28vY=; b=qyjvDVYuAqHlGnt8j1PKTbtRxN5zE1GBjLhvnox4FOI3KbmTABioQHNkz4qferev2wdZliZ2eIR8pawu/f0TL8TjDcS3BmgaAgzmVTOBlfWdp//QLES50uPJzV00rlwbh0ZGi/tKu2QfA4C7wImGVbkMdg4D0iQiF3WoBAIO3iA= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) by HE1PR0402MB2889.eurprd04.prod.outlook.com (2603:10a6:3:d6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.17; Tue, 22 Sep 2020 09:32:33 +0000 Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::c872:d354:7cf7:deb9]) by HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::c872:d354:7cf7:deb9%3]) with mapi id 15.20.3391.026; Tue, 22 Sep 2020 09:32:32 +0000 From: Zhiqiang Hou <Zhiqiang.Hou@nxp.com> To: u-boot@lists.denx.de, bmeng.cn@gmail.com, olteanv@gmail.com, priyanka.jain@nxp.com Cc: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>, Vladimir Oltean <vladimir.oltean@nxp.com> Subject: [PATCHv6 05/18] net: tsec: Add fixed-link PHY support Date: Tue, 22 Sep 2020 17:23:34 +0800 Message-Id: <20200922092347.19141-6-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200922092347.19141-1-Zhiqiang.Hou@nxp.com> References: <20200922092347.19141-1-Zhiqiang.Hou@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0169.apcprd06.prod.outlook.com (2603:1096:1:1e::23) To HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.73) by SG2PR06CA0169.apcprd06.prod.outlook.com (2603:1096:1:1e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.13 via Frontend Transport; Tue, 22 Sep 2020 09:32:30 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.73] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b331beae-7630-454e-42d2-08d85eda6e9e X-MS-TrafficTypeDiagnostic: HE1PR0402MB2889: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <HE1PR0402MB2889293C7CB9255496EA40D1843B0@HE1PR0402MB2889.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l5SomFHN82YT+KL1YGnYnb6hGY408adgEfkJWSa8wwLuM/HOc/QMXUCW5eiRH6BzZ7V/jzzmyfyBSQEteWjVYamGy6eqmoLRQzTpqJCbPBpP58FgVW1xQgVbFkcvSHduBqhBGh8fyCgUHS3EVAAxBWjkkiAnptw+aeqV+0fTeGlNPX3del+4HobDOlQDWspVa4NQqRPb6MeavoGTzwQ5+QTECTywtgi+vznHhj06/c8d8sxY/bkwir70qk/QTdhcyKKps5QVxK+qIKFNxf3UKWE4CClwRWN+fIhV84BTyzfV7GVbNN60jW+GPU6sUiJCUdTySWeK1Wsyg9uwenfYiWuh5Zwz7dW6bxJ7NgI7+A6E6ONch836PRYExG+CJ38U X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB3371.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(136003)(396003)(39860400002)(346002)(8676002)(66946007)(6636002)(5660300002)(316002)(8936002)(6512007)(4744005)(4326008)(66556008)(66476007)(2906002)(83380400001)(186003)(26005)(478600001)(86362001)(69590400008)(6506007)(54906003)(1076003)(52116002)(16526019)(956004)(6486002)(36756003)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hTLy+ondb2iD4vNfdw89/XgoTYf7gdpAsXvP8Gj/Qa9cIA+kuP41Rs12xqsrtJz2/gjHtvVWNDhTZO+GWzFjJGAHeojFWpEFC3Bgdu65MIa6WGRQGboCF6VJofWnbxNM64ghk0GewRHtpMSgmJPc7VfPXvRxJbyj4goSNS+8Il8n0Pcv3FIKZh6u+iPQowRhAGNgkxexaDIeOYFPEZzcOJfQ9CsbCWgxy7Uq3ZxG5YkSGRXPlF4PGqZEn+Q8Z7D4ccLggAn8krTdUtsFr2p86aBeCyS9pYOlI1o+JO0Of/A/vv4JpU20wIgKaS3tudddb2JYu3X9aK4gDWqPMuPGqDEF3dEJO3qQ+No/9NK6id7QH1attSoap8uDtVmOWbVk4SkjbMDi1tQwJe3UiCjQc19XMBZPhH59C0DpnOZIAt+1O3qCtwcrV+cYFU/UPidUsbKPVrCkjxBeWaocgcYafuFcCKLDbWhFy8RBRBl5fPHjQEuawfT7Q03mPHHU65e0wA9v8z+CAkboUW4WkKArvyeWyrpBfkJ8Yx6HfrVzdz1pMzlmtFiG/+56a9ZSN4NSlyS+uyTNoXxozIYeh1yZMFEy8qjIvzJi7vRaGobe1pXeDMR2AJw80weXGq75K2O4eqTUJnU4TaJXHRba/X0QKw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b331beae-7630-454e-42d2-08d85eda6e9e X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3371.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 09:32:32.8579 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LHWKGsEhv+CwG9Ph3tWgCIvIMY0w7dpSdbL3F+3bbS0vHGDtfw8AbSuYdtUyCDVfiN5afmAs9BT14hJcVex7cA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB2889 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
powerpc: convert p1010, p1020 and p2020 RDB boards to DM_ETH
|
expand
|
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 9d68c6f829..1e04a89102 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -683,7 +683,10 @@ static int init_phy(struct tsec_private *priv) tsec_configure_serdes(priv); #ifdef CONFIG_DM_ETH - phydev = dm_eth_phy_connect(priv->dev); + if (ofnode_valid(ofnode_find_subnode(priv->dev->node, "fixed-link"))) + phydev = phy_connect(NULL, 0, priv->dev, priv->interface); + else + phydev = dm_eth_phy_connect(priv->dev); #else phydev = phy_connect(priv->bus, priv->phyaddr, priv->dev, priv->interface);