Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2525867pxb; Sun, 23 Jan 2022 07:27:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyciHn+YfDT+65wq5XGKK6wmnqVBkEhnuJbTo+747enxdBbnDRF0GiwnShM5CCLCeQe+3uL X-Received: by 2002:a65:448a:: with SMTP id l10mr8954270pgq.385.1642951632915; Sun, 23 Jan 2022 07:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642951632; cv=none; d=google.com; s=arc-20160816; b=P+1nsEk+EobjKvJmbNU5ZIUTHjyQ705iqwxWIF4zzZmg4Q+Yl+SRwn8cebdEP2tbh/ F9bBODv8xOoMGrPxKKZ/ZKQld3iJxQx/ad1rQ2Jamqk1thxtZMVWD1551c3aJzCmSvuk OFncNFYTkWSjjfcXlX06EpvFRoJhhYNs++t7H+/Qvmu+O7PwvFTxVEpQA0nQ/5+Oq0Zs +Arc+BhmjgUnihGiMSlCkK9WsOFEsrMDu4+SVMC7SpK0aDuOdL6WrsusxEGP1Kl4fFUy Gi/PSVH3zpgszgCU8GWBW/X6BYeiD23zIzQZ3u3TmARbCzNYZyeD0xyZv4Pl0rvdE+lj 27Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=G79TN5S5x5W2saUiVqi64VUYatm89TKiYuqc1pKNSa0=; b=iqmS1EfMu/x+bnwUmw+5BQwRLs63yHpJ2Q3EbNUpDK8+T5SMzMXVDrOZPzH8Pgroyh VMZPWBVwkoqIl65JMKtCZHiVAoP+Wot/74SY6CmPTaAAGRiM7YaoXi0W14YCv6NwZdAw qGHgTPuSCxap9m7S5owsPKh6sz1kOSTfho1SqzV3CA71ePdCtSmUo/D2WuHMXjq6YuSu z2WEuO6qKaji8gUV+1VGfJRy0d2Yt9nNYx4VqiZXPH27S0/Ir4XuCfA6noWHHy4oYUOm 370Ylcy2XS3wivJ4pTBDxPTUks6Jm24bnTH3JAFiR2MyEoMjtS03Sxf/3Zv9YsC8Z7kR YUJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JqEq5dbt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si10658970plb.54.2022.01.23.07.27.01; Sun, 23 Jan 2022 07:27:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JqEq5dbt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234758AbiAVTCm (ORCPT + 99 others); Sat, 22 Jan 2022 14:02:42 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:34912 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiAVTCl (ORCPT ); Sat, 22 Jan 2022 14:02:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D888E60EA8; Sat, 22 Jan 2022 19:02:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20E6BC340E2; Sat, 22 Jan 2022 19:02:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642878160; bh=SO36fcd9Ftwvt4jmydGyHNgBsA+Y6OnFF6+xWBsSfKY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JqEq5dbtbupfQ1SYtPOUX4Ef5KzYeLROmvNiDA7hScXrZepO6w0KRtCGBeqjAyFsU SsIdypZIp+hSWpz8GyM1i6dCxp66Ahg7bw6uToNoAnjvEuEZTzRDK9O8J+SuNk2HtM RLA4xQfrgR8Dnc/kc1rg42hIXk0yg1gnr0PCfiQ0nFJuELVSuaLLOePGD5T/LHX3UD dM+BJeKfQm//v1iFKi1F6iUA4+Mfs0QLT4xq0LRCaKz/bQJIcr2vFEz4xRqUBgLtEI 4EpcqIi9UF03ABM4VZMU8/KNtO0wzKat/jpb//vql3vkRtOvuw4Gu+/qcN947Cir0c a/zwz+RXibktQ== Date: Sat, 22 Jan 2022 14:02:36 -0500 From: Sasha Levin To: Vladimir Oltean Cc: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Colin Foster , Florian Fainelli , Jakub Kicinski , Claudiu Manoil , "alexandre.belloni@bootlin.com" , "UNGLinuxDriver@microchip.com" , "andrew@lunn.ch" , "vivien.didelot@gmail.com" , "davem@davemloft.net" , "linux@armlinux.org.uk" , "netdev@vger.kernel.org" Subject: Re: [PATCH AUTOSEL 5.16 108/217] net: dsa: ocelot: felix: Remove requirement for PCS in felix devices Message-ID: References: <20220118021940.1942199-1-sashal@kernel.org> <20220118021940.1942199-108-sashal@kernel.org> <20220118122316.yas6mmyzog6said3@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220118122316.yas6mmyzog6said3@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 18, 2022 at 12:23:17PM +0000, Vladimir Oltean wrote: >Hello Sasha, > >On Mon, Jan 17, 2022 at 09:17:51PM -0500, Sasha Levin wrote: >> From: Colin Foster >> >> [ Upstream commit 49af6a7620c53b779572abfbfd7778e113154330 ] >> >> Existing felix devices all have an initialized pcs array. Future devices >> might not, so running a NULL check on the array before dereferencing it >> will allow those future drivers to not crash at this point >> >> Signed-off-by: Colin Foster >> Reviewed-by: Vladimir Oltean >> Reviewed-by: Florian Fainelli >> Signed-off-by: Jakub Kicinski >> Signed-off-by: Sasha Levin >> --- >> drivers/net/dsa/ocelot/felix.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c >> index f1a05e7dc8181..221440a61e17e 100644 >> --- a/drivers/net/dsa/ocelot/felix.c >> +++ b/drivers/net/dsa/ocelot/felix.c >> @@ -823,7 +823,7 @@ static void felix_phylink_mac_config(struct dsa_switch *ds, int port, >> struct felix *felix = ocelot_to_felix(ocelot); >> struct dsa_port *dp = dsa_to_port(ds, port); >> >> - if (felix->pcs[port]) >> + if (felix->pcs && felix->pcs[port]) >> phylink_set_pcs(dp->pl, &felix->pcs[port]->pcs); >> } >> >> -- >> 2.34.1 >> > >Please drop this patch from all stable branches (5.16, 5.15, 5.10). Dropped, thanks! -- Thanks, Sasha