Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp435227rdb; Mon, 29 Jan 2024 06:56:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGI8HIPKywUEjMKoJbw5KqwjO9j8N0LW3pPo1r2PEPe8yu4uKL6AZMNresq6zTzl0DuWYH2 X-Received: by 2002:a05:622a:1213:b0:42a:5456:c993 with SMTP id y19-20020a05622a121300b0042a5456c993mr6654197qtx.107.1706540209774; Mon, 29 Jan 2024 06:56:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706540209; cv=pass; d=google.com; s=arc-20160816; b=xHqBpC6EcGdhZ/6YJBZApZ6hPBWtkTh6h88hDtFfYJ3qoFMPTUZb9UNoxb7Z3vwAmf c9H6hAPP8pLTjSHWRiTZN1wtmGZ0j2pi+5nlITxK5/g3jfqPabVTezZzao1rcVg3ooGN PzC8syh9bQxcTckrfr7UdDwwuoi+QvcoyHMvseRSAX9+KQCoo5v1+qSZBDnp21Og8W9U MZHcxEH09KIW3wsWoMAolLr6d9grh4xnwe2+iuAuQz4mT4DRXbi8JQodxO/01Veq3v1V LJhMU6dXJd7owNbRClHhFcVeDqbp3GYq3TNVS83wGgegJCfV/zhNgV37GkUrwa0QTKge jxmg== 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=NAJkJkcPwG8nuRAAgJpfIK0vVFsBkG5KrzaQLnD/SnY=; fh=F76xuoNq3osF+RphbB/cWUSKcg5A8xuf9PC9gXgXUMI=; b=GdF3mDZjLLhoiCLAdY8BAbwXFzsQKzHZwpX9lSFD0qIkawwJtXMtqRf4r3jU77kG/l CFe57Uf6DVov48tlgwy9kTcKufNRp3z3eTnrLrHjhAg+IiV91PaqvnbRtTm88YDKmxgT TQDXik7Z0+ZX1C1M9VkoN1kIKVW89/Nj4aZYZpdccpqOdPfXT2ib3KBJXnIFg/0/Qqa6 zZBc43ebg8QwwANoFtZONA7+eL+rY4V2xLC5JaGaPyTbLYb1wZocp5f2FRS1EY7AgBh2 AOARl30vnvLj/wB3Uw391OgJBMGKImPQf/enerLGW8S0fk4+xjLdEvI1p6+oY6lV4olD YLFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zq+PBRE4; 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-42944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f12-20020ac859cc000000b0042a721fb14asi382198qtf.84.2024.01.29.06.56.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:56:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42944-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zq+PBRE4; 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-42944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42944-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 607BC1C24C23 for ; Mon, 29 Jan 2024 14:56:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03D8A1534F1; Mon, 29 Jan 2024 14:56:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Zq+PBRE4" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 901DD60DEF; Mon, 29 Jan 2024 14:56:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706540199; cv=none; b=L2g/8QPcABCjk//00pO9wxXcN6vrFa5cltxqXvvGKJFaYQtEQJYVZIDMmrSzOmbjyybzMVi51tTjhsSFPz9HY5KMoryTCthonwxf0PuGtJfumFQSPSVKtlaLPsaLeuS8SIuBhAo3ruzenmTzISgNuORPCy1MLHwwueKLUTyWk+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706540199; c=relaxed/simple; bh=kaaVpI7LDaG0uH0fkT3XOQiB7JqvFksV/AM/Syz+XVI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PNpb3tP6L6rW1yNItqpUSEuRaGPKVIqidiAkThISD9c5SsXTH0nNVKtaVpeGzM0mQ/WXo8ecxbIHH9+TbxvJeDC6ot3t9FJ12cbVZe0G3Va2qGY9gNhXtfyRd0h8ZPJRGLQYwcmkvCePnsTMgWU9i+wq1unVuphyK6zBwlWThmI= 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=Zq+PBRE4; arc=none smtp.client-ip=209.85.167.45 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-lf1-f45.google.com with SMTP id 2adb3069b0e04-5110ef21c76so1785137e87.1; Mon, 29 Jan 2024 06:56:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706540195; x=1707144995; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=NAJkJkcPwG8nuRAAgJpfIK0vVFsBkG5KrzaQLnD/SnY=; b=Zq+PBRE41tf1vYgoM3IBdJUziIGE9wdjEGuZZMQLbYaV/xPWzPNgcfY7fWTBQRk4zk MS7MQUzWavx30ygoTbcomXjdTdkdnDK0lbOMFNSOC+Jge3QKu3NtgMGhkZakX/D3+0Mg GS6yd9mAQ0ryDzXSA5f8JbJbDWBCWBeSTzcTnZkThmuErWDhEp06azJ50Xh2e0uVWa8G k0VcgBYs+R4o5MfEDjBfPm1c0m5HCDEYQzQXvPMlwNSCuU1EVmyU9XjI73bP9Rv6boeO fQ+22zSwF4MByA6ZDbH7eC2YLxawNGCHgJgsDUFTG0XXta5WDZ4W8iWDWdoKo9R7phF2 ImPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706540195; x=1707144995; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NAJkJkcPwG8nuRAAgJpfIK0vVFsBkG5KrzaQLnD/SnY=; b=Ty//+Slnr8Y4Em1L6KeGxzjiUPJI5It5FNavBFmWQBt3sWbNlU7BgKnn1U7XMhlSF/ SeqLWMH5FszW7Jbs3zA27jx5oHJtfLkUVir6TZTAf5odm3Phu/SxI8n4ot+EVfCkOE9d Y7Gimi5lcDxX9OKb18A+jYMUPKwBsLMticKQBa6aAxAEykZ3/saTA1NmJo3EWTSf573Z a2s79jSbJhGzfD4rXuZT5154THlu3YSjQXzdzgDFUvn+H7v+r2PHQkq87sQ5wEM8fSql bcIHMCAhqQAIBuCDjThtKmQjWOvz/REft8YaQm6lAXNt5jm8vP5YdzX1zuDr+P8PBMOz iQyw== X-Gm-Message-State: AOJu0YyTOyO5y/j01hIYmvS0fJUJX4Q+0xOoN8kyxuVGVzenSmkxsRNn RcJkWrP3uahb1Kj7dUfY1EfWhmL8ZvhQRj8LfOwCWlqQRHBG/KSm X-Received: by 2002:a19:7506:0:b0:510:6e7:6999 with SMTP id y6-20020a197506000000b0051006e76999mr3854595lfe.45.1706540195125; Mon, 29 Jan 2024 06:56:35 -0800 (PST) Received: from skbuf ([188.25.173.195]) by smtp.gmail.com with ESMTPSA id h14-20020a17090634ce00b00a35a11fd795sm1561216ejb.129.2024.01.29.06.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:56:34 -0800 (PST) Date: Mon, 29 Jan 2024 16:56:32 +0200 From: Vladimir Oltean To: Luiz Angelo Daros de Luca Cc: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Alvin =?utf-8?Q?=C5=A0ipraga?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: dsa: remove OF-based MDIO bus registration from DSA core Message-ID: <20240129145632.d2mu6vbwcqhjpyty@skbuf> References: <20240122053348.6589-1-arinc.unal@arinc9.com> <20240123154431.gwhufnatxjppnm64@skbuf> 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: On Sat, Jan 27, 2024 at 11:23:33PM -0300, Luiz Angelo Daros de Luca wrote: > > > IIUC, Luiz made the original patch for the realtek switches. Shouldn't > > > we wait until realtek registers ds->user_mii_bus on its own, before > > > reverting? Otherwise, you're basically saying that Luiz made the DSA > > > core patch without needing it. > > > > My findings point to that. Luiz made the patch to optionally register the > > MDIO bus of the MDIO controlled Realtek switches OF-based. So it's not > > necessary to wait. > > Back in the time when I wrote that code, with the phy_read/write in > dsa_switch_ops, the OF node was only required to associate IRQ to each > port. Until my patch to register its own mdiobus driver lands (I hope > that happens before the next version), the port status will fall back > to polling. I don't think it is a critical feature but I'll let the > maintainers decide. ACK for me. > > Regards, > > Luiz It isn't really great that this loses IRQ support for Realtek internal PHYs, especially since Arınç's commit message did not estimate this would happen. I don't see why this patch could not wait until you resubmit the realtek consolidation set and it gets accepted.