Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp409196rdb; Fri, 5 Jan 2024 14:21:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqre5+qcUz52wpSj99UTJbeBAYA8Rbwjpurjzj39qrLMUXJ41h4ghWa7YOW2bBcduWjcP+ X-Received: by 2002:a05:6e02:1aad:b0:35f:f678:a520 with SMTP id l13-20020a056e021aad00b0035ff678a520mr217776ilv.13.1704493283072; Fri, 05 Jan 2024 14:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704493283; cv=none; d=google.com; s=arc-20160816; b=AmKa6Nf4PG/cqLCyXYopenTtERSETlTb9FMpAjxvwkELkV9qzBg6wjd9mhdsDesNX0 gteyOFjgy7NhvzoGkRX1glOhzXxNrKWCu0uFl/vGlTSPTGlNH1U6kMWQlxbtpGG5wHhx amtwta9oc8LoLXlnw7u9tIypTj+SttKQ/EKnU3Cw9WrTcucUxoJA7O9ycvTc7tCVZ9Al koXwkvqkwQL6eP+eK/pQNRIm+cAsZ3zEUMqlL47P+No1Gog+W7r+ZrgZu5uyQByM6hzE Eu5uGiiKQi6hABiJQYDiYlvTG8ag9qnNXNKRS4dFn67MFevKpCVozqUL0lqsV7Kx8iA0 3DUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fvAsbhn4zJAhQm5EKfY4yEOpwtln0a+WYL/6ejR1+Jc=; fh=t2Yyx+t1DS6Ai8ZJJT0PhzxxuyU7AHdmAcVU0VLwGSg=; b=GOLnKuMo2PwiwwmcRtl8LuBlMw4SvM7nfA0mo9l0PdZgwtWK1sHqhZ2RAH9iJMRYtA KC4Iz717FRapx3eFXhiSS1jOeBXFc0pVdhS6QzHGg6Fj2OTbI5uRfBVzbUHTAKV0GfzI cpWQHwRxeDQu+cqgPlON5oPWWuLAj0v54x5Pbnj60ohCnhGYOrLHdlpnjqj6uY7Pn0IA 9tmgLa7rXW2fud2wEzUCpDqEYzU5YRQTEdKTW0JfOB6ZCwFEMk6fk/UKGcGg2ZSOq4y/ 77dJyKgUMsHAAH6m4ERcTMkscm6Ck9NnLE6wWFOXaCTioozfFBlOI2WN749JV/htqmHM mfxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=H5M4n4NY; spf=pass (google.com: domain of linux-kernel+bounces-18396-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g71-20020a636b4a000000b005cdec4c81e8si1873852pgc.514.2024.01.05.14.21.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 14:21:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18396-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=H5M4n4NY; spf=pass (google.com: domain of linux-kernel+bounces-18396-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 6922F285C23 for ; Fri, 5 Jan 2024 22:21:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1420035F0F; Fri, 5 Jan 2024 22:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H5M4n4NY" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4666358A4; Fri, 5 Jan 2024 22:20:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-40d4a222818so5798075e9.0; Fri, 05 Jan 2024 14:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704493237; x=1705098037; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fvAsbhn4zJAhQm5EKfY4yEOpwtln0a+WYL/6ejR1+Jc=; b=H5M4n4NYKGrs3dW6zD6rZeIeVQN3ZMBl6FIdku0f71gC7HK/l6ku2/uMg+k7dh0O+6 OGWhzSdSNiaEo4mvr48iPqZMAcdPhG4bZ6m9BMI9WmPMkYuIc+2aWYyqUWRu2oBcIwkJ f6X514zAzcIgzU0tkdDmSniqg3ulPTlajPkYyYFaTM5Jt76CtxqmdYcH95FjjXXHV4yy Fr0i72zh5S+r/H7sI+nmWe8LHQu8fUI2m96iMkfdHiz4X/FyzXx+FY3JGuHXn8UBpSQj 790enMq7z01I7NUP0+w1zfXSldnRsxOQ37+hMEqVmO9RbOsKmxh2xzYjFhk34RMzdGcI vd0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704493237; x=1705098037; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fvAsbhn4zJAhQm5EKfY4yEOpwtln0a+WYL/6ejR1+Jc=; b=h9xDOOugKFaVgnn7k0RtzlhZ3AYokCOfNIgJAjDQZWYE4Gr6aKvJhUOsNSpQ02IrG5 IDvz4pFzg3+Nt7RRdeHZjDYEL1xCnBypRQff03F6u/Rw9e5Taa37S4F0kpsN8eNl4atM xdH42XYH6Ksk5mkEAVNFeiPpbW0/yw1sy/7uYAZVIQyQPV1Nh0n6FNkewaGofohoL6Pl DwVIcAHBcrJEoatA91zi7zA26ZAKJiAKBuVMnZXmFhVwqAXOdNQmraNcb+35+1YDoqpl mczq+y+T3TRlOOVLJd2eQUp/a6Q2pQiaRCC5+XL3L83SiuIQYnEOX8MuJRk47Mz8tiUR KZig== X-Gm-Message-State: AOJu0YxTDUYGJ9SDkkc1rDZ653Gkjrb4QXGSlItDIuzNJQcNkRPAQM2y Nj5lBeMlMCTMGM5VjSsL/EM= X-Received: by 2002:a1c:7903:0:b0:40d:94af:6c25 with SMTP id l3-20020a1c7903000000b0040d94af6c25mr62000wme.24.1704493236909; Fri, 05 Jan 2024 14:20:36 -0800 (PST) Received: from debian ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id z5-20020a05600c0a0500b0040d772030c2sm2716355wmp.44.2024.01.05.14.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 14:20:36 -0800 (PST) Date: Fri, 5 Jan 2024 23:20:33 +0100 From: Dimitri Fedrau To: Andrew Lunn Cc: Stefan Eichenberger , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2220 PHY Message-ID: <20240105222033.GA40773@debian> References: <20231218090932.GA4319@debian> <20231219081117.GA3479@debian> <5d545a9b-feda-4908-8f74-9218806451c1@lunn.ch> <20240105124221.GA30964@debian> <20240105154351.GA39937@debian> 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=us-ascii Content-Disposition: inline In-Reply-To: Am Fri, Jan 05, 2024 at 05:06:53PM +0100 schrieb Andrew Lunn: > > Hi Andrew, > > > > > Do we need to reduce the init sequence? Since this is all undocumented > > > magic which nobody understands, it would be safer to just keep with > > > the Marvell vendor crap code dump. Unless we really do need to change > > > it. > > > > > You are right, it would be safer to use the vendor code. But when > > looking at the vendor code, the init sequence changed a lot from rev. B0 > > to rev. B1 of the PHY. There are some additional register writes, but > > mostly the order of the register writes changed. I don't know if this is > > going to be worse in the future. Maintaining different revisions will > > probably take some effort or at least result in bloated code. We probably > > don't need all of the init sequence. I'm not sure how to deal with it, > > keeping the init sequence at a minimum is probably a good idea. > > Is the revision in the lower nibble of the ID register? We can handle > them as different PHYs, each gets its own init code, and share what > can be shared in helper functions. > Yes, lowest four bits. Handling them as different PHYs would definitely help maintaining PHY revisions. Still there is the problem with this huge undocumented init sequence. Is this going to be accepted ? Didn't see such a long undocumented init sequence in any other phy driver. > Andrew Best regards, Dimitri