Skip to content

Commit cbb9a57

Browse files
committed
Merge tag 'fpga-for-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/fpga/linux-fpga into char-misc-next
Xu writes: FPGA Manager changes for 6.1-rc1 DFL - Matthew's change adds new device IDs supported by DFL. - Dan's change uses array_size() for memory allocation to prevent potential overflow Microchip - Conor's change adds MODULE_AUTHOR entry for microchip-spi driver - Krzysztof's change refines dt-bindings Intel m10 bmc secure update - Russ's change adds new device ID supported by the driver All patches have been reviewed on the mailing list, and have been in the last linux-next releases (as part of our for-next branch). Signed-off-by: Xu Yilun <yilun.xu@intel.com> * tag 'fpga-for-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/fpga/linux-fpga: fpga: m10bmc-sec: d5005 bmc secure update driver fpga: prevent integer overflow in dfl_feature_ioctl_set_irq() dt-bindings: fpga: microchip,mpf-spi-fpga-mgr: use spi-peripheral-props.yaml fpga: microchip-spi: add missing module author entry fpga: dfl-pci: Add IDs for Intel N6000, N6001 and C6100 cards
2 parents ceecbbd + 562d0bf commit cbb9a57

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

Documentation/devicetree/bindings/fpga/microchip,mpf-spi-fpga-mgr.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ properties:
2222
description: SPI chip select
2323
maxItems: 1
2424

25-
spi-max-frequency: true
26-
2725
required:
2826
- compatible
2927
- reg
3028

31-
additionalProperties: false
29+
allOf:
30+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
31+
32+
unevaluatedProperties: false
3233

3334
examples:
3435
- |

drivers/fpga/dfl-pci.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,18 @@ static void cci_pci_free_irq(struct pci_dev *pcidev)
7777
#define PCIE_DEVICE_ID_INTEL_PAC_D5005 0x0B2B
7878
#define PCIE_DEVICE_ID_SILICOM_PAC_N5010 0x1000
7979
#define PCIE_DEVICE_ID_SILICOM_PAC_N5011 0x1001
80+
#define PCIE_DEVICE_ID_INTEL_DFL 0xbcce
81+
/* PCI Subdevice ID for PCIE_DEVICE_ID_INTEL_DFL */
82+
#define PCIE_SUBDEVICE_ID_INTEL_N6000 0x1770
83+
#define PCIE_SUBDEVICE_ID_INTEL_N6001 0x1771
84+
#define PCIE_SUBDEVICE_ID_INTEL_C6100 0x17d4
8085

8186
/* VF Device */
8287
#define PCIE_DEVICE_ID_VF_INT_5_X 0xBCBF
8388
#define PCIE_DEVICE_ID_VF_INT_6_X 0xBCC1
8489
#define PCIE_DEVICE_ID_VF_DSC_1_X 0x09C5
8590
#define PCIE_DEVICE_ID_INTEL_PAC_D5005_VF 0x0B2C
91+
#define PCIE_DEVICE_ID_INTEL_DFL_VF 0xbccf
8692

8793
static struct pci_device_id cci_pcie_id_tbl[] = {
8894
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_PF_INT_5_X),},
@@ -96,6 +102,18 @@ static struct pci_device_id cci_pcie_id_tbl[] = {
96102
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_PAC_D5005_VF),},
97103
{PCI_DEVICE(PCI_VENDOR_ID_SILICOM_DENMARK, PCIE_DEVICE_ID_SILICOM_PAC_N5010),},
98104
{PCI_DEVICE(PCI_VENDOR_ID_SILICOM_DENMARK, PCIE_DEVICE_ID_SILICOM_PAC_N5011),},
105+
{PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL,
106+
PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6000),},
107+
{PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL_VF,
108+
PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6000),},
109+
{PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL,
110+
PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6001),},
111+
{PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL_VF,
112+
PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6001),},
113+
{PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL,
114+
PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_C6100),},
115+
{PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL_VF,
116+
PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_C6100),},
99117
{0,}
100118
};
101119
MODULE_DEVICE_TABLE(pci, cci_pcie_id_tbl);

drivers/fpga/dfl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ long dfl_feature_ioctl_set_irq(struct platform_device *pdev,
18661866
return -EINVAL;
18671867

18681868
fds = memdup_user((void __user *)(arg + sizeof(hdr)),
1869-
hdr.count * sizeof(s32));
1869+
array_size(hdr.count, sizeof(s32)));
18701870
if (IS_ERR(fds))
18711871
return PTR_ERR(fds);
18721872

drivers/fpga/intel-m10-bmc-sec-update.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,9 @@ static const struct platform_device_id intel_m10bmc_sec_ids[] = {
605605
{
606606
.name = "n3000bmc-sec-update",
607607
},
608+
{
609+
.name = "d5005bmc-sec-update",
610+
},
608611
{ }
609612
};
610613
MODULE_DEVICE_TABLE(platform, intel_m10bmc_sec_ids);

drivers/fpga/microchip-spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,5 @@ static struct spi_driver mpf_driver = {
395395
module_spi_driver(mpf_driver);
396396

397397
MODULE_DESCRIPTION("Microchip Polarfire SPI FPGA Manager");
398+
MODULE_AUTHOR("Ivan Bornyakov <i.bornyakov@metrotek.ru>");
398399
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)