From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 4D0893603EE for ; Wed, 8 Apr 2026 08:54:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775638466; cv=none; b=AUU5jldxY0omsM2EGG0il9uwiAfPeavXycHKoeJR0RLGcF4S6q8naFqU77R9cpW8dCeccMS+7sWjKSaTz6rUkA6TP9GBmbjm9vmslEGukb0asTWxwp/xPhOT07UpVRH8D6pGOqlOGAgBKPT/v7mV9HDZAIO9/Zmzwlj5wZeWL48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775638466; c=relaxed/simple; bh=Gq9JVzqu3RbrK+ulSwPbxKbAFCkTQzPJ7QGif9weboM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DDtgxdZUfTjTo52yZySNjLbWdn9cCairk0gi/GNviANgdlFbhA8def+biZ+61cY1Aor7cfmI11+m6xEnbs9HLNwDKuVXyXsXU67aOBizxy1xKVwLEXUzbysWOFRx4S74mTayAYKJMZGSRh9sAPwOdF3Xtfut0+SQ+Tz4iP9aj60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Qasi3Efz; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=A54X/sdq; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Qasi3Efz"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="A54X/sdq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775638461; 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=Gq9JVzqu3RbrK+ulSwPbxKbAFCkTQzPJ7QGif9weboM=; b=Qasi3EfzFWmlNYTRGMm52znQXhVZRUdR5h6+bsGnSSVOnIj2A6jXj/4XVCEiiAtjPoRzLP FVOhaxjFKXwFHNTHXXu3tK1Koq4ApU3AcIt2xK1fXVtITA+M1MWDpyPkOo5LXxw7nMGK9E mvripzfahFWhIs3sshPd0ZPcY75kWdc= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-407--BkrxZGFPc-bSUga9Pk3Hg-1; Wed, 08 Apr 2026 04:54:19 -0400 X-MC-Unique: -BkrxZGFPc-bSUga9Pk3Hg-1 X-Mimecast-MFC-AGG-ID: -BkrxZGFPc-bSUga9Pk3Hg_1775638459 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4887d32788bso47568255e9.0 for ; Wed, 08 Apr 2026 01:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1775638455; x=1776243255; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Gq9JVzqu3RbrK+ulSwPbxKbAFCkTQzPJ7QGif9weboM=; b=A54X/sdqxCbh5zE6bd0JMH6I1k8ER3/+w4ZyVn6S5wHmyyJ+ECvdXV+ej+nuxG4sZz neQ4eY9JaBA1SWG8DoKbVeesxjc+e341PCqiEJKpRVGV4hwTfGjUUAHRK1v+uzaRUDzj /A7KdsHl85Hkq+pFwlLziPZAN6nZNh92czJSFPB7rYEyJNQTK6zDoixNl4zX95hM9qz1 xxKrQd0CNZHDznBmMOWdVjpHly8DDH/fIjneoXQIUvu7LPnVv52DnLd2yxOcHuq8wlOp 1O/eXw2JdV7CNHrYQyLPg/XpQzZxFxUbTmObLjKJsF6pU3D+zBkyqSrSkPj7hJKQzPWU JxZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775638455; x=1776243255; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Gq9JVzqu3RbrK+ulSwPbxKbAFCkTQzPJ7QGif9weboM=; b=AXI81HfMeFY++m3NV/x75JkY9F4JfTj4nqJN4F1Xj4WpSSC0BTKm62bpTho9HJJm6C NjCI8xa6ywrypa8vUFXUOAJHCU2USJ/nYUiZ92Sco4xvN4SqdL8x886saN7M5BNUrWe8 dD5TYgzCQ34UafhYWuZSRtndYlfWeZdoTm7Y3tSR6XCWf0RktaWq0keaypdSzQVVaii3 Eq+1eKDEC45ahmabiHavF8Ex3UJjCSPdWrFqzmRw7C0kXvVrv6qRD98be2jQIkBpQSWl K2uHXxPwH3yEyHXAXBvi6IwrTn+UyiSSwoPDxVPgo5hMwKEulrWb+b+kEIZ1fGk04eo3 65UQ== X-Forwarded-Encrypted: i=1; AJvYcCWsdKN80h+g2dsdviXRcE1sUoJkEdRwpTXzaM16gaWqX3OiMRqKXxKXzo+tQYU2G01c90oB02p03gCfurE=@vger.kernel.org X-Gm-Message-State: AOJu0YyF7T+IJ/BenrfY+T2cg3zuWOp2SdfjlCTqf7oB03dCoWA4Ba2y 5tV0uknvnrafBWWFoGUZ58VW7khYBCzLCNbeqNB5zUVirsTeuvNUAYrrQCx4X2vcYqG4T/xNf5e UWQyoUxANdNdaC8FgW9axfWSe7bfZBzzT/YampejvHgaJhiVCIWulG1rMxC9IVFSLraRBNT7A8C pl X-Gm-Gg: AeBDievlgaBBvF2CqrFQPebHsWNU2haaTdkggSXSqcz/Ij5xlN6IvMg9qlT8YDNtn/J gb48JviIZIANNzhksDCoHSr1wDCsGC0KaNREUmkKRdNyZx9MuRsf+fyV9BtfiYCgC9uDZK49mHV YlckGc9j3Bz5xr4AUXugKmrhnlW0LPVs9J1IxJnnVttNAwIjAZLXwBcnmC9KqByNnr5SAOO0vY4 4mNUkWuE/gFZBlzmnONzkympv5LFGDQlFhkuxVll7HEq6DSwXxypoJSPcpvfoSM1VZN1Sfbzm7W W6uvHnUlBV1snCqichlX7o67ow7eOJAwMfezyO0qrsM5d4QzdDbQf2DXAGkYugzQiKYiy5ZaYAD PPM9yMWqoH5TpLgl/nhut X-Received: by 2002:a05:600c:5292:b0:485:2ce2:4c87 with SMTP id 5b1f17b1804b1-488996cd77cmr300561125e9.4.1775638455355; Wed, 08 Apr 2026 01:54:15 -0700 (PDT) X-Received: by 2002:a05:600c:5292:b0:485:2ce2:4c87 with SMTP id 5b1f17b1804b1-488996cd77cmr300560825e9.4.1775638454876; Wed, 08 Apr 2026 01:54:14 -0700 (PDT) Received: from [192.168.2.83] ([46.175.183.46]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488c76c6205sm15808305e9.1.2026.04.08.01.54.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Apr 2026 01:54:13 -0700 (PDT) Message-ID: Date: Wed, 8 Apr 2026 10:54:10 +0200 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: [Intel-wired-lan] [PATCH net] ice: fix missing SMA pin initialization in DPLL subsystem To: "Rinitha, SX" , "netdev@vger.kernel.org" Cc: "Vecera, Ivan" , "Kitszel, Przemyslaw" , Eric Dumazet , "Kubalewski, Arkadiusz" , Andrew Lunn , "Nguyen, Anthony L" , Simon Horman , "intel-wired-lan@lists.osuosl.org" , Jakub Kicinski , Paolo Abeni , "David S. Miller" , "linux-kernel@vger.kernel.org" References: <20260213141651.2231124-1-poros@redhat.com> Content-Language: en-US From: Petr Oros In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/1/26 18:29, Rinitha, SX wrote: >> -----Original Message----- >> From: Intel-wired-lan On Behalf Of Petr Oros >> Sent: 13 February 2026 19:47 >> To: netdev@vger.kernel.org >> Cc: Vecera, Ivan ; Kitszel, Przemyslaw ; Eric Dumazet ; Kubalewski, Arkadiusz ; Andrew Lunn ; Nguyen, Anthony L ; Simon Horman ; intel-wired-lan@lists.osuosl.org; Jakub Kicinski ; Paolo Abeni ; David S. Miller ; linux-kernel@vger.kernel.org >> Subject: [Intel-wired-lan] [PATCH net] ice: fix missing SMA pin initialization in DPLL subsystem >> >> The DPLL SMA/U.FL pin redesign introduced ice_dpll_sw_pin_frequency_get() which gates frequency reporting on the pin's active flag. This flag is determined by ice_dpll_sw_pins_update() from the PCA9575 GPIO expander state. Before the redesign, SMA pins were exposed as direct HW input/output pins and ice_dpll_frequency_get() returned the CGU frequency unconditionally — the PCA9575 state was never consulted. >> >> The PCA9575 powers on with all outputs high, setting ICE_SMA1_DIR_EN, ICE_SMA1_TX_EN, ICE_SMA2_DIR_EN and ICE_SMA2_TX_EN. Nothing in the driver writes the register during initialization, so >> ice_dpll_sw_pins_update() sees all pins as inactive and >> ice_dpll_sw_pin_frequency_get() permanently returns 0 Hz for every SW pin. >> >> Fix this by writing a default SMA configuration in >> ice_dpll_init_info_sw_pins(): clear all SMA bits, then set SMA1 and >> SMA2 as active inputs (DIR_EN=0) with U.FL1 output and U.FL2 input disabled. Each SMA/U.FL pair shares a physical signal path so only one pin per pair can be active at a time. U.FL pins still report frequency 0 after this fix: U.FL1 (output-only) is disabled by ICE_SMA1_TX_EN which keeps the TX output buffer off, and U.FL2 >> (input-only) is disabled by ICE_SMA2_UFL2_RX_DIS. They can be activated by changing the corresponding SMA pin direction via dpll netlink. >> >> Fixes: 2dd5d03c77e2 ("ice: redesign dpll sma/u.fl pins control") >> Signed-off-by: Petr Oros >> --- >> drivers/net/ethernet/intel/ice/ice_dpll.c | 17 +++++++++++++++++ >> 1 file changed, 17 insertions(+) >> > When SMA1 is changed from output to input , U.FL1 (input) is expected to get connected but is still disconnected > Similary, when SMA2 is changed from input to output , U.FL2 (output) is still disconnected Hi Rinitha, Thanks for testing this. The initialization patch itself is correct. After boot, the PCA9575 register is written to a known-good default state and SMA1/SMA2 properly report as active inputs with the expected frequency. The behavior you describe (U.FL1/U.FL2 staying disconnected after SMA direction change) is a pre-existing issue in ice_dpll_sma_direction_set(), not in the initialization path. I am addressing this in v2 of "[PATCH iwl-net] ice: fix U.FL pin state set affecting paired SMA pin" with an expanded scope that covers both directions of the SMA/U.FL pairing. Is it OK like this? Regards, Petr