Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp228774rdh; Tue, 13 Feb 2024 15:19:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW9Y9EfqLQDv3kJDRGQs0iu0HXNLknn6IVvbuVOZts4Q//PNDlsuwkHf+CwYeEyHQAvWoJsG8Z12pxGqJzFYfmml7EPjZvlUlzCOB4HbA== X-Google-Smtp-Source: AGHT+IHI2V6uJ1MtZc0r8wUrXFVBJUNJ1wXrIR4Nszf3mEzWvPAVB5fvdcLbqUwcjcv8wUQ08Wf8 X-Received: by 2002:a05:6402:88c:b0:561:8918:9f5f with SMTP id e12-20020a056402088c00b0056189189f5fmr729570edy.24.1707866393425; Tue, 13 Feb 2024 15:19:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707866393; cv=pass; d=google.com; s=arc-20160816; b=sB65Be68tImKe2ncW/Q25/6k1y27xzHN9gd+/zaZjTpK+KgJhO5c2QJNoIM1ehC+53 sVGtjRLM40kKrS3X+v5/ufKHA6oL7R0xzuEus8bmvffdVmtTAHZ3oymu6TIKgdF/17aY N1RQaEjyrP3Snbmd2NOio3cJTff5JeNYgddMI0tO9qV07MZgop5ZlAkmyvKXaOCTlRzV 7ppAvU9fUyuQVlq4JDH8b7cP6ynCSWbJd5v8p9gkFrI7I2NPEA/mK0dPXwAn1w3lYMxr Ab8DR3/T9Lyqo6TZ6jxSSbk2t0wD4HCElb92fHF/h3lMRnw/w8+GMtS6/rlcFcS85uGE z69Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=T9hvikodJQ1XcxYQd9NAnEwKHv8sdzqihjO3cFsNCQM=; fh=llx4BmdGp+jLlGAWU7T93ALjcRho2lrVm2uWbnnx4pQ=; b=0yFQdX6Q8LloPTHYgAtrZ4RQc9SER7X0Y7zPGqwy0Wv4kPpHOzeomO+U2aC++Y3K+I YwVjkoCJ8skukNX6I4xxI1MwAfbQhptnH3b4B/7PC1G3uXXjFcSECix4wvwqiqE32ECP KsdWVR3dT5xlxV6GpyFHaNcgo8aSEweeofEz/pO8G8N2/DtOPjJwFRGYuDZpeyFQLkz+ ZYEx8J3IM5wuWojK7ajtmS4gnP3QD+6PIbzFoWAJuNvBBFbsLiQN2gzF4h3jYwbm/VIe zrf06VVvuL0nAMM2iNeXoIarGP92hH6tWKlKbT+FTeDDsSLicZUoOPOylCc/5rVsAmws iZ6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HpOvMUOF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-64528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64528-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCXBHV/YioJs7x2rZaEuFYiNhHCaWxvnfsK2InB82ze727SXafcIyoVzX6cNfLNWyBoKKukN2GpIkMzqJQpncuM23+NRhR5kRdwA7I+HVg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bc13-20020a056402204d00b00562822cbe4fsi113478edb.55.2024.02.13.15.19.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:19:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HpOvMUOF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-64528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64528-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1CF741F21683 for ; Tue, 13 Feb 2024 23:19:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5C5B63101; Tue, 13 Feb 2024 23:19:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HpOvMUOF" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 933E462A02; Tue, 13 Feb 2024 23:19:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707866380; cv=none; b=e8FK9QGxTqr2nxZsidSnu+yQ94HqUDw6RLmeMQC0akGMWTPSSKCWDmAYz1d6l2NGAyOptwYnqEXfCo1FL1gyM/jQ4bJf18ZleYCzo3AD/JmD8iyA+U7LyU6Q+Iw8MltnoARHA0Rg71MQB3S5ooj71tec4XXhTQYqFVm1+HzXDfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707866380; c=relaxed/simple; bh=x8fQ5hx7mIiC4RN3j8BVg4aobkP4aLgUhIvZhdFynBE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Are4OfGuHlRYWFQ+IOdBKKj4GmaVh0DsqT6m+35a8leBfj/e9Nt6TVmseoR8+Mju4nUaGCtfoUrudOkAH0moA5HWPnryZwHq1sQUZzFTvJvgUxaTLyZmh5LKQhISej8bKl/wk1/de0r7DN1XAaxbZr5eNcsdTPdNqk0Ct9gXROs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HpOvMUOF; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dcc73148611so1437340276.3; Tue, 13 Feb 2024 15:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707866377; x=1708471177; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=T9hvikodJQ1XcxYQd9NAnEwKHv8sdzqihjO3cFsNCQM=; b=HpOvMUOFtO0HLrbHT7oP6mzdW3++dRfnG36XjDMGLu1WGtXJQyXqkZCAvPllpmQqjT TtH7iczjYoJQwM1PEwloxCAsGT+Vr8eztsyMlyavROE5ZTUoCkaImRzaBY2wrbckEgIF ghS2LlQi16mSlM/eIdpg1NIx5H6YB7hyMCQ+pj73YPYlreRK/+MLt0sQncX8wEM6XNGu bLmTerFwNadXJfrqLTgz6X5miGQfVr0cL4LLiLZezcm2LOLszQL+UlAID8aS5w9PNkx3 XvTvvh3utFEQc3TJhk66bSAByRALz4fqRguQv7xx1hJUetUNSW9AIBpo8+O/Uqx6af0r Fx8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707866377; x=1708471177; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=T9hvikodJQ1XcxYQd9NAnEwKHv8sdzqihjO3cFsNCQM=; b=Pgl21+Jw3FNy4fM66rZCMnEoGDIpvc2puwFwjsuWoWH1pOaMF4buXbAcd9zcfFS8SV gSEbfIsFiGDO0cLlJZEi+1zhF8c/VaBrn3HsW6bC/D9UJNZWHiJ9vItntqbZVYeifqT6 TtRfxELdVE4UkQOS2nei5GMyFyNhJ3GuQcCjulmfHsfjVAHS7KBekjAYPLJp9E6h4TVC v2jZIF0e2Xddog9ehYEbfOKj5G8qSUDs4c5BGUfqgjkVxHZRh07g/gFjwo5ndDHwT+J4 76oZCODmSlJSZNsgRgH3/29fhPvAQNrlMH5PLeH71/TcWILvojp9UQY4q7dZLLG4AzxL 13IQ== X-Forwarded-Encrypted: i=1; AJvYcCWLKxc+LrhyMfBV6eKa1bsReZG2nuPhLHorOhqsoqmnzSaDTZyRn+DW315ZAc+Js0juSEffTqyDv2/5eg4ZdHNI2Sr5BZHBrOlIVM9vHknxqt3/j8c5wtQofYI+Fn9AEMvwYaO0 X-Gm-Message-State: AOJu0Yw3XaHhM3SUJ2VoAHddr9LBUAnSjj2ON+CRV+yqNIlM+Tiq8Dz1 +qppPabZg3peG/31ARyAC46mV0KLSgjZkISW16CNf68k4PZ/b3hE X-Received: by 2002:a25:6c0b:0:b0:dc2:3237:ee61 with SMTP id h11-20020a256c0b000000b00dc23237ee61mr651326ybc.53.1707866377432; Tue, 13 Feb 2024 15:19:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUyBjKQYH7UIZm5Z8hFQfIee+jyvTuo4wCP4mQWcuCvGI/v/xvFOIb174ewCVExab3uo5Bjefx6dPrjhsVdEq+J+itdQK7Oza5YY1QSfSewfG6iCtZPIZ3aLq8qTSfK0BH8mJ21O36/5L3hAEL8NONvWRExRw/Tok+rv/zldSjV3rVR2R8PSl3sa8Na4p9WDJOMFgDaZN1NRvpqfVMEnyImS1ukLkukEpicP/SYybYRpjBPqOeH4eENb/MqkeNXDmnJZL9YGXJ3sKtg+0fFcqHze5zC5r1snTwHCHDn0OiNrawWzSOxML9uyBT2bNhwUDIxSF1/J1SVaDKwprgxTnVt25YVK/IrW/sdDjdrLEX7uMHSX3pp4VUBZ+bowa4DeIIgHAExIEJ0dE4Bni6EGx843MtuxiPM+glqE3kMr3iNUJ0= Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id bp42-20020a05622a1baa00b0042c65d05e17sm1513620qtb.21.2024.02.13.15.19.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Feb 2024 15:19:36 -0800 (PST) Message-ID: <6db0fd10-556d-47ec-b15a-d03e805b2621@gmail.com> Date: Tue, 13 Feb 2024 15:19:34 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v4 02/15] net: dsa: vsc73xx: convert to PHYLINK Content-Language: en-US To: Pawel Dembicki , netdev@vger.kernel.org Cc: linus.walleij@linaro.org, Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Russell King , linux-kernel@vger.kernel.org References: <20240213220331.239031-1-paweldembicki@gmail.com> <20240213220331.239031-3-paweldembicki@gmail.com> From: Florian Fainelli In-Reply-To: <20240213220331.239031-3-paweldembicki@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/13/24 14:03, Pawel Dembicki wrote: > This patch replaces the adjust_link api with the phylink apis that provide > equivalent functionality. > > The remaining functionality from the adjust_link is now covered in the > phylink_mac_link_* and phylink_mac_config. > > Removes: > .adjust_link > Adds: > .phylink_mac_config > .phylink_mac_link_up > .phylink_mac_link_down The implementation of phylink_mac_link_down() strictly mimics what had been done by adjust_link() in the phydev->link == 0 case, but it really makes me wonder whether some bits do not logically belong to phylink_mac_link_up(), like "Accept packets again" for instance. Are we certain there was not an assumption before that we would get adjust_link() called first with phydev->link = 0, and then phydev->link =1 and that this specific sequence would program things just the way we want? -- Florian