Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2909395rdb; Tue, 26 Dec 2023 09:00:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IG04P49Wx2fpfbVMTz5gev6iCqfnLjnzwC34SnRs8ca+WF1Mprc9mTUiE3FZDiUgvtTIsi4 X-Received: by 2002:a05:600c:4443:b0:40c:7a7:d00e with SMTP id v3-20020a05600c444300b0040c07a7d00emr4348527wmn.49.1703610034921; Tue, 26 Dec 2023 09:00:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703610034; cv=none; d=google.com; s=arc-20160816; b=1FlE1MPM1gwczMp7VH36h9piga3usxdg3rxufjUybMIyN+vXzP61j6CzkLcWwrZCDh xIXh3CtxD5vjozMjVuzouQqDmGXVpQxaUkiCjTT8ZztiX5jeW8sNx2xuvLa9SK9KUWGt r+MawwiEd/kWCKZg+R3dnCxDx7igtMHQsLVZ+Iyp8zyDGuP9z672go1Lv9sbWuDqbzo9 t8ElaOH5VblJ6eve5TJfe7OcmxgWJcEqZAyUVXoxP0V/4kPKYb09KbdTx8OuZwpiGiAQ 9Rcn6S5hDnYDT/FBW/AyyY1mRQcwaZOBrtP32ov0JxAeEpZhRZhhQlAH1F6HVzWg8wMs PvwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6oO/nH2dTlO47uvvrA8XfEBvbbkUP87KpzAhKCfS8Po=; fh=+uKtAzeq/CAT8OOsgEJY96D8rn5PEokhgz92J6SmYok=; b=YQy0+eleKcZvJRaMPL3UQkh5pSMADqKhxRXAy5QM310Kiyk+TLBhLjI7IurwHPS7S/ rXwGilQIL7MaFeuvd6sTKXVv4DDZZvVrBqO776/72Dne0iUAwBfucqTX97Xuzg2ksiO2 SnepZsRs2aRYVZCP8xbwklqgaGwzXJB7Uu/UiyxMSv1HqEPC8m0asXE8kheLFKebuKUf 6NUmPrzwNII9b326kJJEmjDQuLq86+C9p1hfokTlUiVkq/CIncda/fasvoUCULR5Apk0 uT+9XwmPLkDMFvvmh7mcLrqwR1zdpxIFVM+RjPa/lnaVZCGZmXAuwjk+5etsb5s2EqQx IAjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=X51qlWeZ; spf=pass (google.com: domain of linux-kernel+bounces-11587-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11587-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ey20-20020a1709070b9400b00a26e278d5b5si2619772ejc.423.2023.12.26.09.00.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 09:00:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11587-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=X51qlWeZ; spf=pass (google.com: domain of linux-kernel+bounces-11587-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11587-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 19DD61F2197D for ; Tue, 26 Dec 2023 17:00:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D848C4F89D; Tue, 26 Dec 2023 17:00:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="X51qlWeZ" X-Original-To: linux-kernel@vger.kernel.org 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 51A364F880; Tue, 26 Dec 2023 17:00:20 +0000 (UTC) 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-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=6oO/nH2dTlO47uvvrA8XfEBvbbkUP87KpzAhKCfS8Po=; b=X51qlWeZpB7a5LmhCmAqMgit9V 5wlCoUbGKhz50VybZ0LOPHKRcANysy7WkeNOqBgGsqdH4sQlA0nBX5N5Womnn9mdtDNWVJ+19GBUA 5hNmsXpSFhp0iJ6dj4WSf4I69dbtZgzu5Eshaa7bJOpmpVHOl22E4cdtfowmrnUmTacc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rIAmv-003meD-Cw; Tue, 26 Dec 2023 18:00:17 +0100 Date: Tue, 26 Dec 2023 18:00:17 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: Jagan Teki , Heiner Kallweit , "Andrew F. Davis" , Florian Fainelli , linux-kernel , netdev@vger.kernel.org, Michael Nazzareno Trimarchi , Ioana Ciornei , Shawn Guo , linux-arm-kernel , Fabio Estevam Subject: Re: PHY issue with SJA1105Q/DP84849I Design Message-ID: References: <20231222145100.sfcuux7ayxtxgogo@skbuf> <20231226153055.4yihsmu6kiak6hkf@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=us-ascii Content-Disposition: inline In-Reply-To: <20231226153055.4yihsmu6kiak6hkf@skbuf> > The code which should have prevented this from happening is in > phy_attach_direct(): > > if (phydev->attached_dev) { > dev_err(&dev->dev, "PHY already attached\n"); > err = -EBUSY; > goto error; > } The problem might be dsa_shared_port_phylink_register(): err = phylink_of_phy_connect(dp->pl, port_dn, 0); if (err && err != -ENODEV) { pr_err("could not attach to PHY: %d\n", err); goto err_phy_connect; } return 0; Since it is not -ENODEV, it just keep going. Andrew