From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.197 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796351454; b=fVn0LfSVwQniDLyHLKIIqGcPbSyVuResPvY9IqLrTxtUtpwmG+UFQ7eCs+9AUpUUylza cxfBVAapfSewD1hCd5YQMh7xKBHOpciS0VbkNTVMUiiElhLPMenQUJOcVC/S8QVFRaqKO W9yIO1aBGIYRub52lTFfrXnGCssPfeT434VGISCbYJ4WPg+O0L6ApRHx0ju2cnM6cFImR HxViIePnz+5mBujAZevDfnHYVj85EisLmP0rTJ6ixwZJrQky+b9zrQ1t8ZXQQH7KoiqEz rwHn7CSJrTlHoEV7ovgn5i7rA2ZiMymraqOHmV1T7iJTSBheJ5QKh8uYoxIR8uztH5g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796351454; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=6HpeZTHLg3nVqQdYoNXpB5/XiC+ZWqWTEtZneSCsSKM=; b=XbHQjQhfTrfrr6obS7+FDnwNdOmWoCeO+rLNRTDi/RADZVVhy8IQIDMUlosZIuuTQJMn LFs+wKwEWKBqwPB89SU2XIZbHQQ/WJnqalWPG13PhZWHR60BkylCkUziak6becEYDwsFZ akkcAxSzbovIO4WUaKBpLyaBIkEVdz6EOfdJFqN+btBaxV328SPzXmkDtRMJOG3X8Yt7L +GShLEREaVJlTOrY7MEZt/5s9PsL+glCKb6XanWKitxzQkEzNpKOBgfhm1aKRY3euw9Fx Pt13T5bEGXtU54yI52XeVLOzH6NtR6+zrB/m3Z85oCZ/Arq/zv5nRJi/QpTp4mtuUSg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=GP358rfx; arc=none smtp.remote-ip=209.85.222.197 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (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 2D662606A32D for ; Fri, 4 Dec 2026 02:30:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2D662606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=GP358rfx Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-9495dd0f07eso94743885a.0 for ; Thu, 03 Dec 2026 18:30:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796351452; x=1796956252; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6HpeZTHLg3nVqQdYoNXpB5/XiC+ZWqWTEtZneSCsSKM=; b=GP358rfx9nj3bvza7ueT/hCKYndKIG8QiW8KQ3F66qCZSJwisnslcwyejiQad98ezj VNc9EZNrkOEF+2d+0qGQDtR/PBvJ/X9MZDSJsgmoKVeMX3i3fRv9kUaytZ/W0Hl8vWSw oaRI0+Gc0s5Bsr58Xs9eAJiAmzK7ZPQpKdQX/ncJZ9LVy8Gczbo8KVRfJYmnl9zlYvoc kTG/W1p5LnxTuFzV0KPSDIXsMeY/MToOaYTbCg+CiRs7TxywAeoZcQQC/tmCuzrSA1aw 6jIYrXvMJOyRq9pRF3nI2kN6/zYW6Z25epYOR7KkeWkQUy8QMIyhhCyVgb5QFqgvJYB8 6FRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796351452; x=1796956252; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6HpeZTHLg3nVqQdYoNXpB5/XiC+ZWqWTEtZneSCsSKM=; b=x1zBZqv3XWADFa7uGbba25p+sRk1t0/v2q7M0K+bnLcHzdbXD+HL+VgA4+Te/u9ng3 xaZgOOfgrEkUwwmKY3UyNrK5UOP4+HCmnl06Ef5uH3alUSQ2mQUbc9cpvY2l1+agdajb 9beCV7qQy3KlHdArXWJo4YvABBmsfSEyJz2IZpql0vYV/KFlyT/szLQobZXQu15xgqBw djcJTpm0eTUCverm0dHccAxmxYULSkFApulw3mCiZvZr/4usP7W15oyAN6kKaTrOMdaK 4iG/Xm4H49w0cOtsCHkIJAtr1Z3+pgFT124c0/p5NoleQruKMqeqbSRAK8DedBmnrSwu smZg== X-Forwarded-Encrypted: i=1; AL+hErE3k7x3pd+rglxCqtEnlybYt4vOix08gfHgiJMSiXDYyv3r3A8+N60zzZUriGJijoXF3rsXTKlbKDeFr2E=@vger.kernel.org X-Gm-Message-State: APuU4Z9G1d4gbeRDMAwpHWE119tgjPLzdNlJE1rUedRUZFwNgVl4EwoB kW9voLLmM2FHarwHFgq8K62r8OyOvq4FE21wtyeZLTMlLNtY0rJEbKqiBqbyzSv4dINt8g199IZ HOX+Lt2Cyog== X-Received: from qknyc43.prod.google.com ([2002:a05:620a:5eeb:b0:947:82e7:f23b]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:620a:404d:b0:949:a9b4:bd11 with SMTP id af79cd13be357-94a82f2b75cmr97917585a.73.1796351451937; Thu, 03 Dec 2026 18:30:51 -0800 (PST) Date: Thu, 03 Dec 2026 21:30:51 -0500 In-Reply-To: <20261127-b4-cs7542-mdio-v4-0-0e37fc0c47d5@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261127-b4-cs7542-mdio-v4-0-0e37fc0c47d5@gmail.com> Message-ID: Subject: Re: [PATCH net-next v4 0/3] Add Cortina Systems CS7542 MDIO controller support From: willemb@google.com To: Fil Dunsky via B4 Relay , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King , Andrew Lunn Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Fil Dunsky via B4 Relay wrote: > Add the CS7542 Clause 22 MDIO controller with bounded, sleepable polling. > The driver is independent of the pending platform series and COMPILE_TEST. > It retains the firmware MDC prescaler while enabling software-initiated > transactions. > This revision acquires and enables the APB input required by the binding > before the first register access. The managed clock remains enabled until > the managed MDIO bus is unregistered. Clock lookup or enable failures, > including probe deferral, return before touching registers. No clock-rate > or MDC-divisor programming is added. > The APB source was established previously on Almond+ by changing APB from > 150 to 100 MHz while AXI stayed at 150 MHz and comparing MDIO transaction > timing. The binding describes that source and allows clock-frequency from > mdio.yaml; the exact prescaler divisor encoding remains unestablished. > Validation for v4: > - The actual probe passes 10 allocation, map, clock, registration and > cleanup-order cases with GCC/Clang ASan/UBSan. The pre-fix probe > reproduces > an MMIO access without an enabled clock under the same helpers. > - Native ARM driver=y object and exact Linux 6.18 driver=m module compile > with W=1 and KCFLAGS=-Werror; existing configurations are unchanged. > - A read-only consumer probe on the running Almond+ obtained and enabled > cs7542-apb at 150 MHz. MDIO CFG stayed 00200001; all references were > dropped, > the same OpenWrt boot continued and its watchdog/settings were > preserved. > This exercises the consumer/provider path, not a full live bus reprobe. > Earlier v2/v3 full independent builds, binding checks and RAM PHY > read/write > results remain recorded. The transaction logic and firmware prescaler are > unchanged here; the old hardware matrix was not repeated. > --- > Changes in v4: > - Enable the required APB input before accessing MDIO registers and keep > it > enabled through bus teardown. > - Clarify MANUAL transaction selection and preservation of the firmware > MDC prescaler. > - Link to v3: > https://lore.kernel.org/all/20261126-b4-cs7542-mdio-v3-0-35739a0f3225@gmail.com/ > Changes in v3: > - Use sleepable polling in the MDIO bus callbacks. > - Describe the experimentally established APB input and allow the > inherited > optional clock-frequency property. > - Remove the unused private mii_bus pointer. > - Link to v2: > https://lore.kernel.org/all/20261123-b4-cs7542-mdio-v2-0-30465e831853@gmail.com/ > Changes in v2: > - Drop pending-frame state after Andrew Lunn's review. > - Sort Kconfig/Makefile entries and retain Andrew's Reviewed-by on the > MAINTAINERS patch only. > - Link to v1: > https://lore.kernel.org/all/20261123-b4-cs7542-mdio-v1-0-626d0a0e3b4d@gmail.com/ > To: Fil Dunsky > To: Andrew Lunn > To: "David S. Miller" > To: Eric Dumazet > To: Jakub Kicinski > To: Paolo Abeni > To: Rob Herring > To: Krzysztof Kozlowski > To: Conor Dooley > To: Andrew Lunn > To: Heiner Kallweit > To: Russell King > Cc: netdev@vger.kernel.org > Cc: devicetree@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > Fil Dunsky (3): > dt-bindings: net: Add Cortina CS7542 MDIO controller > net: mdio: Add Cortina CS7542 bus controller > MAINTAINERS: Add Cortina CS7542 MDIO controller entry > .../bindings/net/cortina,cs7542-mdio.yaml | 52 +++++++++ > MAINTAINERS | 7 ++ > drivers/net/mdio/Kconfig | 12 ++ > drivers/net/mdio/Makefile | 1 + > drivers/net/mdio/mdio-cs75xx.c | 126 > +++++++++++++++++++++ > 5 files changed, 198 insertions(+) > --- > base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f > change-id: 20261123-b4-cs7542-mdio-ec44e757e824 > Best regards, > -- > Fil Dunsky Does not apply cleanly to net-next. Please respin.