From patchwork Tue Jun 28 22:13:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 12899083 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 AFB4EC433EF for ; Tue, 28 Jun 2022 22:27:29 +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=BFC/upyjv7Aw+x4usCKWIgK5O7OzJaTWYSwKVspLwsk=; b=VePCkY7HRv0bxw Mg6QdjOziPg1p1dwtCTZxj7G0DFYy+5tnY7bpn7tjHCBWfDcqVEqBlZTwBIFbHwBphr2EMwelzAZQ zdcU/MBiryKkg8eH9kOavcOwr/VJk6qjH4vsj0gHi5Uo97dMvRlBEKzwWqEHan84hxTcbOf9t0SdR REmRaIbAXVdWxNesuoFJ5BkKg2NSkaBTMqcIHmOqY49My0mYGB7aUUdEh1O2fhSRBNvnLZa7kUuAo vH+NGkKGS3/4O8zXVtG1t6pOjQlpXuSTgK0HYWuUWHaFXuTh2izQwgzjLtFL37h+BN2WoxDspwRkz bVyB9LH5x5HjyyQUQ0Lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6JeT-008Q66-0R; Tue, 28 Jun 2022 22:25:47 +0000 Received: from mail-eopbgr80074.outbound.protection.outlook.com ([40.107.8.74] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6JTw-008MXM-CX for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2022 22:14:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jiJcS9/j5h/ABHL6rqvQxg7UsZ5+PrDvI9cmz78PrNGKr/y9m3ccjhUIb9u0zgmXcxcXRF2b/72fFgLPINp+CRj3zHklyX7X9lV3XN9v8XPZ2DNd9KigN+5Sq/L7Wu2hPezo2Dzs82u98atd1rQrj7mvODXGI0Jmm8Lot1oopL23KUKw2pJ+tOoXjoLv8WfcfeWMuVx1Vutge6RZS1dj8neG4zF/n268Uo0O1FKdj8HRrFvZxbXyfLn/dUPCRoOFTeOOgNZLSjQw3i7Dl1OYGJ5BrqtK7kdYr0V7kGlKOoKmwDBc+S0EPKjBC+OfNlFZOOYChC5YdYi5k9DmVW3LAw== 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=6/eCJbGAHSHU8+ge017Q4V8y5RRgZqs6L3IicsKbrO0=; b=BYPJXXIoX5R3BxAnemCo8s4ryYbC8L1HbIS492GyoVtKE+MQu+8j62cwPy8N8DZSoJKbbWybu/qInI6J0QhArxFnN3cjqOHhCmQLk2h7+MmqszYpFmEh8/QBdnX7pzho7YGBn9YJP/9tvvM0HHnhlcbn5UNyWgctZtT2neNOWTcC3+a/K+LFtAm+FnEu+9KYXaLbc/wSOhZ9P9UppuACTqMci6OkoPlg2/+CDQbccZMmEQyxDcY322BrMgNSFuSzZmBbYuRuYqQXk/prXxz5JG54BQCODZPIKq8tMgcNEIYRd7+xm2N4X9EoQd1wCttiIwLqXFC2XjzWMkVy/tpr2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6/eCJbGAHSHU8+ge017Q4V8y5RRgZqs6L3IicsKbrO0=; b=lanzjjIbeHPeyY+bHGdmx5wQwtZOrznxLaBubUHcce+/4j74zTvIXRDYjzLlKfjeIyjJjC+3T7NktXYt/5BWHI7yQWYa5bZujb+CaTuZg7N8OrgXLym0NUnd4KMLezmlcbAGpQ+gxDFUv3R7GG6tZYMsyHa6ij4dChauRPEgRg+YUZgaU4gSPYHMV41YHse8ax5wCBMh1eoddHAQzS1HQ0wn8IU4TwL5DIUw5eQKanltS1M+R+vsoiM/R4ZjbXRVweVj6VGjLH8Ah/NMkwa9yOloA5gISJOwydhq5PlpJN7B9L163mt9yWV7XHjiffpQTncXJg4i5+yIwAN4gQgZIw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by AS8PR03MB7399.eurprd03.prod.outlook.com (2603:10a6:20b:2e2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.18; Tue, 28 Jun 2022 22:14:41 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::757e:b75f:3449:45b1]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::757e:b75f:3449:45b1%6]) with mapi id 15.20.5373.018; Tue, 28 Jun 2022 22:14:41 +0000 From: Sean Anderson To: "David S . Miller" , Jakub Kicinski , Madalin Bucur , netdev@vger.kernel.org Cc: Russell King , Paolo Abeni , linux-arm-kernel@lists.infradead.org, Eric Dumazet , linux-kernel@vger.kernel.org, Sean Anderson Subject: [PATCH net-next v2 14/35] net: fman: memac: Use params instead of priv for max_speed Date: Tue, 28 Jun 2022 18:13:43 -0400 Message-Id: <20220628221404.1444200-15-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20220628221404.1444200-1-sean.anderson@seco.com> References: <20220628221404.1444200-1-sean.anderson@seco.com> X-ClientProxiedBy: BL1P222CA0011.NAMP222.PROD.OUTLOOK.COM (2603:10b6:208:2c7::16) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f08c42db-1497-434e-6783-08da59539948 X-MS-TrafficTypeDiagnostic: AS8PR03MB7399:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0BVYuZ1HuMVYh1xJp8dMuyJD5LL5HNu/xFNztihJqXXmpeVRgGWO444RjU0JfThwaKPZmVOFrQpUBt6TdEZNCIU6/iHYW1TzxesGSEeCbU52uubb9jHTpBgHc/JPSTy9yKPnZUzV6qDQHVaFAPgoMQrrT2vnZ+CUVCdMtwS60DxNiSQGZdZ1zZzjuHrTKU7sxi8eClZc+Lf+Sr9rKrSSOkAZbWhVpnyf9XttUHwqIOmOYePKoM3Ytha19Kssmtuxcr36kFpJRGjlF96dr0QittTC1hbLibADWx1+KdaHgFT9x7tYmR1XNCmIlGASpYDUZxqX8XAX0HvBeaYwZ+QMCbaZniCoVa+Xl3hzLo6iPm1v2jfMNanSewtL8ufEqY49z3r3G1AxwTs702wIw11cqJDqqlAKyB8oyPYLRgvsNeAHx49LDtYc2XaaxMo9giAFWA7TM16FS4tFCboVwza7Rk+lEIhG3SoG5zPIEa9kEhSTD1qlEL4ewTVSYq/pRp03DlgQDjvlWFQW8hUeSYxz0ieF0HqlIkUefFB8bPrqId0EpN1wit6bWQboVYHjYVNCh0wQH/T6KEEzht3u80L8IKfT3G5U+pz/nO+0YKBLu1JRm0CL+Jdx5dmIRwxfA8qEO1Lkm2SdF5sksYuULsey7v6C5+VLvO93Kv0jeXVA4EMlGL41y0FnStOZoqBQCvQ4jHsFctomL5oqkmeKq3fPp5VcxwBCSesPSe23o4YvounKDM9CEC9WsEv4m9D+1Ie+dSzcfYpBDoGUcVxdMVwej3Am3mkOyaK7+smBhIK4OF8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4972.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(376002)(136003)(396003)(39850400004)(346002)(366004)(38100700002)(5660300002)(44832011)(6512007)(186003)(38350700002)(1076003)(83380400001)(86362001)(2906002)(66476007)(8936002)(6486002)(4326008)(41300700001)(8676002)(26005)(52116002)(36756003)(478600001)(66946007)(2616005)(6506007)(316002)(54906003)(66556008)(107886003)(110136005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wr3JTbbGTpUQUrJQNbLByUdkWM3AxwVWj/eSPxCX/a9+6cD9bK1tbbuoimRTGcXCNFk2J1vVXkKc0WLYe+taAgVlbuxPWVZFrqX95q8fEZfYB27xleGXrCcTxxakZdr+gqqMQyI2mxNFlRHNrzAxUJ9x57tNX0hnUyklNIuGtJckuepEllyGO1OdvtntvV7+qOSAfNqASt7/hF13gPxD1R7cxxOd2z7lPH0MJ903SWoBgTTX30cydqpehkxmDL/fmR5Y2jNUP9eG5JMoWIokDpLcJZsTGqPL7xAQ24tGzy+Zhf+zjMSieqGQsD6IXGxB5bNroE8N3RRj9fPDVpHK1t6YloSvLgAhzvYWLI6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LM/x50N8q4Sy2Q5UG7iKIQ8IRWPh35vaWwlhMD8kqfSaHiGSpx83eL+AghQXeZcFJEU6dK7Hq/Jl21jkWsusitGHsHAftj4gY1BrmW3O2GoF6R+ierVuw6whhU48juPfEitFrF5A4BiJLaEGAt6i9eDP0VxTTb1NUU/ek3D6f0a7SQ== X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: f08c42db-1497-434e-6783-08da59539948 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2022 22:14:41.7350 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eFAutiXMoMCuqA/XnmAPNYYmrE3ziTvFtFgz23+R/o4kzXI83OGS/HfzsR9WKMc5kaZwo/UjzhVoPbdJYbGKxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7399 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220628_151452_512710_3F07B619 X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This option is present in params, so use it instead of the fman private version. Signed-off-by: Sean Anderson --- (no changes since v1) drivers/net/ethernet/freescale/fman/mac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/mac.c b/drivers/net/ethernet/freescale/fman/mac.c index 0ac8df87308a..c376b9bf657d 100644 --- a/drivers/net/ethernet/freescale/fman/mac.c +++ b/drivers/net/ethernet/freescale/fman/mac.c @@ -388,11 +388,9 @@ static int memac_initialization(struct mac_device *mac_dev, struct device_node *mac_node) { int err; - struct mac_priv_s *priv; struct fman_mac_params params; struct fixed_phy_status *fixed_link; - priv = mac_dev->priv; mac_dev->set_promisc = memac_set_promiscuous; mac_dev->change_addr = memac_modify_mac_address; mac_dev->add_hash_mac_addr = memac_add_hash_mac_address; @@ -412,7 +410,7 @@ static int memac_initialization(struct mac_device *mac_dev, goto _return; params.internal_phy_node = of_parse_phandle(mac_node, "pcsphy-handle", 0); - if (priv->max_speed == SPEED_10000) + if (params.max_speed == SPEED_10000) params.phy_if = PHY_INTERFACE_MODE_XGMII; mac_dev->fman_mac = memac_config(¶ms);