Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp984979lqt; Fri, 7 Jun 2024 05:03:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+LgDDA1OdMs3ft2ucAGoDko3QAFQ1nQ5vMhTwDWJCYv3Yy9H9AF+JGzcv7PJ8IOWG8a7CJzZzdhNd3IwWwtnCn2N1HvgxpIoW2V4R0g== X-Google-Smtp-Source: AGHT+IHQa823anjvi0hiRoFUGkaUa5sNgCTbktOc0mSQM66E/tsSJmOhwqCqd+L0BU5Hy60ClOQb X-Received: by 2002:a05:622a:1a06:b0:440:13df:3164 with SMTP id d75a77b69052e-44041c804e3mr27784771cf.40.1717761819837; Fri, 07 Jun 2024 05:03:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717761819; cv=pass; d=google.com; s=arc-20160816; b=eXFs2yAkBG/RIUJ1G/uk2qC7QFVleAXOifJCLR5F2CMjJPCgDlEIdpNyN3sD2b1MzK +QphtIl8+p3FPZ7gR1o6+jXfRrA+0ZCpcxtrB5/2k40P5id/WaE2TN2SWwl3TNfCb2Ps JU45CVlJwwbaj9lgUzU6o0Kq9KKPpdVVyjDv+JSghEFEpQ2oQ1E4ZORBpmZ4EtEDTpVD mxzLTyEgEFwW5aKxAu6yP8hvai8r+v25EInxm5g1k61TaHA1RD1Kx+I7N08IBuLyj/sI Z0bwkSHo7aDLaU1kdI65wndY3ML7sqpwNwydwHiuyH7r04P2VPJnCIc4Ryk7r7i3eAj2 f16w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:message-id:references:in-reply-to:organization:subject :cc:to:from:date:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=LgPrrIvuzogswDs8qcXtpkiLMPTlpS3RjRhbWeGhqm8=; fh=tZs145GEaRpRPd94tXd2oOgS8dsYTYmNF2MdEJfhwBc=; b=K4h9r7iTjmJbSKt3FluGydiFmCwKZhAsXy+h6jtlPzR2SYZJj7q8nK52lbcKj+Nu5B zMskDjjbt2bPVJh3CAURT7l0PLN6eyzH6nx37lPNdjaj7VqGxLftC5/cbvRWNEHAdjfb QadxOJwcOgHgkQuCFAURgUGTGcvx6IYnHXGptKQ0daJ3C3YMabl8G9tPWRYhqMuKEpWx ue97azWfcS0fx7rd+Ma1TBJcs4+R64VyF3a+TiwbZhXIM/UpCvMaYKopQrx527aP3sc4 kErXgjXDfn0nvzTfXRE8krZSxqyYHZz82ak8rEpMvptO6H15TW0/XRqjLzh6wzKAG9K1 dMXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=dev.tdt.de); spf=pass (google.com: domain of linux-kernel+bounces-205980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205980-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b17fb0si2220501cf.327.2024.06.07.05.03.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 05:03:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=dev.tdt.de); spf=pass (google.com: domain of linux-kernel+bounces-205980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205980-linux.lists.archive=gmail.com@vger.kernel.org" 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 28E7D1C21D0B for ; Fri, 7 Jun 2024 12:03:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4ADAA1922EF; Fri, 7 Jun 2024 12:02:05 +0000 (UTC) Received: from mxout70.expurgate.net (mxout70.expurgate.net [91.198.224.70]) (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 AFCBD190682; Fri, 7 Jun 2024 12:02:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.198.224.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717761724; cv=none; b=C8NGOJbkY7CXKS2bImhtOKTgX46ZSZxbW2ztHutrUZXH8MF6JJajKNQnI1r6iFiYoejiFXb39rhX5DkNDwOojy2PjkX5QJsxdEbROXxyq9x9egVPRLSHBecUQdmC2jd7WKUF2zo1pLk7Z8DHMCQL0IeLcE9qbPblHhFidKoQMEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717761724; c=relaxed/simple; bh=9ahM5q+SYr/ja3n2M2hkdMF+HWZWuvn6I+naWc5+fAQ=; h=MIME-Version:Content-Type:Date:From:To:Cc:Subject:In-Reply-To: References:Message-ID; b=ISFXAz46oGR2GBRVGZNRPsS0c7NcqMc1WLyrWoCJ1jYkEfSQ/XLYPsB5AeGOb0dN7dXZqk0saIUhn6d7Q2+2epiEHJH7AUhv6qKZaxV6ffiVwUnGVoLwc/2KsAJoNEsFm7UDAF9zd/jyhf85a23/mrQVKkTVgEhFzjzYpuk/T2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dev.tdt.de; spf=pass smtp.mailfrom=dev.tdt.de; arc=none smtp.client-ip=91.198.224.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev.tdt.de Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1sFYIB-007m1k-PA; Fri, 07 Jun 2024 14:01:59 +0200 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sFYIB-0069Yi-4p; Fri, 07 Jun 2024 14:01:59 +0200 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id CC79E240053; Fri, 7 Jun 2024 14:01:58 +0200 (CEST) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 57A48240050; Fri, 7 Jun 2024 14:01:58 +0200 (CEST) Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id D7A483829D; Fri, 7 Jun 2024 14:01:57 +0200 (CEST) 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=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 07 Jun 2024 14:01:57 +0200 From: Martin Schiller To: Vladimir Oltean Cc: martin.blumenstingl@googlemail.com, hauke@hauke-m.de, andrew@lunn.ch, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 02/13] net: dsa: lantiq_gswip: Only allow phy-mode = "internal" on the CPU port Organization: TDT AG In-Reply-To: <20240607110318.jujco3liryl7om3v@skbuf> References: <20240606085234.565551-1-ms@dev.tdt.de> <20240606085234.565551-3-ms@dev.tdt.de> <20240607110318.jujco3liryl7om3v@skbuf> Message-ID: X-Sender: ms@dev.tdt.de User-Agent: Roundcube Webmail/1.3.17 X-purgate-ID: 151534::1717761719-B9ADCD95-00516752/0/0 X-purgate-type: clean X-purgate: clean On 2024-06-07 13:03, Vladimir Oltean wrote: > On Thu, Jun 06, 2024 at 10:52:23AM +0200, Martin Schiller wrote: >> From: Martin Blumenstingl >> >> Add the CPU port to gswip_xrx200_phylink_get_caps() and >> gswip_xrx300_phylink_get_caps(). It connects through a SoC-internal >> bus, >> so the only allowed phy-mode is PHY_INTERFACE_MODE_INTERNAL. >> >> Signed-off-by: Martin Blumenstingl >> >> --- > > This is for the case where those CPU port device tree properties are > present, right? In the device trees in current circulation they are > not, > and DSA skips phylink registration. Yes, as far as I know, this driver is mainly, if not exclusively, used in the openWrt environment. These functions were already added here in Oct. 2022 [1]. [1] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=2683cca5927844594f7835aa983e2690d1e343c6