Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp342144lqg; Fri, 1 Mar 2024 06:53:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVyINeulrtE2BJkbXrHybeLTd9/zdI4cOin8L2eau2Yn8n/VnIvD/EeFNSaAPUzJrfPGAvxMvU0sd/NthjyWays1qbw8sDMbHOmoX/NLw== X-Google-Smtp-Source: AGHT+IHCM8AnZuHT1QH8Fkpsgh8jpUR7Q6rUPzDi1N0k2ECbLJVzbOSQAqzV/XW1FpI5hA+7PeO6 X-Received: by 2002:a50:8dc9:0:b0:565:7733:3c58 with SMTP id s9-20020a508dc9000000b0056577333c58mr1388627edh.4.1709304802492; Fri, 01 Mar 2024 06:53:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709304802; cv=pass; d=google.com; s=arc-20160816; b=SA2r0ENTBAktX1m9ZNZrXittU0HASxmhdkeKI3gx2s3he0agV7B8fMbJWmis259BFm ph5dNJDE3HZCPbELLmPsLGqtmZPi1W1b6jgVrYTTCPewlZWK5LK4PrdX7GrmwsMDhqvC /8ZU9GLgPtxBLgFNmnIsYjngdG0OjrLCXECZ7/Vo0l+B5WmGZL/I3bEBZVLTxEK+HzTS D07faD1fJjLMedbtLpbPZv02i1tWaHdAF6iX/kdaV3n37Tpx8xCqFsOWnyF5re9cJn5K q9VgtynPlGaRzOV+8hgzmGvVBrzDjnwY2s+im5MnySpfgoFIRoZ+yUOGVClh1uw4rdtK ZJEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AT6eJ8FbJZluUkWHSqnmRN5cAns9tdGhp7LuFi8TsNQ=; fh=ZiOXkw3f/uhDHfv5tnbDTBIOxdGvmj1wAueCQoHDYpU=; b=nU+ccF5HPjyzQ4pDkoapdb5m0uYR1imLHVTNFoRe6n+wBOa5wMeDhx4nMuA0mHlvkg Ykqk823KGYN50a5N495Zlv8ttXda+hVTSlvoOHswBbOeCS+NZfpyehnNkx3YZCqgnlkh 2BeZF1Ex+EcHLnHNHbP5eXRMGqcLk37N34Kr4esbtDpA2PLDi+GU8fB1h4SlBp8cvJRE QnzL7UqsGCx9ZpywFyncBUMgr9hsY22YVwKQn0y6MSi8mc2e0OAt2Q8zBTuUJo/w0LZM lyBwoivnVIo5eL6vTxp0IlGUXkYvfr8SygEL+Pl+yAMC+31K6k6bjyj6yrwL54e+S6Mb mdEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Tx+ZUBH7; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-88586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b11-20020a509f0b000000b00566b4680c5csi1094789edf.472.2024.03.01.06.53.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 06:53:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88586-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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Tx+ZUBH7; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-88586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 19DBC1F2609F for ; Fri, 1 Mar 2024 14:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 179893A8F2; Fri, 1 Mar 2024 14:53:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="Tx+ZUBH7" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 73EF93A8CD; Fri, 1 Mar 2024 14:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304792; cv=none; b=BVwJdlKL6nIGHV3k0LuxRw7qkNLaWPH6BRPSIN9e9Hb/y0DeGCpL6W9Yu93cHwukEL+1YZYD34YYBIRb6jQc494qNu9hyJZFICAJp4TZRjZ32B2fhTIzEvuxPFwp9kjKe2AAcIqMfRpE4ac0SPagu1yDTUgiWaZnRFNE+MORmHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304792; c=relaxed/simple; bh=0rqGQ/mRJgX9xBzI0NJWqEosNzR6bw1GqPDwNMKQOaE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VEwcUMhWKfGYXFeT8uQgpf1VrgWFUVw64p4xuiFl9nlvFC8bVy8jfObdUt3BT5yzncXrkdgH78aStohVKVBDtk1haW4haX02IVnzHjsUvCN3Yj4eSPOa7tVh9MwTLrCw1giBFdbPE1Gr70GTyDcgBi3TmxqQoHojX6mXpB/q5aM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=Tx+ZUBH7; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AT6eJ8FbJZluUkWHSqnmRN5cAns9tdGhp7LuFi8TsNQ=; b=Tx+ZUBH7Yrwr3nkLWDaTULDEJ3 ICj4TMORGivcz/D+6rFRv5mH5+pZsJVWjKSi5ZPeIcRFRHmYaLc+JzlCMZrOrlB3fjOJjUkhB8B/t 4Ia2B54fKKGPXCUbg+S+KtQfXYxCVeqlX/u+C/XSSrbCyLCS8F5OVkEqqT8zK/qZPBLgAOQLg87ow Z+S536rHtuUMoKK/WlknGstZu/xZlOfdpLWHVhfVDFD3jBPasQ8BmYHdUadVSP1B/TivhV+g6F3bC QNpfCRso7XT9B6QB5nFN4fLMsNWefbIsWTMmgBgso9/EMjj+MJErx+ngaTpu/MLwKlKYrWUhLiDHk nGA4riYg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51756) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rg4Fv-0001jG-2K; Fri, 01 Mar 2024 14:52:59 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rg4Fu-0001pG-Ac; Fri, 01 Mar 2024 14:52:58 +0000 Date: Fri, 1 Mar 2024 14:52:58 +0000 From: "Russell King (Oracle)" To: arinc.unal@arinc9.com Cc: 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 , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Bartel Eerdekens , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next v3 4/9] net: dsa: mt7530: get rid of useless error returns on phylink code path Message-ID: References: <20240301-for-netnext-mt7530-improvements-3-v3-0-449f4f166454@arinc9.com> <20240301-for-netnext-mt7530-improvements-3-v3-4-449f4f166454@arinc9.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240301-for-netnext-mt7530-improvements-3-v3-4-449f4f166454@arinc9.com> Sender: Russell King (Oracle) On Fri, Mar 01, 2024 at 12:43:00PM +0200, Arınç ÜNAL via B4 Relay wrote: > From: Arınç ÜNAL > > Remove error returns on the cases where they are already handled with the > function the mac_port_get_caps member in mt753x_table points to. > > mt7531_mac_config() is also called from mt7531_cpu_port_config() outside of > phylink but the port and interface modes are already handled there. > > Change the functions and the mac_port_config function pointer to void now > that there're no error returns anymore. > > Remove mt753x_is_mac_port() that used to help the said error returns. > > On mt7531_mac_config(), switch to if statements to simplify the code. > > Remove internal phy cases from mt753x_phylink_mac_config(), there is no > need to check the interface mode as that's already handled with the > function the mac_port_get_caps member in mt753x_table points to. > > Acked-by: Daniel Golle > Tested-by: Daniel Golle > Signed-off-by: Arınç ÜNAL Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!