Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp313135rbe; Wed, 28 Feb 2024 23:32:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXfrY3Q7n+WFp6E8nreZYJ+dykhncvEo7u5ecZCrx+iQS+E9mv8b/JkMmthudnXj0shstBXm4rmn6JhXJw5559+JbMFjWRDG3EdYrEy4g== X-Google-Smtp-Source: AGHT+IEsdZJhEt8ZSp5/oEbrk7k0JlKSQBrNUrlwTeEICHFYVdiWOf+nYq75kkWwiBs+HHAIaQfI X-Received: by 2002:a05:6870:c1c8:b0:21e:d8e6:cd95 with SMTP id i8-20020a056870c1c800b0021ed8e6cd95mr1392988oad.37.1709191940188; Wed, 28 Feb 2024 23:32:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709191940; cv=pass; d=google.com; s=arc-20160816; b=Mm/R3sn5ckaJ20JrX6Rw3Nwo67kGgEDHW20fV0H2U1Yi8XfYjAUXyDmd0pSinQGSZ/ PJD9USfeB4zTgERyroTKE+JOUFABgcjm8wb0Gb1EvWqjg1kmWTPlD4DKQXIM3mnlzYsL Pd/3NK2peMI5ajixUmd2AC9TSWud4llZXPZxDJiTv6OC/XEl5uo4SvWipr75WIQ4VgSs G98Z2WSpCAkHKTRcIfwO/Z9YsYGOz0UP9KRE6imNHCoxd2QkSN/6EEiAwil/dsDaLjcy rIDSaHZ4L9bl44U1MunTO0FG0IdEitDAeQzTEM1+uq3O9hmmjyHDB9fXqrJlt+T256gO sDkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=zp3g25JeuYR2V66Ei5s5q+BW/ugjiuni4LeJDlsxyMQ=; fh=39d5vcwUO3w4NX7mpPhdxMotPrUAgFYDpGts1UW2tfE=; b=yDczpCC8v8doTu+u5KmkhOFSQKW94eN2i2CDuwlpAVpLZ+DuUPclahCJKR11Agq8Kd sUnZFxIdpvkB4BBSV9OCQ93ONc0dgfR6NM5PoYGDR0opTrPUMxww3lne5j0JRRlz6VwG 16EeQtMc3Ax3WMmzOsGvA80jnNTpBMIEkqavVKUbJ0G3AWaipl+kb/GqWAiQglo151fY xuUu6GXMJAnocckd0mDlJKDRyYwiJDwUOcgyOgbuXfj1DZqtfXZT5EGtyFqvC7q3CshI h+72tiu/XEaYUI5MnIt7QXHVx3azsuztJgJzM0JjVcushpoS4Iwm4VLVdLxR1S+qdlNf TBIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VBmtnGys; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-86238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f21-20020a631015000000b005d576171e69si837985pgl.88.2024.02.28.23.32.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 23:32:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VBmtnGys; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-86238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 476A4289B46 for ; Thu, 29 Feb 2024 07:32:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5F1747A4C; Thu, 29 Feb 2024 07:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="VBmtnGys" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 661E844C8C; Thu, 29 Feb 2024 07:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709191923; cv=none; b=r8TfFrcvEYtlIm9zV5NhUm/kbsCrkVLyt3kVCbK/cNcwSVK3YrbJ3OE3SwcI2WMGwvHJTZuVRL3C11R+yFC/1B86+tCs6kXy0vHz2WmcZH3tJ63sq923FT8ukK1GZF8Mey44atyvyNogDdqF4TXSa/lkjzx5F72D1o0iiawuZsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709191923; c=relaxed/simple; bh=EHPwMRslysMH/6pBpniolRdwostS5lFMS+gutCk9a6M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NoznthfpiGt/8R3zZayGnNuspEk93gZOki+ubPl4mJYgplMs/2IV3mzSPcjt0UEql5kIyGPL+iV1lHDDfX0QtYwPJOM+yziTq9a1cmOF9NfYllnQG5ebQo2UZkq5CKJ/lZFa5x6Vpe9sSleFrn4lcRcMqp4oKVxJhV2iKnlcRvI= 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=VBmtnGys; arc=none smtp.client-ip=217.70.183.196 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 Received: by mail.gandi.net (Postfix) with ESMTPSA id 19AC5E0002; Thu, 29 Feb 2024 07:31:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709191918; 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=zp3g25JeuYR2V66Ei5s5q+BW/ugjiuni4LeJDlsxyMQ=; b=VBmtnGyszrpBELAenQD0+WWuLUQQIyvFJ2vrZ6e6QFxRbvA3fQKzuL1A06oTATq+i3m0B1 inCMvJTCp1osw/oOxYQAHwqRfCoakwhl3RFwU2Ajk+lfr426gwgdddW09hfH1QvyGgUvJY PUQXhcgSlhv4vb1rxiG2c91hV7yU89QMezJXnNPaQfd1cAvCFuXiXVHINi+XvlNhgeKlQe VpuqeWZCE0hZQzXS+wvPXS3LXy3f2ii2n87bHpZ5zD/y0Wnz+7q3TLQYeBDADBxDvWPCOV cKxY2jLeD7YSd53+9nAZUld+Gcrh/8CJXjkixiV/tvKito3FsEJuv7rNbC2pDA== Message-ID: Date: Thu, 29 Feb 2024 08:31:55 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 6/6] net: phy: DP83640: Add fiber mode enabling/disabling from device tree Content-Language: en-US To: Andrew Lunn Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pavel Machek , Lee Jones , Richard Cochran , Heiner Kallweit , Russell King , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, Thomas Petazzoni , herve.codina@bootlin.com, maxime.chevallier@bootlin.com, christophercordahi@nanometrics.ca References: <20240227093945.21525-1-bastien.curutchet@bootlin.com> <20240227093945.21525-7-bastien.curutchet@bootlin.com> From: Bastien Curutchet In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: bastien.curutchet@bootlin.com Hi Andrew, On 2/27/24 17:18, Andrew Lunn wrote: > On Tue, Feb 27, 2024 at 10:39:45AM +0100, Bastien Curutchet wrote: >> The PHY is able to use copper or fiber. The fiber mode can be enabled or >> disabled by hardware strap. If hardware strap is incorrect, PHY can't >> establish link. >> >> Add a DT attribute 'ti,fiber-mode' that can be use to override the >> hardware strap configuration. If the property is not present, hardware >> strap configuration is left as is. > How have you tested this? Do you have a RDK with it connected to an > SFP cage? I did not test fiber mode as my board uses copper. My use case is that I need to explicitly disable the fiber mode because the strap hardware is misconfigured and could possibly enable fiber mode from time to time. Best regards, Bastien