Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1647560rdb; Thu, 25 Jan 2024 01:49:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBKy04UiO+pnier6viIAW9kknMpK+zcsG4ugBanPil+BZbX5U8oMgV0SudaDvhLNfGe1tM X-Received: by 2002:ac8:5ccb:0:b0:429:8c90:4d2b with SMTP id s11-20020ac85ccb000000b004298c904d2bmr1440143qta.69.1706176199043; Thu, 25 Jan 2024 01:49:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706176199; cv=pass; d=google.com; s=arc-20160816; b=f9srjYywhn4+/mHKMb9x24qGV3g0rOIiiSp8yDvw7MIpFvxAJpGcGWdZxOVK3N9xt2 0B2Qm6fxDenpuiDafN0PYhff2xibuxdfymqhgwiKHYK0sSyakrzv98kpZvVoLkA9guz6 zJ4YqikrvOugVzAbsqfA/laqyaqxFBHuICaz6bAsLyMAUOQyiEPNw7NcUtwsXmPn0Okj HhKFJMZMfs9LvQjBXUEIfbOUH/7OJPeTUIFRVll5AMiitG0Jq8+42JfsPvbnuIrUuKCY lt9kPYwRJyFq5ugM16+AwS9LGJTNcM8CeFBl8c/N+49SSVu1TpwzDEl3pF1Qj5iJ7mHF ztuA== 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=4spzynnZLzSXpZvD9M1NQEXqK2+5EzKlAxOSnoAYggE=; fh=bK4NxFY8DD70icQifrEhPFNqx4LiV/aRXZsgD/k21BE=; b=C2EmXRtXgTOKYV/sdVUffYfLALMCF0D0RUckokwWImp/mQDSxwl4QmOkY3DIOB2OYm e1VUXzmzugZeVrGwp95KLA7MopN5BzxKIpFaaOWXYqk5JLAlaT/Frgq1Jb/tbOi4KYlA vApR9bNGEfvZKjXntfDUwNj/BQ9TOhT94MXovvuL378tn5p4ihYaP9+9YpVrAU0a6Sw1 ybwsXMjWiBiTiEAo9wdfdMYU0Eyu+LuA7Pf+U3FOFJYhUtF3ZxM+gWMgJuzBK71ms2G2 /k6tETnNrjdXWufMj6G7ejGaEL7ymXvsr1xbTXWVhpeAcSqw8HKbut6AktoIaXtA5vjO obUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=Xv9q88tE; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-38327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o13-20020ac87c4d000000b0042a3c36f800si9351325qtv.457.2024.01.25.01.49.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:49:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=Xv9q88tE; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-38327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C85071C20BC5 for ; Thu, 25 Jan 2024 09:49:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEFBC1CA90; Thu, 25 Jan 2024 09:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="Xv9q88tE" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB0021CA81; Thu, 25 Jan 2024 09:49:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706176175; cv=none; b=bbcZ/0j7wIRUDOtF3xwuN4XvP2g9zQA6P4sz6Y9Bj7LXWbRkvfT2TQG7qZbS4DKKsfT/1ebkGMvP7KXuFL49iRbVk2YlGhDX7zoi/aXHwClCOSu/jcsLmLKutUzTijd+f28g3G/oYaKx8toNHfl80oVcNYc8GFXr9G/MDtc7dRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706176175; c=relaxed/simple; bh=JodpOLAPwczmZ4a6VZMuVd4PZAjoFOUygw/5EqMMmN0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=o0uEholvpEwy6atden4mMixSpSaINeiJiw4ke0dXpd9Rt/YwlRfO+7Qo6LOtapsurMow3ufJVXSqCT8VbsqMkxKnhjTkpWtOgUWUdyYqVYOPTmU0hwSCmMDxndn7yBpbQ0lJ86HpLTTSlHmTC2U29rgRHyczzkikrJFD5jfWVME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com; spf=pass smtp.mailfrom=arinc9.com; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b=Xv9q88tE; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arinc9.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 8B8F14000D; Thu, 25 Jan 2024 09:49:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1706176164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4spzynnZLzSXpZvD9M1NQEXqK2+5EzKlAxOSnoAYggE=; b=Xv9q88tEhpXwElHUBolfyOODB7HD7meHv1GR2s55oHM7A4OEjiWUqYzOFj8ciEdBzd44cO 7DtlbABxYZ2vHFqx+n2QG0dgRKKIXy+iQ3u5T1hYXKi3aILRBwZEmjlN52xaLEikx9OOkS I2rRUS8pg6d7naLcCKGAVX8UVslHemONhgc8dqjmMqumdHGfhwQvyofeXBUOod+b54YSah bh7oM53p3eRvj8tG/acVjEZ2+A5lU3yYfebD8Kj2YnwUOPUyPjfYBq7vmhCh07/AnwYwtN ulNUGSGzpXLZXyALFeCVlleyTW5HYZdDQqImSNiGSJBP9NAkHB3jqZVwxsmcGA== Message-ID: Date: Thu, 25 Jan 2024 12:49:19 +0300 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] net: dsa: mt7530: fix 10M/100M speed on MT7988 switch Content-Language: en-GB To: Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: John Crispin References: From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com On 24/01/2024 08:17, Daniel Golle wrote: > Setup PMCR port register for actual speed and duplex on internally > connected PHYs of the MT7988 built-in switch. This fixes links with > speeds other than 1000M. > > Fixes: ("110c18bfed414 net: dsa: mt7530: introduce driver for MT7988 built-in switch") > Signed-off-by: Daniel Golle Acked-by: Arınç ÜNAL I'm wondering why we manually set speed and duplex for these interface modes in the first place. I don't how it works for PHY_INTERFACE_MODE_INTERNAL but, at least for PHY_INTERFACE_MODE_TRGMII and 802.3z interfaces, phylink should already supply proper speed and duplex. Arınç