Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4470923imu; Sat, 19 Jan 2019 10:06:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN69xU2YotNlUR2IouRguv6WcMu/DUbGqep1wHHRmf8c92GYVpkKfpkJ1fnu2FlV/sKAUAou X-Received: by 2002:a63:580a:: with SMTP id m10mr21942719pgb.332.1547921181978; Sat, 19 Jan 2019 10:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547921181; cv=none; d=google.com; s=arc-20160816; b=TrIDfvqZYd5cskMZKNYSGQoZiR6ORR21Buhv65+t1yRB22i4kXHRZNbfDN5rnnWirU uR8AqDUA8KbrWQM8QgZUyH+9xjdsup9LDkpHjrxTbStdsxicFG01dX5fXGrIdzwsCbfL mMWIdF4ZA1TSNb3YU8rqAJxAbmHyqFdq5e85im3TVzakh8DMcGH5mmsUJ+un/r7+Q7a9 /QWDnL++0SI+Px3Ims5WLWv/Wj3yUekRzF+YXIG/ITfFzwWmjgjTepLqq9UVhVmR5KlX 4Wifd3RYwKpwXwAeMDnOM9wa60tcYXpUE92wrxPfUVnyjkK8eCvDbbNx2fTKq2+qvyYS REUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=Ze90950eMB8gqR4NieG1aDtsX4h97E1jjkQeRAfh/TE=; b=TI4LLLHsZsQ1yHfaVJg4Gqj0cf+q0muUa5jD/cmlieyihq5VECs1VR+gKmjVkBr9+7 MD4DGWBaIb+AN9A2PBpk1pAC9bWVdlLPirLjz7vAH3DBmmGCJlcxA8wK5lskleN0mI4S 5Lzx0G0Rj/08QlvYHiai+QfJrqspt/AaAcz+C0gxKCjxrLwtXFNpcQ/eHPAge/lK2juk udDtWbsmEhRAO8h6yjzQlg2RTqbvcYsOSEkNIDt5Ey2OJ50fnDuRskN3VXGNSWY4oV0W aO9y+rKzGa+JBmXJFZdzX/jXPeBRzsHVvBET0aeJSLg5+rp6O/8bAfcdC1oaHWdIF4tn r1+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 63si8295006pfv.38.2019.01.19.10.06.03; Sat, 19 Jan 2019 10:06:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728917AbfASSEs (ORCPT + 99 others); Sat, 19 Jan 2019 13:04:48 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:56570 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728668AbfASSEs (ORCPT ); Sat, 19 Jan 2019 13:04:48 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 8081314BC61D8; Sat, 19 Jan 2019 10:04:47 -0800 (PST) Date: Sat, 19 Jan 2019 10:04:46 -0800 (PST) Message-Id: <20190119.100446.2276221483557449324.davem@davemloft.net> To: camelia.groza@nxp.com Cc: andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, oss@buserror.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2] net: phy: phy driver features are mandatory From: David Miller In-Reply-To: <1547727756-18854-1-git-send-email-camelia.groza@nxp.com> References: <1547727756-18854-1-git-send-email-camelia.groza@nxp.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 19 Jan 2019 10:04:47 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Camelia Groza Date: Thu, 17 Jan 2019 14:22:36 +0200 > Since phy driver features became a link_mode bitmap, phy drivers that > don't have a list of features configured will cause the kernel to crash > when probed. > > Prevent the phy driver from registering if the features field is missing. > > Fixes: 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode bitmap") > Reported-by: Scott Wood > Signed-off-by: Camelia Groza > --- > v2: Print the name of the driver that has missing features. > > This patch should be merged to 4.20 stable. Applied and queued up for -stable.