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=1796351453; b=xkHE0XAWApZfDLPI5GShMJeb9iECZrvRkNpkWh9qVUo/PTHYA3apSdyGnSjKrGuoQhId nJ7stXGs3RieJoDYbmZ3z7X8KAwaJeo8kiN7gPnE5p6weI1QVQC18XAWzTdJe7RxqluJR KIeY8/UZT03/9md84DH8pBWuJ+HGO95MKdtj1FkxZvAXtKM0bjIvyAXxtb2QePVx4jWRS 7BRx2JBKef444jebsO0EYv7p5bodCP6S9q1wnzJ4LDPbWTrImP4zrt9C2LHJml7p8QPEh XSjdz9zph8A1jVXAIIi5Wa8haqh24c84DQeJZ75gJ915zn7bGryigt9jiRNV/oDjGMg== 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-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=tiAizFLcmajddYyB1nRKnlFO4Gmo8V+nOELTGvGcpZFdHxu5xfBU9+VlLXpL8/EgclIJ P651F58Ec7UzbxGmc28dAXYAYgKb6RFNSuyrJ5fKxuU3SUq5cClfA1xKuqpYei7jxLqN2 WvjLd29YBCcpuRAh6W2m1UwT3gGCLyjqMc3H7jJ0nA361wJGc0MFfiz9fM/z4POkZKcwa FTAIZBLcc3336kj1rhGh+SbksMeJ7J1hM7cnm4HGomWRcbR10Ickv76s3wz9lH1mI+Yjl A1MSfMHgN3XT417mkgYf5/qaAUEKdUCRiMznQRTlgzPy6WASJE5zzPUfpqBCN6fmBqg== 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 2D5D6606A32C for ; Fri, 4 Dec 2026 02:30:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2D5D6606A32C 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-9308eafb465so89787885a.2 for ; Thu, 03 Dec 2026 18:30:52 -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=K6npuKD/KJofXOlvZqFptiTzCoz1P/qfz/b62rp23xWQIEWQS4zxrIhEwTihjd8JcJ wDtGAX6c5C9ICEVWdnH1+hdIEXSk4r2FIxgof+lw3UWBslq2FdCFxn45zI7vCWC2PZbZ Dr/HBvHNqxpZvXOYr4oKIIv6fvxuQ3ne0uzmvh1HuLPcujm6QiiZShHz0IzbQisxJ0FT fZeH+GDK4DJnMDuWdKPzoA93Mb6RAqrjzwRb3c+6B0oluz0ZeCb/mFipNS6h8tgWhOF2 23PyTyduLsDqseXvAgw6ANvUzk20Onw1i6SJIF0p20p9l85Aw0dvAxJSHMz3KT66RpKF B27Q== X-Forwarded-Encrypted: i=1; AL+hErGqasJxUORDodcRi3bgHepwXYPzW4bx2C8RV49ULZTY+c0k2xfoP0fSp1m3+HDV9Q5xnSkHlvRph3PP@vger.kernel.org X-Gm-Message-State: APuU4Z90fg5a4UKoB5F2IdCrJJVNGOdTctH+1ZOPnYoSJsBX3SiqWNY1 KYzu7rD5fYLTA6o6Fn1Cgk3do0If8Sgu34Ne6bSn+n6sPP0d5SSVedqspwrca5E2AKS087yGfsH TJZZ2O0ycfQ== 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: devicetree@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.