Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp536860rdb; Thu, 15 Feb 2024 07:40:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWT6LnPIdI2H6arndJLQmK885J7Sy9RIXYmmmg7vgpRcZL6hS2jg8bLZ9ADypWwVYyr1UuuL3f63J6tomP83RW29nkdhCLxnsPSP3dCEw== X-Google-Smtp-Source: AGHT+IHdd5zCZySWZnDTda5WyXDVIdOWBtGz10J1v+zfuX0O3DMXob9qHr1J2a43n95BaU9GAVnY X-Received: by 2002:a05:6a00:1c8f:b0:6df:dde5:6025 with SMTP id y15-20020a056a001c8f00b006dfdde56025mr2357657pfw.4.1708011649121; Thu, 15 Feb 2024 07:40:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708011649; cv=pass; d=google.com; s=arc-20160816; b=CXL8gkv0gU3lTDXHDwY9/JKmIN/SmN6VlDbeMKsIj+gfM0DLXKf/UePdWCYVKoPm/k tsweydPKGm52zybXE7UvVA1Bq4yxxP3YPpxRvO+lCIgUWEwM/tVOTm9qUUA7QEJZEI0x cuoWOQFOgDQa2fg4gDwPQ8dR8gcZw4hgxhybUQ17enu2JKGuoitukJrQp/yrsAZHtUtF 181/M49UskMf934tjMSMqvKsm32tpdyqfEkcRbTxgVPBR7vxNN3VgqySdmUyIH4+0GEV eRlv6MrGyLXHEz2wcfcXroEHubgWhKEr9mwz40rtp7v0smyq5VzxZvydSPgup7iBqpdt BcPg== ARC-Message-Signature: i=2; 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=yjuukyO4NH4wsNzuTW5ue6r+n30kuSgrhuoOPD109OA=; fh=Mm7+9gi+F1HnFgzccEPRMt/8pe0sFcCLT47yMAXVrIE=; b=X2sRGYZASfLK22X/BWtIHfXTQyXT2L1kxP3GKQHW0AD87fepjtS8zC0lSL+v49Dh/S 7y/FWetNueAYeXAQdsrmSEGfiH0Yfo84UNOu464Xiuq4ShvuQHqD07rFQ1I4pvFxgc9c o/qUO8qJyY5E1IZzQdXHu03rtSn1wwIYhyt2TGe7XIVpe6zTHf1Bt8Y1itWuYbd7/aRJ V+gmICvO2/o61mbV16QxjSo/M1TSdw1qXSw91RlXYzyXSiE7JXgXtRB37Om/TS0qCbW6 +2qB0VIMOntj2xT1/kdccCWb9aIJlR08nZ4oc1D4R6TYD3b9jdzxa+mrCDGlUIHzFJ05 /v2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=2HNwF6UK; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-65765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e22-20020a637456000000b005dc375e5da4si1284497pgn.486.2024.02.15.07.40.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:40:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65765-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=@lunn.ch header.s=20171124 header.b=2HNwF6UK; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-65765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 31E9029686B for ; Wed, 14 Feb 2024 18:07:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1A4212B176; Wed, 14 Feb 2024 17:59:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="2HNwF6UK" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 8A45F129A74; Wed, 14 Feb 2024 17:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933592; cv=none; b=ZMVT+IDGZ4PAirn8YRK/MS/pUyKWkHYHpG9H5yt0zHlGnPewzOwIy/Tbxyki79OWEbYJZhiHyz+sMUZ2T2UqId4tyMXykO9JdqNRNwAc/40oBORRT67mlpKKswEeZNskwkI8I34JlTAjeZKh2p4wqwvIcYujX/FS2xDAbIsX//k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933592; c=relaxed/simple; bh=Dw80zWF0tvaZHmJNlHE2DtcVDtrIsNwJTAzdsUiupMg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Hmi+R7X4iyR/puFj4SEBaDG5whrj+phDYIv8vtOAdWMc3TLRRQKCzbZmjweI8yR89LHWOz16Iybb+y/DhpsyC+3SQUvjrGvPXo0SeMtsPYF00jptC+s8+EUSD8iPw5bOygujxOA+baa4G73rNs64yaHtA4JTwoSLorzswsHsPCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=2HNwF6UK; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=yjuukyO4NH4wsNzuTW5ue6r+n30kuSgrhuoOPD109OA=; b=2HNwF6UKBKiic0namuggXLVlyU 4qjx0KcFXgjRJPIwjskhhQ6QMSfPRGDmRixexwIvmhQuvBEjXgLW2uposRZOQFQG6hExTpRrpOzDN DD+avU+cZ/c7VFh9iu9N9h+QWrPSkXSlHyv/PU/2fKLhc1n3sjikVNaQT7iaagCgHcvM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1raJY1-007oVd-O1; Wed, 14 Feb 2024 18:59:53 +0100 Date: Wed, 14 Feb 2024 18:59:53 +0100 From: Andrew Lunn To: Robert Marko Cc: andersson@kernel.org, konrad.dybcio@linaro.org, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ansuelsmth@gmail.com, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: phy: qca807x: move interface mode check to .config_init_once Message-ID: <6fd8e93d-a391-4417-b282-e2018338d077@lunn.ch> References: <20240212115043.1725918-1-robimarko@gmail.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=us-ascii Content-Disposition: inline In-Reply-To: <20240212115043.1725918-1-robimarko@gmail.com> On Mon, Feb 12, 2024 at 12:49:34PM +0100, Robert Marko wrote: > Currently, we are checking whether the PHY package mode matches the > individual PHY interface modes at PHY package probe time, but at that time > we only know the PHY package mode and not the individual PHY interface > modes as of_get_phy_mode() that populates it will only get called once the > netdev to which PHY-s are attached to is being probed and thus this check > will always fail and return -EINVAL. > > So, lets move this check to .config_init_once as at that point individual > PHY interface modes should be populated. > > Fixes: d1cb613efbd3 ("net: phy: qcom: add support for QCA807x PHY Family") > Signed-off-by: Robert Marko Reviewed-by: Andrew Lunn Andrew