From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 234F8301035 for ; Wed, 22 Oct 2025 08:10:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761120605; cv=none; b=aqnlGJ0+j0iy8CyZBuNCFY7P9OYHmNqJnsIiT8I4G82pWicdwrzRrB+4+jlgo5tK7HGnWs40iugSCAcBTrSZeDkFMRPnQsuDaV2U0XynU9NzPXzv1be+EjrZTFCO/q2OgxZzX2h4j+THhPOe7t2TzmdDD7x5bqYX9Zlt14qNTbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761120605; c=relaxed/simple; bh=Ist7iXsFS/EtIeLfo+26/9ri6j+gatskDLyPArpudyU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=awzU5xrwRNEHedmRmb662h5NPYalGiS3rlHel6oMBhHjeGQqtPINlLdnrfcSVQGfNdiftsOg7vMCXvpgVoIU8o5J1zoXDcUtcjx5yMElwWXfJXtDJlMgyAxgqMTFmkcN8BWnPEYMQvGU2gWXefwVrPohKMIpeBbtOXjjXdeTnvo= 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=0KfuQQMD; arc=none smtp.client-ip=185.246.85.4 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="0KfuQQMD" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id CEFF34E41273; Wed, 22 Oct 2025 08:09:56 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id A53DE606DC; Wed, 22 Oct 2025 08:09:56 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 2F51C102F2357; Wed, 22 Oct 2025 10:09:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1761120595; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=eFCQ4jx45F1FYN8BqQ6y7HUaiF9XH7IuNi4lw4uwUHU=; b=0KfuQQMDRPIv7aFraJgEJgBaBQp4xDq6zkX4ez3L0k0oTa8lzTT3LExxbsvZo7zW7YoJeh xal0jqVWdMtlSuOJCWASzxDHrXsG+4obIOuGcY9GIqSoJ6fnoZraeUXfl0Ki185YKh1IYr s9EiapCGt/7WWh8FvEQoE555NnTwNPOQwmVSo/+RPY9xyFzL1eX1ltoZ5zCGdZ7R3wRpJ+ exy1Hreb6QP9sBwCS7vEjR5pIN8+/cZGAY3U8cItUS4C+3FyCpp7BiVfKmbFxj1mohERxT AS6+M9Umc0+8noHgeC//ZAY5Rw5GrhTjUdQFjRSgQUFLLKU64GJYUTKZeRCVhg== Message-ID: Date: Wed, 22 Oct 2025 10:09:49 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 5/5] net: macb: Add "mobileye,eyeq5-gem" compatible To: =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nicolas Ferre , Claudiu Beznea , Russell King Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Beno=C3=AEt_Monin?= , =?UTF-8?Q?Gr=C3=A9gory_Clement?= , Tawfik Bayouk , Thomas Petazzoni , Vladimir Kondratiev References: <20251022-macb-eyeq5-v2-0-7c140abb0581@bootlin.com> <20251022-macb-eyeq5-v2-5-7c140abb0581@bootlin.com> From: Maxime Chevallier Content-Language: en-US In-Reply-To: <20251022-macb-eyeq5-v2-5-7c140abb0581@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Hi, On 22/10/2025 09:38, Théo Lebrun wrote: > Add support for the two GEM instances inside Mobileye EyeQ5 SoCs, using > compatible "mobileye,eyeq5-gem". With it, add a custom init sequence > that must grab a generic PHY and initialise it. > > We use bp->phy in both RGMII and SGMII cases. Tell our mode by adding a > phy_set_mode_ext() during macb_open(), before phy_power_on(). We are > the first users of bp->phy that use it in non-SGMII cases. > > Signed-off-by: Théo Lebrun This seems good to me. I was worried that introducing the unconditionnal call to phy_set_mode_ext() could trigger spurious errors should the generic PHY driver not support the requested interface, but AFAICT there's only the zynqmp in-tree that use the 'phys' property with macb, and the associated generic PHY driver (drivers/phy/phy-zynqmp.c) doesn't implement a .set_mode, so that looks safe. Reviewed-by: Maxime Chevallier Thanks ! Maxime