Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3030140pxb; Mon, 18 Oct 2021 06:57:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzanedity/fLxuHnYUvSgfW3sz153nNc1k1qAb8P9t3hl9LCS0jqLd26jjrWrPiWfmG4Us X-Received: by 2002:a17:902:e549:b0:13e:d276:505f with SMTP id n9-20020a170902e54900b0013ed276505fmr27302823plf.17.1634565446565; Mon, 18 Oct 2021 06:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565446; cv=none; d=google.com; s=arc-20160816; b=Cc56Dn2IBpiIb2olfzDTVJonuYtFaggsSCY/QM3+D+N+OEX8Bb1gnJcFW95m84UQx7 UhS2rg6y51WsHQwiirL2P0grgYxUFQ/HB43pyiMYeFfx/B1HpRK4cNpEEnL2PjHv+PK6 O5NO8vR1ZLhjvkm8tImVSCi0PpjJoZgbhCviYh04MyISxUgro3/WJlCVpJyw41Ay/lD5 ryzZtlkwNyRAe75/nCwlE/AuwydTR8ZX1rD2dOi7kOQzteMRsW1AM2thM9zC8ZtG9afF KhWEbMM51HeF0kypZMVVFEvZIQrUPZv7m7mT6TdmfbXlD52d9Rskh+v0mtWQB02rcpIo CpJg== 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=KQQEt/HcHZEj7GgbJl3QQwjCr7Bi0ZH1ZxBk3qDxHaI=; b=NwGLEmFqTsR04pIWlqiaAsPFfUZoEqUqdX2/fdu5ERKfJu1e11RNKHJZATUec17jeA 0224Mo9BDXXjiGP86PrvdCdHhxUee9jckxHEaCR2N6+aqee+ME/ZNiJjTb/SGsb98MA7 CSPfexnjj4LPwYJwlRFaUf9Stei2+T9CKV4hzHG2l+3DtE2IWaHmk0KXVaQ8vKEMo9aa IQzJl+4kVpAVtUonPm+in/8O00Yu2KnTL/z0FJsFeuOZX4Jq+LIhiYfjtDC35L01kc77 CdPKPw7vjc+0n1MtY1szeC7thwlGeAzNsKSOYBZGiD6p4dgEcm61yOxQWNZYSQGh2Sqx T2SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k6FDdw2P; 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 k3si18798094pjg.160.2021.10.18.06.57.12; Mon, 18 Oct 2021 06:57:26 -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=k6FDdw2P; 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 S234364AbhJRN6B (ORCPT + 99 others); Mon, 18 Oct 2021 09:58:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:58186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234381AbhJRNz5 (ORCPT ); Mon, 18 Oct 2021 09:55:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0FB7861A03; Mon, 18 Oct 2021 13:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564417; bh=DTVAeuq2AdtyIHNnOObDtjxX+Zf6lc5YAEEVS2lGK80=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k6FDdw2PkgwjUjoWDaE+x74jBI+oVaeEulST4QeH2OIP4VlVCao3yfuHddRt4CnrA OWSwcelUXgyJSXVLfhO63nSVaupnFG4Aqp+K1pQJpCZO0KccJLqh+IygCktxQw1Xc9 CnIEsJrmREqNw5Gm5QVJ25/zBDtITOsnxfhmfC3Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown Subject: [PATCH 5.14 082/151] eeprom: 93xx46: Add SPI device ID table Date: Mon, 18 Oct 2021 15:24:21 +0200 Message-Id: <20211018132343.355899156@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 137879f7ff23c635d2c6b2e43f4b39e2d305c3e2 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 device ID table. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20210922184048.34770-1-broonie@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/misc/eeprom/eeprom_93xx46.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) --- a/drivers/misc/eeprom/eeprom_93xx46.c +++ b/drivers/misc/eeprom/eeprom_93xx46.c @@ -406,6 +406,23 @@ static const struct of_device_id eeprom_ }; MODULE_DEVICE_TABLE(of, eeprom_93xx46_of_table); +static const struct spi_device_id eeprom_93xx46_spi_ids[] = { + { .name = "eeprom-93xx46", + .driver_data = (kernel_ulong_t)&at93c46_data, }, + { .name = "at93c46", + .driver_data = (kernel_ulong_t)&at93c46_data, }, + { .name = "at93c46d", + .driver_data = (kernel_ulong_t)&atmel_at93c46d_data, }, + { .name = "at93c56", + .driver_data = (kernel_ulong_t)&at93c56_data, }, + { .name = "at93c66", + .driver_data = (kernel_ulong_t)&at93c66_data, }, + { .name = "93lc46b", + .driver_data = (kernel_ulong_t)µchip_93lc46b_data, }, + {} +}; +MODULE_DEVICE_TABLE(of, eeprom_93xx46_of_table); + static int eeprom_93xx46_probe_dt(struct spi_device *spi) { const struct of_device_id *of_id = @@ -555,6 +572,7 @@ static struct spi_driver eeprom_93xx46_d }, .probe = eeprom_93xx46_probe, .remove = eeprom_93xx46_remove, + .id_table = eeprom_93xx46_spi_ids, }; module_spi_driver(eeprom_93xx46_driver);