Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1056590pxb; Wed, 6 Apr 2022 07:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH1UIF8PB8symCJ/clFPmJqhuNs2gqnIZ3TRsaUUQX806t1ugwwSHE+csfw7XnorYZEEFQ X-Received: by 2002:a17:902:9005:b0:156:8a9d:ba49 with SMTP id a5-20020a170902900500b001568a9dba49mr9194400plp.42.1649256217548; Wed, 06 Apr 2022 07:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649256217; cv=none; d=google.com; s=arc-20160816; b=lE/+yj5RWEcqiljJuBGkdbhoF6xEb5c78ae/B9y65WbZexlQEExmLXgiOGCcDKtZn9 MmzVgeepHltr4AqC2jKuniu0q6DgY6+1dOxjyZdcLr+LW8g2plSGSk0+1CBITmtPE/D7 mD3YxnrTG9KyEXQt9SBvRwjBgR6VWiKB7RujllQM+4pbY7pPdkcHJCCek2GAGVkM13Yz SH8o7SbTr9auxy1O04BA18An8psL4hW4b34BzePJBzmf6Y2tDGMVy7NOlkgqTvMGTqQl vgrTppn83aNo5NWktNMLxZVN10z/iR+sbl21pcZLwkpGXQ/oQd1Vh3piHF1o5mJhxoez VgMA== 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=ReMuoggVLvag88AOoKzNxTgG70UQlPmdxIw+4I5pYwE=; b=e0kpHttqoNAPiMNb+hb90bkRHQskrxld8AT4oKDno7E2inF+KFC440tNOsN1uGIr9S Er52BLRBMgGIscIhuZi1YzhyL0VC0OKj6c7H2irsiORYTmJ9tGWNk3D8PwT/PPlsW/nX 0LN1ZG/ikyE+94QqQHtNe2lYTx7Zu9XFvF99XcIuSXI1bwSoSHHh+PbSTLOahdWiRvZG bSBwERYovwRDlHNKQ7aR/lfu383dzO+5hzPid/CbqQ5k+MSONw5cTZvLOklOR9CZhYiw QroQ+mISIje+5N02x0TZRkV9Qqeys9Xu1M05gebfvcuKgekSTj4NxqCPlGKuGCXty7q5 rUvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZMna2Dox; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n6-20020a1709026a8600b00153b4bc544bsi14772581plk.312.2022.04.06.07.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:43:37 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=ZMna2Dox; 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; 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 0319F56123E; Wed, 6 Apr 2022 05:29:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1587153AbiDFAHv (ORCPT + 99 others); Tue, 5 Apr 2022 20:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348965AbiDEJsu (ORCPT ); Tue, 5 Apr 2022 05:48:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9496CA2045; Tue, 5 Apr 2022 02:38:24 -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 ams.source.kernel.org (Postfix) with ESMTPS id 498CAB81B14; Tue, 5 Apr 2022 09:38:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A061CC385A0; Tue, 5 Apr 2022 09:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151502; bh=F7l6cRDIskjsaex4YVqyUiGZjsX8weyvVrGPsY41MgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZMna2Dox1Vx+t+fdE/kQWwrkylEQSHGXrRIZpSWeS2/f39AWrKz5Wcwd1/No6LCBN RMs8OSyv9sKj+kEs2sm+SWc1zxgyCv8c/c0upG4Xx8d9mpgO3KhfRuL5yPxNWn6JIw PD3y9S5egdW2w4zhlRL9koq1ToQ3I8MkwNkfZWQw= 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 438/913] mtd: mchp48l640: Add SPI ID table Date: Tue, 5 Apr 2022 09:25:00 +0200 Message-Id: <20220405070352.974917134@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 69a6d06878f05d63673b0dcdc3c3ef1af2996d46 ] 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-4-broonie@kernel.org Signed-off-by: Sasha Levin --- drivers/mtd/devices/mchp48l640.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mtd/devices/mchp48l640.c b/drivers/mtd/devices/mchp48l640.c index 99400d0fb8c1..fbd6b6bf908e 100644 --- a/drivers/mtd/devices/mchp48l640.c +++ b/drivers/mtd/devices/mchp48l640.c @@ -357,6 +357,15 @@ static const struct of_device_id mchp48l640_of_table[] = { }; MODULE_DEVICE_TABLE(of, mchp48l640_of_table); +static const struct spi_device_id mchp48l640_spi_ids[] = { + { + .name = "48l640", + .driver_data = (kernel_ulong_t)&mchp48l640_caps, + }, + {} +}; +MODULE_DEVICE_TABLE(spi, mchp48l640_spi_ids); + static struct spi_driver mchp48l640_driver = { .driver = { .name = "mchp48l640", @@ -364,6 +373,7 @@ static struct spi_driver mchp48l640_driver = { }, .probe = mchp48l640_probe, .remove = mchp48l640_remove, + .id_table = mchp48l640_spi_ids, }; module_spi_driver(mchp48l640_driver); -- 2.34.1