Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp729776pxb; Tue, 5 Apr 2022 20:42:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/SE5PcZdaEmPmqhgdfBGbuqF9ijqkOMJhxt6a6kLkPUp9b3s7zZt8CotJEacYU33J5oMK X-Received: by 2002:a17:90a:d3d1:b0:1bb:fdc5:182 with SMTP id d17-20020a17090ad3d100b001bbfdc50182mr7716283pjw.206.1649216526958; Tue, 05 Apr 2022 20:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649216526; cv=none; d=google.com; s=arc-20160816; b=N4jZ0baZVbcfHE57ZatU3lHFscWut3nAc7wY9E9xlo8/l+KyGUn4qrHujUhsqNIjS2 ENFg0czmq6wmWzSSz7FTabPQ3RI8j9zKfa4EDQyLlv68l3nnyjaL6G/1iChXjz7oCWY0 XZPpWWgSkxY7LL/A8eV/uoHJFhEPHi1tNZu+wcJEphjbFpqAvPFsxdBQtRS0AEk8dzWF sEZaPh6SKDAOBA2TxfcClvS574Khzl4zFdeicufPJg3tyKFKVCgPJvEl9BX+HUtjO5gK Co7ZcsArabS9Fcu7ciOnf9lzgYS9UuSQidIpU9o4yZv9PieBoSoNgpfzheJBj5i2mj2+ LnZA== 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=X2Taph7ozEiaDSHEMD+3mUvNsDRIGn6JHmotrQeKFj0=; b=uECZLTpX5mwgd7VAlG67XU+TcCCMlNehjkz99j4QqJ4StVC7p5n3N9h40ZgY5JP92W g9Ng9i+NRVP8Uyrj46is7VLtBAUF7N9nJUtKJqXfgoUAzFjSGDL+9fC9ghGQAxlzO//s hcZL3ORo2NK3ZC5GbhjezwKJaxfBc7CuZs/ltFDBE4XFnz6tgCVkhmRDUtR8jnH/GJJN yj97DVp1iYodK516z7TShSKqaYgM/jtAhMG3D/hAnPmj6h3wswiq9wS9Rt4zHtONQmgY yFfDE9O1caEX1hT/JqxSYYxSvMo5uEczA1g0Qi5yuhoT2sxZ9xPh8KQ1L5lNmhwST/FM 5mzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JtTz+Mvj; 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 w3-20020a170902e88300b00153b2d1657csi14871960plg.388.2022.04.05.20.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 20:42:06 -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=JtTz+Mvj; 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 8BF92267AF7; Tue, 5 Apr 2022 20:08:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245272AbiDEIyd (ORCPT + 99 others); Tue, 5 Apr 2022 04:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233769AbiDEIJ2 (ORCPT ); Tue, 5 Apr 2022 04:09:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90B936CA4C; Tue, 5 Apr 2022 01:02:37 -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 628BDB81B14; Tue, 5 Apr 2022 08:02:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C40A2C385A0; Tue, 5 Apr 2022 08:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145756; bh=PCOovBywQjdfs89+FJpIp3nsalzk5qELoJAhclxvLXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JtTz+MvjoBwJ722tyK8kyJINkzq61/+J47MNfP3yBjtgVnFyEBkU+JwKZkzABa3vm Z3shctA66laNdJv7wwXA5hM8wJiLWBYyvFax4z03ZP0BFNTeSBFHPixe97hnSJ3ap5 vGoKLasd8lZLbbOSV8zWUiDiYn5YgYmYCsKO9vME= 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.17 0519/1126] mtd: mchp48l640: Add SPI ID table Date: Tue, 5 Apr 2022 09:21:06 +0200 Message-Id: <20220405070422.863091512@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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 231a10790196..b9cf2b4415a5 100644 --- a/drivers/mtd/devices/mchp48l640.c +++ b/drivers/mtd/devices/mchp48l640.c @@ -359,6 +359,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", @@ -366,6 +375,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