From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.82 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795113882; b=lVQnKkwT/gTfK2tzZ/3wKY9FPBVuZO0XRI7F509vjp9OI/OZj63tGz0+iAIFC2VGCuD5 jzPPOxV6mMCdVO2NsMGSvh0KyyTjjcLe7VVfXkTziPwjIpIWXlQygtVP3lUHSR1GOwLeV zSwZeKrsnSy5MNCUcrnVXfAztMew0/NgfFGAUTflR3HlXbZ/Veh6yz+dQVdRa0ZvFkymB BCOJ99jnGDv9x744JqUfwtjt33vtAEPfm4WvG8ippJhvBotS5WMHQlA2GbV5BgCsjDpzI onQ9YcO9aWUoMeEeAUiqQnBUruluHy17ZRh/h5ZcQ7POYSkp5nHTpxh250/XxBGr95A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795113882; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=2H2ujk4pMkofjrrxTD/0OLd5M9zgZ4osSGOPOf/44rw=; b=02SayW3l8Ovv7ObhcW/7N6bvW/gYbKeiDBuaCipa5y7Mm6dlcSAHxid6OczdvqKBeu6W Xf5BBU5TYTYrh1hD0lNrPC2oeCRTgPSbjL/7MR44uRvK/fzGyILGsczysZnNx/fckpnjw lvU//lH0jrZihSFh+9AnZN4nUPC8bQbX/up3h0UbuTILgz9phQQEEelA9H+GPAoYrLMaE CuZ/75zLdCC8RkDVzUw4x94NUzWFvMgFc/U0d8vMTHCsunPr4dlfFOMGBtXUBu5acc4Yc Y+1KkY0mOuWA76K6PA/2FSTRVE/XCaGpfyPWCsMYIMR//yG0nlg+NF1wvQSWi2+2Luw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=APIUpFI6; arc=none smtp.remote-ip=95.215.58.82 Received: from mta1.migadu.com (out-82.mta1.migadu.com [95.215.58.82]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B807F606A325 for ; Thu, 19 Nov 2026 18:44:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B807F606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=APIUpFI6 X-Envelope-To: netdev@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=/kMkRCy9H1vl6y0EZSX58RectQkIJBsV5pNvyHexP54=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795113879; v=1; x=1795718679; b=APIUpFI6O+EsWur3vIqBq6FHT4j6Lftc/879eFNEb9HY31mw15a5es92FyE2I29zBBOzF229 8I/dgnFyfFcIDrpEmXe0OaxQWGYeFy8MBX5yDgXIVRbc7Z7idJIbsv2RDSwelgllEod8gk48hvk vphidaFCoeu/tA7zO61X5YjA= X-Envelope-To: netdev@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 2db01476e0a08c7e; Thu, 19 Nov 2026 18:44:39 +0000 X-Mizu-Trace-ID: 2db01476e0a08c7e X-Migadu-Flow: FLOW_OUT Message-ID: <890ef941-0c52-4e3c-9fce-70b11fd1b198@linux.dev> Date: Thu, 19 Nov 2026 18:44:38 +0000 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v3 3/3] ptp: ocp: support the WiWi revision 02 Time Card To: Ahmad Byagowi , netdev@vger.kernel.org, andi.shyti@kernel.org Cc: andrew+netdev@lunn.ch, corbet@lwn.net, davem@davemloft.net, edumazet@kernel.org, horms@kernel.org, jiri@resnulli.us, kuba@kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, pabeni@redhat.com, rdunlap@infradead.org, richardcochran@gmail.com, skhan@linuxfoundation.org References: <20261116-wiwi-v3-87afa10a8-0-ahmadexp@gmail.com> <20261116-wiwi-v3-87afa10a8-3-ahmadexp@gmail.com> Content-Language: en-US From: Vadim Fedorenko In-Reply-To: <20261116-wiwi-v3-87afa10a8-3-ahmadexp@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 16/11/2026 18:20, Ahmad Byagowi wrote: > Match WiWi 2163:1008, subsystem 10ee:0007, without a class filter. > Resolve WiWi devices against the static PCI table so a dynamic ID > cannot substitute an unrelated resource layout. NetTimeLogic uses the PCI > Revision ID for incompatible interface changes. Revision 02 identifies > the LitePCIe/MSI-X interface; the Xilinx subsystem ID and FPGA build > number do not identify the register interface. Reject unknown revisions > and check BAR0 and the MSI-X layout before accessing FPGA registers. > Do not probe a CoreList or require exact versions of individual cores. > > Report the full 32-bit image ID as the running firmware build. Derive > signal and frequency capabilities from the supported revision, not the > legacy FB build-number thresholds. This ID does not identify the boot > slot. Retain legacy version reporting on other cards. > > WiWi shares the peripheral resource table used by the existing Celestica > entry (18d4:1008), not its PCI addressing and interrupt scheme. > For WiWi only, translate peripheral offsets by 0x02000000 and interrupt > inputs by 32. Let's not do this magic. If addressing and interrupt schema differ then it means another resource table. If there is a way to make it flexible, let's do it compile-time only. Use aligned 32-bit UART I/O and typed XIIC platform > data, sharing the EEPROM list but not casting another controller's data. > Do not expose an unvalidated second GNSS UART or PPS output source. Why it's not a problem for ADVA and ART boards? > Keep the external SMA PPS2 input. The PCI revision identifies the host > interface, not optional board wiring. Use hardware selector values for > WiWi DPLL routing; preserve the existing behavior on other boards. > > Enable the three UART and XIIC inputs during probe. Reject attempts to > arm a timestamper or generator with -EAGAIN until the timing gate write > has been flushed. This avoids relying on FPGA replay of a pulse caused > by a userspace request made while the gate was closed. Why is it a problem for new revision but not for the older ones? > > Do not register the WiWi SPI flash controller or enable its interrupt. > This prevents the driver from exposing raw MTD access to the golden > image. Reject devlink flash as well. The update format and controller > support are not validated; read access via MTD is intentionally lost. Is there a process to actually enable flash upgrades?