Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3031143pxb; Mon, 18 Oct 2021 06:58:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJgtYZWqNiKnR0lNSgSgTTuKZ+LKSZU0ix/GxA1HPkRjeXRAxdLc8GiRz6iV39vtYvzTQ/ X-Received: by 2002:a63:7051:: with SMTP id a17mr24024181pgn.417.1634565515425; Mon, 18 Oct 2021 06:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565515; cv=none; d=google.com; s=arc-20160816; b=Z0yUomHSb3gkKVOioWXL9EmF8+XSV3EGg80VoGHQAH0v3l5AAUtICp1XOuzuqKAQrJ nw6sthjNroMA9lRQiDUaxfm6/dej4PLz22bUNsABZp179fHW7xnCjEGjMidk7jb7hmtA jerhIKWzVret3AXP99QiYVB7V3xU8EjjJSY+dGw37pWjMpfgTeEqfgmfryy93UXbkYwM yHnLFx5mgWbEVfwASdRkSJ8H1K9i92Y0o+9oc6IMB+bW8+Hothw+8dtFYCu4lgixMNcQ 34yMeih3iUPorhxN3CGBgWIM5dpTl8qum56m/a9DEjVJR/ivpRmM8OL6tjEB0mO0V5Ou 7MCA== 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=JWmq4/ocOxb7xNGejF++Ab8nStSkttcRyusTmwwt43Q=; b=vD/FNMQsgxIn325OUHyT6SNRGPbaYOiRRdD+OjjzwtOqW/nx/iIJjyQxm1knBEJdt1 OalzJoeOeGykK6A06fmHehaFlTb06YH2cddRlf3nNxeZlizCqn18b1Pjec9VsbpD+NY7 bgSpc8qiBqK3bGhZ5swsMrL0yYXK/4UvYF/6YVeq8rZXglzDU6mDcyJUI62UbehDJlqx 6od5CTP1r1W1+nGDPZchiFyJ8rQwUXmVNG7MsNy0IMrl7wY/oI7G7x0o/caxB6830BN6 1HBfebC1qG4dXn3R4S3ao45R8uZHw7crmi21W1uH252RbAcc0nU4vB9JwqqdVyaIzQPU /fTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xuj8NTNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si14907785pgk.528.2021.10.18.06.58.18; Mon, 18 Oct 2021 06:58:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xuj8NTNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233590AbhJRN6H (ORCPT + 99 others); Mon, 18 Oct 2021 09:58:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:56112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234403AbhJRNz6 (ORCPT ); Mon, 18 Oct 2021 09:55:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B50DF61A0B; Mon, 18 Oct 2021 13:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564425; bh=Hsr8yR3apzln3frfbIipz2wD/w8DAgrCvd6kDWRWrEY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xuj8NTNmDeKRVDL+0cgK9L4GP7X9m/CYkjUphOjpeP73qeCoZ/0k1rr1vvijtKpEs sfYeq63yNF39F/fUE6z+CSzjmdF5CshPGWCM+N3Vjm/Bv8Y8TE54J9YMEsdvPsefwN Q2bHbUXB9DVsDsYRxSHCGd0aMykoAxamcy944hvM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown , Moritz Fischer Subject: [PATCH 5.14 085/151] fpga: ice40-spi: Add SPI device ID table Date: Mon, 18 Oct 2021 15:24:24 +0200 Message-Id: <20211018132343.456508711@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark Brown commit 2a2a79577ddae7d5314b2f57ca86b44d794403d5 upstream. 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 a SPI ID table. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown Signed-off-by: Moritz Fischer Signed-off-by: Greg Kroah-Hartman --- drivers/fpga/ice40-spi.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/fpga/ice40-spi.c +++ b/drivers/fpga/ice40-spi.c @@ -192,12 +192,19 @@ static const struct of_device_id ice40_f }; MODULE_DEVICE_TABLE(of, ice40_fpga_of_match); +static const struct spi_device_id ice40_fpga_spi_ids[] = { + { .name = "ice40-fpga-mgr", }, + {}, +}; +MODULE_DEVICE_TABLE(spi, ice40_fpga_spi_ids); + static struct spi_driver ice40_fpga_driver = { .probe = ice40_fpga_probe, .driver = { .name = "ice40spi", .of_match_table = of_match_ptr(ice40_fpga_of_match), }, + .id_table = ice40_fpga_spi_ids, }; module_spi_driver(ice40_fpga_driver);