From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 BC2D916849F; Mon, 7 Oct 2024 08:29:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728289788; cv=none; b=KTaiOVvJKsiXaHRq1mqiBcK3GZjtsSTtae6d8No41A6io2FdwV+z2zyGFYoXlLbI03jtvQGWq4AaBthAl8sJJOrzR4Ckt1msj5rYaVfwO/w7cnDIgZ7bFSStVUFy2eO3zU/QKeuYuHsJ7MmpZVtVQR/teAc+/QQlr3fmA2iD+jM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728289788; c=relaxed/simple; bh=Klf5ounytGs2pXxrEmGPa9MQhQ1AxIMmfYRSj2ytswE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Xw9m449dlYqL44D4es6pcZ9icqY7om2ksYz8NsMzsHyh07O3cDsW1NrArD3IvE59MPQIYgn0Q+/uS94OhvOMmRLOG0fL6+I+jSj+Gil1dIIqfX2tArAP6afqbhxo5GQTRko3rsB9mjjG0lKluwsMzlynPWxV2NTqnW0Ry/UFC+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=bX4DeVpG; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="bX4DeVpG" Received: by mail.gandi.net (Postfix) with ESMTPSA id C4B7260006; Mon, 7 Oct 2024 08:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1728289778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mJKNfHc7055rC/FvjwJstSqwovUh7KyChDgu1RZK00w=; b=bX4DeVpGOTU5P/cyyrerv2kzqbGZRmanFHCu6bGKJPhVg/KQDERYtTZ+6K2bxrr3yxAY4J kEP0aU6KnjQ+L2RZFEGnqtArUMaG/CqCuLpxglp8eJ4dFaVGQyO1OR1e/R1WmZDHQ4PLIa zRSLYwsSm/jT2jomOyfEc87rpeRaBLExQjiGLL/LHVtrCXLD/jRI/KcBqaFFxcRptjGgRt 8EHfVA2NQrIp5PSl1OkpHkkKlKNifLA2Kh4Ki/LC8vHkoC9WC6GlNzLeruIe/1cfZdT5o4 LSVDZBm9b5tOM+CE7IcRqCIytc1th6utFKU1s0xAVvC6KG1wbP43ffl6n8CWbg== Date: Mon, 7 Oct 2024 12:27:20 +0200 From: Maxime Chevallier To: Andrew Lunn Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , Marek =?UTF-8?B?QmVow7pu?= , =?UTF-8?B?S8O2cnk=?= Maincent , Oleksij Rempel Subject: Re: [PATCH net-next v2 3/9] net: phy: Allow PHY drivers to report isolation support Message-ID: <20241007122720.2e1eba76@device-21.home> In-Reply-To: References: <20241004161601.2932901-1-maxime.chevallier@bootlin.com> <20241004161601.2932901-4-maxime.chevallier@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com On Fri, 4 Oct 2024 20:20:10 +0200 Andrew Lunn wrote: > > +static bool phy_can_isolate(struct phy_device *phydev) > > +{ > > + if (phydev->drv && phydev->drv->can_isolate) > > + return phydev->drv->can_isolate(phydev); > > + > > + return true; > > Reading Russells comment, and the fact that this feature is nearly > unused, so we have no idea how well PHYs actually support this, i > would flip the logic. Default to false. A PHY driver needs to actively > sign up to supporting isolation, with the understanding it has been > tested on at least one board with two or more PHYs. Fair point, I'll reverse the logic. Thanks, Maxime