From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796351453; b=EOMi0YfTz/Wz/+dhIZt/f/oMpF1MBH6wSxxX2fNI8s+D2ue/o7he3+qjQC7jnUQ2hshC iBbG2spI9ek54ZArixsHm1pgj6uD/feroeRa8Wu/F6UEFSzOQfiZ1bItoxhlyhy52eK4E ddeIKC/aLI9PWQxt/atL5xN+mEc5Mf2gj6DLR3jzMf/IgaOMV6AuWO4zzZPwMmVfVj7Vs vzE8LAjkicVwNDYuYAQzePdvRdCOOWR6QJs1jrkSmWOKZs85QbJ1U10wgmAmXjne5pDCV +svvsESZjmTgU4Fa9rZAgJFlM+B8F0BxYEBuKuPztNNbzWZ6gelzWvdKKD61fch+0OQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796351453; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: 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=BzodzFxTvzaSXmc3oH8tvw/lIPezt3hJmB3OAHfRkBCjR4ZTDddCzusmbGsW39q2g9OT xSyEYz2MvKEYPX8W9SzVIeFxk/DAPwffaj3w4e8uja9Vw+GmArH1kkXZvDit8kE+AaNor u712Rb5SkeHSHdHEBqJmWlL1jmFQDe7DDz5p+X0UPIP6JSFo9lW61o9rqpeDR7fCk+T5u btVyR8hhlS4dmie2AWdiDNJ/oZ7ZuhJJTofp9G1umF+jAB7lh0Bjgj8HJg3uxauybf68f vQ2h506ecfimlXJqKlEozgWGZ6GxLBu5I/EHQBcG+OMamHig5yUxZvzIO+2eRnLwZ/A== 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.198 Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (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 35851606A32F for ; Fri, 4 Dec 2026 02:30:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 35851606A32F 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-f198.google.com with SMTP id af79cd13be357-93f32050e72so118853185a.1 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=h0SduFZUh7xvJx7bAZEq7QwKaB1rVxFnqLPJKqlnYDHKj0AfsOuINDoEIgSM54RwJd IIx9GVYaoe6GZVc5A3psnzivsQdCujcosiJ0eIDcqZWnmDZ6Kaainnyzdfu5P+ND0Ivy zPY01ZrOyp1zHbYZqdsCVwI3A+Ms7dBc3NL2PYyfuzYvhsb+dAaliz4S4F0b+i7szDe4 4jcYcxSwNAQW9n63EbVuqB2vw1e72MwHrpxkOMYjVqTrhyT7s4JeAA27tReVhR671/ny xR/QN88NvaDm9Ql96AuplxljYg+jIwqJazPOf326m/4/VYft/vAYw1rODX3TW/PLv677 jsRg== X-Gm-Message-State: APuU4Z/mreBIhQVMYT4bl7Y5kdrrcXGOjtiNKIqMYZCSTsTXwetKBejb M7IUdUPz1Cp74cty6KKDOIeHY4bRhdAV3Fb1ZTjmnUxE2VFJ9CsfurbE9eIrBXzzqN92OsQXga9 paoPtXS6xlg== 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: netdev@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.