From nobody Sat Jun 13 09:18:01 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FAE4371CE2; Fri, 8 May 2026 08:27:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778228843; cv=none; b=N/HOrp6cnTO9NwJbYXeo8KglEgqcP2rXx0xv/W2ycXaNNXM3oKjuoLu6j5Ffzjw7n0v6KnxISOFKmHA2le1vpypdVj7D0nHCOgNm4LGDBIvvjKlQL2hl0zm6VYLIg4/aAf8kRyE72N0E+yN1OUoVZwH4WXTH+fnr7+cHAjOY7gw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778228843; c=relaxed/simple; bh=2XtyrkPKcpb6jkfUwPcwbCkoYesqJAKaxKgvl0WqXWU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TkAcKMQYZTpDa77uSlKvtNTe+lIjJeSXwJKkEOWHmEGP1/AuPjGR3WyPuXugxc+p14MEPFuLhaoXd7j82HLwHUg2XaGA8dEW0w8gQ3fxCe5kRdFepBbXoUgwFkk5V5p1CTct0F/RLtXqKknWSztiee06HIYZBE6p30zbg87nXCc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Hv+ZXPe6; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Hv+ZXPe6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778228843; x=1809764843; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2XtyrkPKcpb6jkfUwPcwbCkoYesqJAKaxKgvl0WqXWU=; b=Hv+ZXPe6S8VvFDaD8Vl7/1bCHmwsmrTJBIHUE/gk223SeuQV8njby1yt USQHCnF3SpQU5ctKPPpN/zQTSnEqAGED0L6WhUOG2yOeuzadLOFz4IIIl xbhnkpbiVkoIEC0YbzFnlSt4WEVBXvF1JtLXH16xNlR9f3W+Cq4jjQmh7 CtaSTWZRm/LEodaesWhqz+ytjr6N6gDzc6g74kjXvFzh0SA5Olx++4fmn HpR2myrzWL6VJXiQE33QiUq8LFX92cGfVmMia1h+T/qlDzMYVUookb9ju fRGN7Qa3QtsMuUckyOYsyYSMUMRUFRFHNK1iw6B/ZVFSbSv6eRGIjJy0o Q==; X-CSE-ConnectionGUID: BRle+HzGQfS4OKlLjGf6fg== X-CSE-MsgGUID: M0tVDiRUQxO73JWI1cIlfQ== X-IronPort-AV: E=McAfee;i="6800,10657,11779"; a="79130492" X-IronPort-AV: E=Sophos;i="6.23,223,1770624000"; d="scan'208";a="79130492" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2026 01:27:21 -0700 X-CSE-ConnectionGUID: IBYkuPZ+REqOkkGo2/kfDQ== X-CSE-MsgGUID: o9DHPeCSRaC/bVCb/ALX8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,223,1770624000"; d="scan'208";a="241679966" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa005.fm.intel.com with ESMTP; 08 May 2026 01:27:19 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 5E76899; Fri, 08 May 2026 10:27:18 +0200 (CEST) From: Andy Shevchenko To: Andy Shevchenko , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Moritz Fischer , Xu Yilun , Tom Rix Subject: [PATCH v1 1/3] fpga: lattice-sysconfig-spi: Fix the terminator entries in ID tables Date: Fri, 8 May 2026 10:25:35 +0200 Message-ID: <20260508082716.1156192-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260508082716.1156192-1-andriy.shevchenko@linux.intel.com> References: <20260508082716.1156192-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The whole purpose of the terminator entry is to be the last one. The trailing comma makes this statement prone to failure. On top of that the style is used for the entries is unusual. Standardize this all by moving terminator entries to their own lines and drop trailing commas. Signed-off-by: Andy Shevchenko Reviewed-by: Xu Yilun --- drivers/fpga/lattice-sysconfig-spi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/fpga/lattice-sysconfig-spi.c b/drivers/fpga/lattice-sy= sconfig-spi.c index 6a906df45941..d8d5a33a25b7 100644 --- a/drivers/fpga/lattice-sysconfig-spi.c +++ b/drivers/fpga/lattice-sysconfig-spi.c @@ -116,7 +116,8 @@ static const struct spi_device_id sysconfig_spi_ids[] = =3D { { .name =3D "sysconfig-ecp5", .driver_data =3D (kernel_ulong_t)&ecp5_spi_max_speed_hz, - }, {}, + }, + {} }; MODULE_DEVICE_TABLE(spi, sysconfig_spi_ids); =20 @@ -125,7 +126,8 @@ static const struct of_device_id sysconfig_of_ids[] =3D= { { .compatible =3D "lattice,sysconfig-ecp5", .data =3D &ecp5_spi_max_speed_hz, - }, {}, + }, + {} }; MODULE_DEVICE_TABLE(of, sysconfig_of_ids); #endif /* IS_ENABLED(CONFIG_OF) */ --=20 2.50.1 From nobody Sat Jun 13 09:18:01 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CEA63624A8; Fri, 8 May 2026 08:27:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778228843; cv=none; b=MwzcrR2u8ZPh6++qR+JpSgh3foH43Nx9A04XPONPHHZLLugNqask6ebQpxkpD9mEXJyXwJ8nKaQLen+jIfAGHOuExmFUbudfIg9yDgMjAIFolLglsf844y2lUbUyBC8HQYw8KoclRG7dQOqRLRwCv2+AqPK40v787LWl5Vxvc20= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778228843; c=relaxed/simple; bh=vv+GTFKGr2CZEbWCxzJX9llfRdEhYVJ4RSHglYFIAXc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GIqGs+5klnW2nI7xY0McNVrnRzI0z3mapbw1qbZqEsXAVwkNd4NPFu3VpbX72F707t25s/X/LIWtuuuZmdAEGRzna9zFTo79EivFJIz5R/1EOStaDysJS6DLPDdf3shQ7AqI7oeGHH6/Sj9zgDRben0ECA8TxjP8xH1rsDwt2jw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=UbJOi5fj; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UbJOi5fj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778228843; x=1809764843; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vv+GTFKGr2CZEbWCxzJX9llfRdEhYVJ4RSHglYFIAXc=; b=UbJOi5fjeVsdIQy7Ja9fqnDqEM3E8Yjr7HuAEeofNda6Ui2XxTQHD0sS /QvFI7jHhMqb9ql5u56PwcDmIrsLCuaORr/5X9H8MWl3FuJQ/k2RgGG39 tNnH6D9Vp2zwa5QX/O6rKuZySXyDRmQSS1jjXmYgALaOK0OTM7sv/b2ZI JD2lI0zmXn3Ec5dtBPLAGOULPFvEM6OjjPVQK8Rzlpm4qaEkA1DwVP4wr aiY8//Rn9l4wUm8yvQ1k4InvzgOG/3Ldf3a+RC4ffu6E73+kVEkYbOAAq PuQM1VnHa1X3HVG6lqFKQPNdf5Dq+4SvJfTv333h+5s8j6kMsMTLow8Fy g==; X-CSE-ConnectionGUID: 4Jip+E0WTdaoWB6qIlNVrg== X-CSE-MsgGUID: wqgq1xO3TTK3DheiAvgtVQ== X-IronPort-AV: E=McAfee;i="6800,10657,11779"; a="79130489" X-IronPort-AV: E=Sophos;i="6.23,223,1770624000"; d="scan'208";a="79130489" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2026 01:27:21 -0700 X-CSE-ConnectionGUID: RhAcvhDgTSGWmo5PiryFMA== X-CSE-MsgGUID: 386BLQC3Rku9megj1sae3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,223,1770624000"; d="scan'208";a="241679964" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa005.fm.intel.com with ESMTP; 08 May 2026 01:27:19 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 62D929B; Fri, 08 May 2026 10:27:18 +0200 (CEST) From: Andy Shevchenko To: Andy Shevchenko , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Moritz Fischer , Xu Yilun , Tom Rix Subject: [PATCH v1 2/3] fpga: lattice-sysconfig-spi: Drop of_match_ptr() protection Date: Fri, 8 May 2026 10:25:36 +0200 Message-ID: <20260508082716.1156192-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260508082716.1156192-1-andriy.shevchenko@linux.intel.com> References: <20260508082716.1156192-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Limiting the scope of devicetree support to CONFIG_OF prevents use of this driver with ACPI via PRP0001. Drop the dependency. Signed-off-by: Andy Shevchenko Reviewed-by: Xu Yilun --- drivers/fpga/lattice-sysconfig-spi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/fpga/lattice-sysconfig-spi.c b/drivers/fpga/lattice-sy= sconfig-spi.c index d8d5a33a25b7..76df5d7ad1f4 100644 --- a/drivers/fpga/lattice-sysconfig-spi.c +++ b/drivers/fpga/lattice-sysconfig-spi.c @@ -121,7 +121,6 @@ static const struct spi_device_id sysconfig_spi_ids[] = =3D { }; MODULE_DEVICE_TABLE(spi, sysconfig_spi_ids); =20 -#if IS_ENABLED(CONFIG_OF) static const struct of_device_id sysconfig_of_ids[] =3D { { .compatible =3D "lattice,sysconfig-ecp5", @@ -130,14 +129,13 @@ static const struct of_device_id sysconfig_of_ids[] = =3D { {} }; MODULE_DEVICE_TABLE(of, sysconfig_of_ids); -#endif /* IS_ENABLED(CONFIG_OF) */ =20 static struct spi_driver lattice_sysconfig_driver =3D { .probe =3D sysconfig_spi_probe, .id_table =3D sysconfig_spi_ids, .driver =3D { .name =3D "lattice_sysconfig_spi_fpga_mgr", - .of_match_table =3D of_match_ptr(sysconfig_of_ids), + .of_match_table =3D sysconfig_of_ids, }, }; module_spi_driver(lattice_sysconfig_driver); --=20 2.50.1 From nobody Sat Jun 13 09:18:01 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17485346AC1; Fri, 8 May 2026 08:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778228842; cv=none; b=O+z3JzaMalIcX1N2LFecSxDqTobQnufrM7RhypqrnppQndQ243wljOW3GXLHEB1b6hozziZVl7TmDd8UU0kYwJYQmHRVS0KZ5lyeGiUY2SKsLsCU5Q959nRemkyiRZK1clurDxj33G5Hbsf6YlLVdDdU7shY4qGUzyhAu57k5oY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778228842; c=relaxed/simple; bh=/hVFHDBW18CcavUAceaBKVfBL9ica4pT1tFT1hrAIFE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iYSbgF3KSBWJCHN02BZx6bakQVZkxU7w4/PfH+KQ8L324BgtZqft9s4gIiVpzKD83TJL66LTxFwxfJdiKiCi1AxFiNl706wOK43X8tgoNBSkwvIxqg+RT5BfNjsGbDaH59WiGJdhw1GQX51UerfP9N3SQxVLReF3tbjHROy7U6g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gwI9Oaqz; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gwI9Oaqz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778228841; x=1809764841; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/hVFHDBW18CcavUAceaBKVfBL9ica4pT1tFT1hrAIFE=; b=gwI9Oaqzm+yXReOV/I7OufHg4umMMKUEpewCfkmieHaWXfzIPsxc+E94 gAaJhashL5LJaNElZR6sAhYb4y8qMPKPuj7eOcL3RKA/T4GWNRo0pZfLs IEBE68XgsBTdhaW8w84T09JPQv37HZVMeNIAlKCuvZ/2r5uXXHtcPkW/B BlaiY+9OHiBn2diF/R+UU+KKFgNzpIttcoJkYYH8sYhukYiUUTk9r+pBc b/ceL342UmAQ2KmZbbZi2Mwia+Lr24AtK9VzYS+zIGSmLMaC5t/u1yaeP Jx6g8oT92roRnCviMo4h7V0wacqQ3PgYOroBj9kn5P1L68XkZ7kufnOe1 w==; X-CSE-ConnectionGUID: eujeiQw5RJ+tBtK9UHLx4A== X-CSE-MsgGUID: 3g8FIKF9SKW1daFiEHAX0Q== X-IronPort-AV: E=McAfee;i="6800,10657,11779"; a="79130486" X-IronPort-AV: E=Sophos;i="6.23,223,1770624000"; d="scan'208";a="79130486" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2026 01:27:21 -0700 X-CSE-ConnectionGUID: shTOi+HeRnmzXwf0pkWyZw== X-CSE-MsgGUID: I3ySZHxbR4qWN6sZDxPi/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,223,1770624000"; d="scan'208";a="241679962" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa005.fm.intel.com with ESMTP; 08 May 2026 01:27:19 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 66F239D; Fri, 08 May 2026 10:27:18 +0200 (CEST) From: Andy Shevchenko To: Andy Shevchenko , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Moritz Fischer , Xu Yilun , Tom Rix Subject: [PATCH v1 3/3] fpga: lattice-sysconfig-spi: Don't use "proxy" headers Date: Fri, 8 May 2026 10:25:37 +0200 Message-ID: <20260508082716.1156192-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260508082716.1156192-1-andriy.shevchenko@linux.intel.com> References: <20260508082716.1156192-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update header inclusions to follow IWYU (Include What You Use) principle. Signed-off-by: Andy Shevchenko Reviewed-by: Xu Yilun --- drivers/fpga/lattice-sysconfig-spi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/fpga/lattice-sysconfig-spi.c b/drivers/fpga/lattice-sy= sconfig-spi.c index 76df5d7ad1f4..8462bc4be06e 100644 --- a/drivers/fpga/lattice-sysconfig-spi.c +++ b/drivers/fpga/lattice-sysconfig-spi.c @@ -3,8 +3,14 @@ * Lattice FPGA programming over slave SPI sysCONFIG interface. */ =20 -#include +#include +#include +#include +#include +#include +#include #include +#include =20 #include "lattice-sysconfig.h" =20 --=20 2.50.1