Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp936661pxb; Wed, 6 Apr 2022 04:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7J0N2D32ttsGb9Md6kd/PPpkMUDekC/uAz2hs/jxf5nDMVokLm25MH0FkYnOHtkiVMoW2 X-Received: by 2002:a05:6a00:4107:b0:4fa:ac90:f299 with SMTP id bu7-20020a056a00410700b004faac90f299mr8480282pfb.58.1649245701161; Wed, 06 Apr 2022 04:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245701; cv=none; d=google.com; s=arc-20160816; b=Ueeif2Y+uKZrKkkEdaqytsm6L43n+SYGmZ1Ocjoz9hkCyC+keDIWga5I8CIEm+KxyJ UCnWtc/IZ2TKwzbAAR65MbqPx1rJVaH8CirzUl6IcxxsYP+Sdu7AuYli6+hkh/xcraFd 253MrpIMjbi4H0VfwkX3YKbdFO1uBeosQEgKWSsPjKeDCPAhX5YqJArFicUvO51Y59BS rZE0hjqRrWVaqaZbmQfg+wPchViB+hc+IVQbxJxFAqgSgIbWxQXeJDi5CIiag6zk/AUi PKYTHakwzXZz8The42Qjmk7KI033wzFOnvRFAuFtOeF5tYUQ9sxMMZd/z6OEbbFb/FAH IKVA== 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=6/4CeLaFTRTi9gULmQLiqCBeEC2Y0NeaiIdjjEIrTHM=; b=nQOtzSKFP7mQynKArB/ZzoizOHLTnsVuKqXsE7MArVx/7hspoEanW54fT1mBogeHqL QbZ8HsAKAsKmocDI1q+mdc/bu938RS523ULuHX05FPwn6siNrIh8/vC/uYG4/CoC/XpG ff/gCpqnmcIlI03xBVO0s0s3mBH8jxJDGRTRlI3vCOQbQXBCx8hCtgh/0iVpb8EJhFLf ZM4nnWOOrnSLEUe9Ex8v9rUY20y/O3KkCCAyLw+QsweFHpHLkjO8cnUmMGEM60w6kEfv 2PVPwd5nMsCxLE0iHtRRryaSBp1uAsvfH1zTvPolTKw1XCeNoFvLJZhgjTeg0mGBWkCL KEaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M9q0tNWv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b16-20020a170902b61000b00153b2d16475si14052549pls.125.2022.04.06.04.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:48:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M9q0tNWv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1CB34436BF2; Wed, 6 Apr 2022 03:05:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232493AbiDFAhI (ORCPT + 99 others); Tue, 5 Apr 2022 20:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348969AbiDEJsu (ORCPT ); Tue, 5 Apr 2022 05:48:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B430A0BFF; Tue, 5 Apr 2022 02:38:20 -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 DA29861577; Tue, 5 Apr 2022 09:38:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1732C385A0; Tue, 5 Apr 2022 09:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151499; bh=iYsyppak5X0PQkSwIxgTeVWMzlqbLKhGuR4Pvhdsn3k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M9q0tNWvB2XUYctHMlCRIqwmyYPuGUMltC0Xve8yfAVQ8Q/ZcoT8judf7OGfzhZ86 oPtsCOody7AHVEprBdkqGy4N+lcSVJSby4k/LJMX3Dql25ZtuRTYIRi3cTJoJAYp+s A+enuTYZKq/75wsiY9/6jwniWmSgFAOGLfbKlCVo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown , Michael Walle , Miquel Raynal , Sasha Levin Subject: [PATCH 5.15 437/913] mtd: mchp23k256: Add SPI ID table Date: Tue, 5 Apr 2022 09:24:59 +0200 Message-Id: <20220405070352.944915012@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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: Mark Brown [ Upstream commit bc7ee2e34b219da6813c17a1680dd20766648883 ] Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverted, so ensure that module autoloading works for this driver by adding an id_table listing the SPI IDs for everything. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown Reviewed-by: Michael Walle Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20220202143404.16070-3-broonie@kernel.org Signed-off-by: Sasha Levin --- drivers/mtd/devices/mchp23k256.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mtd/devices/mchp23k256.c b/drivers/mtd/devices/mchp23k256.c index 77c872fd3d83..7d188cdff6a2 100644 --- a/drivers/mtd/devices/mchp23k256.c +++ b/drivers/mtd/devices/mchp23k256.c @@ -229,6 +229,19 @@ static const struct of_device_id mchp23k256_of_table[] = { }; MODULE_DEVICE_TABLE(of, mchp23k256_of_table); +static const struct spi_device_id mchp23k256_spi_ids[] = { + { + .name = "mchp23k256", + .driver_data = (kernel_ulong_t)&mchp23k256_caps, + }, + { + .name = "mchp23lcv1024", + .driver_data = (kernel_ulong_t)&mchp23lcv1024_caps, + }, + {} +}; +MODULE_DEVICE_TABLE(spi, mchp23k256_spi_ids); + static struct spi_driver mchp23k256_driver = { .driver = { .name = "mchp23k256", @@ -236,6 +249,7 @@ static struct spi_driver mchp23k256_driver = { }, .probe = mchp23k256_probe, .remove = mchp23k256_remove, + .id_table = mchp23k256_spi_ids, }; module_spi_driver(mchp23k256_driver); -- 2.34.1