Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp685010pxb; Tue, 5 Apr 2022 18:43:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqUDu2PIMijoStZPNsrwkAj9pcWezE5DCi+KvBvuOHMQSOG5+aEuA2xGS8LYAoIG5Wd8wg X-Received: by 2002:a17:907:6d8b:b0:6e7:5610:d355 with SMTP id sb11-20020a1709076d8b00b006e75610d355mr5988090ejc.369.1649209383691; Tue, 05 Apr 2022 18:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209383; cv=none; d=google.com; s=arc-20160816; b=Fq7sR/KA+HmIiLVJaNg5cQ1LNzXt8AlKw23rdnDoPVymhhOD3Ish0w58WJcjjd2EPp SZ7PFFYIIsPolUIWPqpA1p9pUy2tE8ST9FbjxP9QcIol0+jawOJk9XFB7Q7T8K28oIbq YFpJBSfhhRyRpmI9iN0CP22y7ynq60V03pwsgRVe3BiWqR32l8lZteYn6QXYrQFvtOba 7u7xftviwJvo2OJuuHRI24Cv4SC9FXk7YJjdlzdF39/1DQJqvqRa2ou00ATXbefSfcdz oVEhBdKLJi9HXAJCmLa7UvMoFdT0+FhQJM4QQzmoFi3ro2R8oHNgBdQf9aWMWoRA5XG3 l4cA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EfYaxLqBl9CgevHI9jsjn6oRVqbGnON3Cmupe/4om8A=; b=tNAOOJdB1Qu7ytPTe1SycR6J2p+TATzM1y6P2KyZpEONxa6yMjmfAH7517rcuKvpue 91BipVKrpdIF3A9TWqGVi67H5wNdN+aBf5WqzuyuvfTdy0Yl5nRBeubowTGbk4PHgXy0 QFxR6LzY1da7GU5IEORtBk2b44c/jfNJJUeBjBS9b7t8CY/AxCsHSj2I6K6WQGNBmUxN ExaXcB70WZ4O6jKAfEkmCLbWgprViUi5T2ODdAudhQ4eF+Hu/XBlNDvcwXu6wrbG+0jk y0a+ELdsNRl4G9Gm6kU23MdCjotmywtkJstup2AwbX86wK/oQQM207bjARTt3AH7izxl GDEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XVm3El5T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a170906709500b006df76385ca1si11052815ejk.321.2022.04.05.18.42.34; Tue, 05 Apr 2022 18:43:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XVm3El5T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235808AbiDEOJ0 (ORCPT + 99 others); Tue, 5 Apr 2022 10:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236365AbiDEJbT (ORCPT ); Tue, 5 Apr 2022 05:31:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A75DB316; Tue, 5 Apr 2022 02:19:03 -0700 (PDT) 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 1B10861666; Tue, 5 Apr 2022 09:19:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A015C385A4; Tue, 5 Apr 2022 09:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150342; bh=jmP3FPdm1hh5kPbcapZm2SdByBPDlY4fxfWaKWpCmCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XVm3El5TVja/nFKbqF9q7V1RbGW0GNYg/HLTiBDK1/WtsNn9TErXBuHk2e7Q3nVnY WeZuC2OqIcep3P/wvZKvJrIVXnq7Gi1WrzxtOO6v5L4Z/xpljyB47hj6HH57xOYAJd AYdJBtziPLG7rDLa/7EF+1gkSPdqBGFl2eJCe+Nw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , "David S. Miller" , Sasha Levin Subject: [PATCH 5.15 023/913] net: dsa: microchip: add spi_device_id tables Date: Tue, 5 Apr 2022 09:18:05 +0200 Message-Id: <20220405070340.509561741@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Claudiu Beznea [ Upstream commit e981bc74aefc6a177b50c16cfa7023599799cf74 ] Add spi_device_id tables to avoid logs like "SPI driver ksz9477-switch has no spi_device_id". Signed-off-by: Claudiu Beznea Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/dsa/microchip/ksz8795_spi.c | 11 +++++++++++ drivers/net/dsa/microchip/ksz9477_spi.c | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/drivers/net/dsa/microchip/ksz8795_spi.c b/drivers/net/dsa/microchip/ksz8795_spi.c index 866767b70d65..b0a7dee27ffc 100644 --- a/drivers/net/dsa/microchip/ksz8795_spi.c +++ b/drivers/net/dsa/microchip/ksz8795_spi.c @@ -124,12 +124,23 @@ static const struct of_device_id ksz8795_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, ksz8795_dt_ids); +static const struct spi_device_id ksz8795_spi_ids[] = { + { "ksz8765" }, + { "ksz8794" }, + { "ksz8795" }, + { "ksz8863" }, + { "ksz8873" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, ksz8795_spi_ids); + static struct spi_driver ksz8795_spi_driver = { .driver = { .name = "ksz8795-switch", .owner = THIS_MODULE, .of_match_table = of_match_ptr(ksz8795_dt_ids), }, + .id_table = ksz8795_spi_ids, .probe = ksz8795_spi_probe, .remove = ksz8795_spi_remove, .shutdown = ksz8795_spi_shutdown, diff --git a/drivers/net/dsa/microchip/ksz9477_spi.c b/drivers/net/dsa/microchip/ksz9477_spi.c index e3cb0e6c9f6f..43addeabfc25 100644 --- a/drivers/net/dsa/microchip/ksz9477_spi.c +++ b/drivers/net/dsa/microchip/ksz9477_spi.c @@ -98,12 +98,24 @@ static const struct of_device_id ksz9477_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, ksz9477_dt_ids); +static const struct spi_device_id ksz9477_spi_ids[] = { + { "ksz9477" }, + { "ksz9897" }, + { "ksz9893" }, + { "ksz9563" }, + { "ksz8563" }, + { "ksz9567" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, ksz9477_spi_ids); + static struct spi_driver ksz9477_spi_driver = { .driver = { .name = "ksz9477-switch", .owner = THIS_MODULE, .of_match_table = of_match_ptr(ksz9477_dt_ids), }, + .id_table = ksz9477_spi_ids, .probe = ksz9477_spi_probe, .remove = ksz9477_spi_remove, .shutdown = ksz9477_spi_shutdown, -- 2.34.1