Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp48865lfv; Tue, 12 Apr 2022 16:48:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY3dS5ZfEtPuwgf0veXFdOXAlwFaU2ktpQdrUMfamXePC+6ObC/u+fwzehmvD3vUKXu2Is X-Received: by 2002:a17:90b:4c8e:b0:1c6:8dfb:3cb6 with SMTP id my14-20020a17090b4c8e00b001c68dfb3cb6mr7743765pjb.72.1649807324049; Tue, 12 Apr 2022 16:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649807324; cv=none; d=google.com; s=arc-20160816; b=fc/jSddmwraE74FOVUA3D1gLvNhvgVH9KmhHNhqPg/YiTblO4RCl4lqtTs48+WTr/N JVWjt0KIh/3Ge3sL6YgBpIEOe9lOAR9vL8o1GXBCofricl/47g+BinCZx857gwuCEfB+ ljoRAZ9fDWOVMYoWMl+SedU9rtkt/tr3tvkzPoAFA26Ut3Yp7tAVHSqopfiNczBnzoen M3du8HeUjgpyw2i4lt02Kk0fk04j15koSzWWB23DJgXTQAQFIzM+avrh50Hvs2miYgdF 5z3bCTU74jVcDER2WbUVw0aos+IrpVa1sDxKeptq1wRPGDY4Q6wpJYmSE8KGtXo9l+Ta dkOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oXU3hwiMfKY80GD9UAyVjvKh2iumJni0metDCTcR0Zs=; b=UgdCZ+/NIUYaPyqR671tX5Bet4d4SP9u87QIAk433rAGYAu6PgEeU7PW7rcCkFJZQn 0iygvh/45rxEpnALKcbk9d8v7BmtApSmfvS6eLLC9Z3AKhvEk5rDx/LkoKqEjXHFFeqr 5KE0Rb5Vk1ynW4O9ZosB/Kr/lWqtuHR/3JkKCHR7g7G4tW6tGA6M7l97q8/0Ey34p8un KuNL0dwQ2RwuS39bCCbSrGuSJ7dWGi4TNcQbvuefMEzO+SlLilo7jOJaGu/QWZYkDe5G SPq0AN6XMR1a/joicwm9aeGa0cS20p0OscYrlJ8tEyZje5JTuEOoYSKsxJq/RLaNTil3 RYxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=gyITdjS2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j190-20020a638bc7000000b0039d5b041820si3726338pge.11.2022.04.12.16.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:48:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=gyITdjS2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D85291229AB; Tue, 12 Apr 2022 14:41:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238148AbiDLQAR (ORCPT + 99 others); Tue, 12 Apr 2022 12:00:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354266AbiDLQAP (ORCPT ); Tue, 12 Apr 2022 12:00:15 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3E272CE3B for ; Tue, 12 Apr 2022 08:57:55 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id r13so28343365wrr.9 for ; Tue, 12 Apr 2022 08:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oXU3hwiMfKY80GD9UAyVjvKh2iumJni0metDCTcR0Zs=; b=gyITdjS2U9I7emTve761Mhyp4rm1MvbYmGDM5K/9Gdw3Sh21Hakr6ivPa8gXU0wDAC a4ZbjQmq0C7UU8g1ejYaBfbE0RV1tuhBAtEhgm4wY7b8WBO/IosxZImvbSEmXPt65t9/ G8EcZFQOlfN4oD+mTSgYBJkiJD9Xv10UQPABA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oXU3hwiMfKY80GD9UAyVjvKh2iumJni0metDCTcR0Zs=; b=SXwq+CvcU6tlbxN5O8beXi2rQBXao+ZqN/HCUB5KHFRBfwvpRL8w7ew9doce1gRnkY mjA7e82NWlyJonOWw1Hg/VQ8lRDXfF9wd30jds3bE3cKN3IVGE9hXxZD1zjSkWrcMpRu Y43UaspdRVCYzylZ0ys3TvZxLGUgt+XCSps1myJJueI4duYaPgmHJjEOvofzdqGlY34o pbKRK2bCisxFmmkx5UjXU15Hd4wjr2bN5RZzmqW41p0YnWsxUGd7CrVKP4pRGwRWYCnr QxmrYq7g1YEc5AgYLE2L2vpylIJ/yla1y1Mc8kzSXelk9kH/vSSmJCuT7kuJKPMZfCNd LVpg== X-Gm-Message-State: AOAM5333LpQE3dX6YJpsR7Qhv6hGjYVg33guUO/mOq46Iu71W2tHhFhk dbVNT8tz8wDU/xQl2ztZ1fKhMg== X-Received: by 2002:a05:6000:118f:b0:206:81d:c030 with SMTP id g15-20020a056000118f00b00206081dc030mr29130004wrx.169.1649779074464; Tue, 12 Apr 2022 08:57:54 -0700 (PDT) Received: from capella.. (80.71.142.18.ipv4.parknet.dk. [80.71.142.18]) by smtp.gmail.com with ESMTPSA id n15-20020a5d6b8f000000b00207ab69284csm3497155wrx.23.2022.04.12.08.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 08:57:53 -0700 (PDT) From: =?UTF-8?q?Alvin=20=C5=A0ipraga?= To: Linus Walleij , =?UTF-8?q?Alvin=20=C5=A0ipraga?= , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net] net: dsa: realtek: don't parse compatible string for RTL8366S Date: Tue, 12 Apr 2022 17:57:49 +0200 Message-Id: <20220412155749.1835519-1-alvin@pqrs.dk> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alvin Šipraga This switch is not even supported, but if someone were to actually put this compatible string "realtek,rtl8366s" in their device tree, they would be greeted with a kernel panic because the probe function would dereference NULL. So let's just remove it. Link: https://lore.kernel.org/all/CACRpkdYdKZs0WExXc3=0yPNOwP+oOV60HRz7SRoGjZvYHaT=1g@mail.gmail.com/ Signed-off-by: Alvin Šipraga --- drivers/net/dsa/realtek/realtek-smi.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/dsa/realtek/realtek-smi.c b/drivers/net/dsa/realtek/realtek-smi.c index 2243d3da55b2..6cec559c90ce 100644 --- a/drivers/net/dsa/realtek/realtek-smi.c +++ b/drivers/net/dsa/realtek/realtek-smi.c @@ -546,11 +546,6 @@ static const struct of_device_id realtek_smi_of_match[] = { .data = &rtl8366rb_variant, }, #endif - { - /* FIXME: add support for RTL8366S and more */ - .compatible = "realtek,rtl8366s", - .data = NULL, - }, #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB) { .compatible = "realtek,rtl8365mb", -- 2.35.1