Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1355039lqa; Mon, 29 Apr 2024 06:27:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUP3vHg2HxhVM/qjmMWByXLb0XYTYuoq+HA9RblVlccbeg1g+sYNxUVAdp59E/neayi/P8xO1fHiAbIfbAcMOSUuJkumOc8zab1Rk2d4A== X-Google-Smtp-Source: AGHT+IHqRunsbZeXQW4BJ7aHhuBy+XivGaOcuYcfxY9Is2TJGNjux7oyTREoscqFCSFxdbI0+ELn X-Received: by 2002:a17:90b:3117:b0:2a5:2f48:1eba with SMTP id gc23-20020a17090b311700b002a52f481ebamr5940504pjb.13.1714397262795; Mon, 29 Apr 2024 06:27:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714397262; cv=pass; d=google.com; s=arc-20160816; b=wuYUCZJ4MKU0eiFaJa6EcBSuDaYNVgQjovHIzQkqyYYjHaEKER0S5+9ujVn/8PRYFB oZaaOkkKnFRg3V1OdtgJ0DivRYUrs3q550puqUamilGngolUgdmF0GBKXV9QsA7p7Xy6 685dkXii9z6pw9lwVZvgMnyN7xAmh4i/2fN2H/lDrDU3A0aGh/bnElu4FYfyxXvIwnDI +46oR5T0/5iQCMZ8bg9bCrNSv6IS2lPmE2N8CbPFZpgplX1N+odtsVb57GLoMaTGc3HD 9mP5uiCUWG1G/sZhB7EsZ2uPfHnfGvpeyeYn1h4Z9V49G+SrnVUzBFTz9hpDUo7Dy6Ul n0hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=8MVhRe8G79LvDZ3usBPXPwC4vS3hYNB2ai5wwNsHxlg=; fh=lLWliBydJcMmEFLyxQ+Z//wAbme96Vp93OLLKXdaeKU=; b=TRrn6HIeZiME8eF0DMsSDcpBKy0JXrsCW2rQIU3eVSco36bYbleauxATy33QAsBlA1 ru9i9k2exevQqHROzlVxExO+xTWqUzYRpxgTfeRs33Nqv9gcTi1FtST0VDICYl78b6sG XMkbb/z/fVSqG1kXMDZbQQlbz4Ju8I+2xDV7viARF3iGvpStTKlD4bI73WtNlE9kh6/U xKsKWKjbHFnoa32M5S7aaIPVvs4A2HJI8DMTCJNIcAotMDszzSp3MLI6W1irk1a7ZW49 cgWjLFGiSrEey2XNhxDbOcZNQzTlf4GuRC/64ohWVwlktudRTeoApjS59aroC8DsF/ov xNTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=bOSOhH5d; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-162295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id mh6-20020a17090b4ac600b002b117520218si3451731pjb.13.2024.04.29.06.27.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 06:27:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=bOSOhH5d; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-162295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 87C74B2AC3E for ; Mon, 29 Apr 2024 12:55:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 178F676037; Mon, 29 Apr 2024 12:52:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="bOSOhH5d" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 45C7F56B86; Mon, 29 Apr 2024 12:52:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714395160; cv=none; b=em8z2AvztmLkfYQoTnL725b6VxVNynXtDH0dZMM0X2qlo+zSQJQ3n8KNmgFNlL1jK4Tpi4Ao0YH8Y7/i0OB74+v5qlINE7IkQq+Buo0WpUQxw+LPdjvLlU3V38/ss9Au9r0Acfkj/xxhJkMmu4Nugq4nsO0pHD0bp9QNYzzxjsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714395160; c=relaxed/simple; bh=sOroVgqC/w1tUucj6tNKHsi5HT9K5C19JpFpvbwP2V4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hAfmkiw60TH1mCn5Juv3+QzZLfyzXxW+zIxnaRTCVGJjCm8J6w+ergNafBAzZ+Kj1y/fW9PDChetK5TU4vJpJqK0Rq1PvLYU2PeAWYrVVByP4pa/21QNip8ZAwHcF4dsBJpj6IWNbphUE89+jbfq2eNGIWaqEi36zQEPdXrKwAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=bOSOhH5d; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=8MVhRe8G79LvDZ3usBPXPwC4vS3hYNB2ai5wwNsHxlg=; b=bO SOhH5dd3HJ9bdS2W3InhsYvFumXuNOIk210c0R7CGcAgdwia7ZQxS9U0T712J6f1SPW58SvZViFcx ulqo6nmkewY4g4yX8DmOHv2Iv0O99FpDG0QgzmavM2LzMihf1rHVSymgIbymFO1vvqVbdn7xbVoe2 KZ8dKQyEGyQhN7I=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s1QUZ-00EFfK-WE; Mon, 29 Apr 2024 14:52:24 +0200 Date: Mon, 29 Apr 2024 14:52:23 +0200 From: Andrew Lunn To: arinc.unal@arinc9.com Cc: Daniel Golle , DENG Qingfang , Sean Wang , 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 Subject: Re: [PATCH net-next v2] net: dsa: mt7530: do not set MT7530_P5_DIS when PHY muxing is being used Message-ID: References: <20240428-for-netnext-mt7530-do-not-disable-port5-when-phy-muxing-v2-1-bb7c37d293f8@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: <20240428-for-netnext-mt7530-do-not-disable-port5-when-phy-muxing-v2-1-bb7c37d293f8@arinc9.com> On Sun, Apr 28, 2024 at 12:19:58PM +0300, Arınç ÜNAL via B4 Relay wrote: > From: Arınç ÜNAL > > DSA initalises the ds->num_ports amount of ports in > dsa_switch_touch_ports(). When the PHY muxing feature is in use, port 5 > won't be defined in the device tree. Because of this, the type member of > the dsa_port structure for this port will be assigned DSA_PORT_TYPE_UNUSED. > The dsa_port_setup() function calls ds->ops->port_disable() when the port > type is DSA_PORT_TYPE_UNUSED. > > The MT7530_P5_DIS bit is unset in mt7530_setup() when PHY muxing is being > used. mt7530_port_disable() which is assigned to ds->ops->port_disable() is > called afterwards. Currently, mt7530_port_disable() sets MT7530_P5_DIS > which breaks network connectivity when PHY muxing is being used. > > Therefore, do not set MT7530_P5_DIS when PHY muxing is being used. > > Fixes: 377174c5760c ("net: dsa: mt7530: move MT753X_MTRAP operations for MT7530") > Reported-by: Daniel Golle > Signed-off-by: Arınç ÜNAL Reviewed-by: Andrew Lunn Andrew