Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp58100lqp; Thu, 4 Apr 2024 07:07:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKbHP0if98kVPkDgroTppk8CT3/5BGoTKiysQnb9F9BI4YclOtZSw68ZsPpraPKzRu1Tl8KSUa1s03r3IUrBoqg4SrjiR1KLilRR0kmQ== X-Google-Smtp-Source: AGHT+IFDHudIYCjGsV7tFhD3Ju+Jmi+Dl0xJRXJ161+Exz7ot4+Q2A6cn2E+y0S0TCZO+O5K9wGX X-Received: by 2002:a17:90b:ed3:b0:2a2:adfc:6203 with SMTP id gz19-20020a17090b0ed300b002a2adfc6203mr2852461pjb.8.1712239629086; Thu, 04 Apr 2024 07:07:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712239629; cv=pass; d=google.com; s=arc-20160816; b=pkYb1rdIkti3a8SemYiPSWnfBQPGaj8/nKNzn3wG0yXJz3q1kzvrbIElw819fe871X wkjow2WCZkH79yTlLFRyZuSjkCjwD52/MPNsVs01kuyal5XSuvAQmukIJFR4+fF/etmD nrfCCuOyAVTv4ER915jzGdR33vgUySCj9Jnw9Vc4Wn3/IDUX16tvT5Wj/3W1ap6+NLDX WBgtaioLryv+bLMu4aZsWBgyaoWWGqK1kditmaSBRFP4uvIZxWh0Ra/eb+88puTcLs31 Ov3MhHiHfM49jdoaXZUIwXvp5L1T9TFgiNCvAKFrmbThx3rSmT90lWG6rSwzg+PKJS/9 q5yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=p9lyNNezsGzSH+r7ma4jkO5f1F+UgO5L9s51Fq+pDNs=; fh=QowZzyGdoLL6+GtGvgDjrh67QOvo3CMwODE4VsY8TBc=; b=hoNvr2odhwMfIYULE5eU84eHqelrwm7XchrSkrS90reIrhNNb+PHA4h0fBVxuXXMrF VLht5IHicF4TcpKRCGxSGT6uczPu8RD6uSa0+Z8nbUm8a0iWmSDhXjzRbc0Ch/hdmgP6 DWsvqqYW0AYc0xq5p4vLM8m6KnIFAfWBRWSKIllFhVDoGBr5sFJRIYZXsABigHnEaOLA 2jf3YvGNFbOuqgClrXfWava1fRjIx95Dtf/PSzzWTnbQpunpefF9MjwJ2rCmh08uz9Qr BdQoMnv174T7f3frj26UjZpS5ge+5KVp7hd+0Mp/nQbbDHcwWq7bLYJih6OLL0Dclqo2 NjLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=jqUe6OPt; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=kkSHfl6Q; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-131552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131552-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mi13-20020a17090b4b4d00b002a004d25ad2si1767289pjb.89.2024.04.04.07.07.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 07:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=jqUe6OPt; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=kkSHfl6Q; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-131552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131552-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0D6C7283154 for ; Thu, 4 Apr 2024 14:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D68C1292FC; Thu, 4 Apr 2024 14:06:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="jqUe6OPt"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="kkSHfl6Q" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (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 DD82F8528B; Thu, 4 Apr 2024 14:06:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712239585; cv=none; b=jILX1lrNJZpKLwgbWarnXA7vNtX6r+DIKbopV7hQ7ecHMKxYkQaNF5sAr46AwlW46edNHNtYNScj8y/opildQ2vV40lYR6B21al/lNqeXcnns+fvAytGxwIiZXUCKOgiFbTrtyWknQpE48gEyPmDoXFaJ/JB0qxKqUhyDH2fuTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712239585; c=relaxed/simple; bh=/zHAbt4y9sFY/xYAzcPpxk40Evw3pavCSB28vHMumug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UL6ovvP5ESO6OAbvq2teCSCtiDt0+1aad4spzNOS3Y0eNRzziCVa253PrzYc4PVI4tBnYOCUIaw4W0OLqhPn/n9iXC0eGIw9lBxA2f9UB2BNNiaFpxuWF+gbpXzV1v17qrCpBqbbDjGH2jjMZo03ircodtwBsDbCzSAQ86f/4EA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=jqUe6OPt; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=kkSHfl6Q reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1712239581; x=1743775581; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=p9lyNNezsGzSH+r7ma4jkO5f1F+UgO5L9s51Fq+pDNs=; b=jqUe6OPth7IpABhfKnAPTzfbmuiL2gChVUJkVge/Dc5QId67IWIByafP Zn+CUci5ti7ikYW4F/5AKRHtoJuD7cerldIpKM2OwLryDe2nak2SmpUtz qDttbRtJ8PrO2LYIaZaDPhYjLURscbmlL36Y72JslyksF8z6kf+4a7Y/X 3pl/BeP/oRZb1ZUU1L9xo/1mGeA9PUsL/i07OIBSmmOmDM1+V3MSH2T2x uVv8b+8fy7pEQnKEIJxI9R6Y4a4l0p3NFcJk+ZJqt/zHGUERfRHDelH1G 3yRxbr6VGU9Hu3jDp/COIsfwKo7KfIdN9VZFyAgAhBfBL67RGc+MACevy w==; X-IronPort-AV: E=Sophos;i="6.07,179,1708383600"; d="scan'208";a="36253737" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 04 Apr 2024 16:06:12 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id AD77416AB93; Thu, 4 Apr 2024 16:06:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1712239568; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=p9lyNNezsGzSH+r7ma4jkO5f1F+UgO5L9s51Fq+pDNs=; b=kkSHfl6QKcHUjhD9iRmDManPQlYhkIfDczW3AWWkoAagAQUAtSffCdLQIIqOUaXxIP84aF jZWb3FrtMkgNYFBpDEgb9LVvoJBWRSIP9vUiDASOKn2OWFZOa9Ef4wYQ8RdMpe7nxmIyDs tLDmDes1RkUZTc634DB6/uZI3SVyAmvdRiraZP9FcMPrVM1C9W6cnSBgJRiYM3/bJckFo1 nhy3K0bwv93r2Kbyn2pUObkQ+GE0kam5QxYC82FLLabdLuCQlRn2LnbMEofpP2gL/ccMNX 61OJcwBPIapQKaChkB9XIXKo0HXYZCWNWMFrs2g1JfbG7f2VgB2TnIcAM7h2zg== Date: Thu, 4 Apr 2024 16:06:00 +0200 From: Gregor Herburger To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Dimitri Fedrau , Stefan Eichenberger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux@ew.tq-group.com, alexander.stein@ew.tq-group.com Subject: Re: Re: [PATCH] net: phy: marvell-88q2xxx: add support for Rev B1 and B2 Message-ID: References: <20240403-mv88q222x-revb1-b2-init-v1-1-48b855464c37@ew.tq-group.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Last-TLS-Session-Version: TLSv1.3 Hi Russell, On Wed, Apr 03, 2024 at 02:59:37PM +0100, Russell King (Oracle) wrote: > I think a helper would be useful to write these sequences, rather than > writing the same code several times: Ok. Will add it to the next version. > > static int mv88q2xxx_write_mmd_vals(struct phy_device *phydev, > const struct mmd_val *vals, size_t len) > { > int ret; > > for (; len; vals++, len--) { > ret = phy_write_mmd(phydev, vals->devad, vals->regnum, > vals->val); > if (ret < 0) > return ret; > } > > return 0; > } > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! -- TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018 Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider https://www.tq-group.com/