patch "fpga-manager: altera-ps-spi: preserve nCONFIG state" added to char-misc-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
fpga-manager: altera-ps-spi: preserve nCONFIG state
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
881c93c0fb73328845898344208fa0bf0d62cac6Mon Sep 17 00:00:00 2001
From: Anatolij Gustschin <[email protected]>
Date: Sun, 15 Apr 2018 11:33:08 -0700
Subject: fpga-manager: altera-ps-spi: preserve nCONFIG state
If the driver module is loaded when FPGA is configured, the FPGA is reset because nconfig is pulled low (low-active gpio inited with GPIOD_OUT_HIGH activates the signal which means setting its value to low). Init nconfig with GPIOD_OUT_LOW to prevent this.
--- drivers/fpga/altera-ps-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/altera-ps-spi.c +1 -1
@@ -249,7 +249,7 @@ static int altera_ps_probe(struct spi_device *spi) conf->data = of_id->data; conf->spi = spi; - conf->config =devm_gpiod_get (&spi->dev,"nconfig" ,GPIOD_OUT_HIGH ); + conf->config =devm_gpiod_get (&spi->dev,"nconfig" ,GPIOD_OUT_LOW );if (IS_ERR (conf->config)) {dev_err (&spi->dev,"Failed to get config gpio: %ld\n" ,PTR_ERR (conf->config));
Signature · 1 line
2.17.0