From: Alan Tull <atull@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Moritz Fischer <moritz.fischer@ettus.com>,
Alan Tull <atull@kernel.org>,
linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org
Subject: [PATCH 0/5] fpga: ts73xx and iCE40 support
Date: Mon, 27 Feb 2017 16:14:21 -0600 [thread overview]
Message-ID: <20170227221426.4176-1-atull@kernel.org> (raw)
Hi Greg,
Please take these patches that add FPGA suppport
for ts73xx and iCE0 FPGAs. I've done small fixups.
drivers/fpga/ice40-spi.c:
fix printf format s/%ld/%d/ in 2 places
drivers/fpga/ts73xx-fpga.c:
remove error message in probe.
More details on the fixups:
diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c
index 6a4194be9f00..7fca82023062 100644
--- a/drivers/fpga/ice40-spi.c
+++ b/drivers/fpga/ice40-spi.c
@@ -163,14 +163,14 @@ static int ice40_fpga_probe(struct spi_device *spi)
priv->cdone = devm_gpiod_get(dev, "cdone", GPIOD_IN);
if (IS_ERR(priv->cdone)) {
ret = PTR_ERR(priv->cdone);
- dev_err(dev, "Failed to get CDONE GPIO: %ld\n", ret);
+ dev_err(dev, "Failed to get CDONE GPIO: %d\n", ret);
return ret;
}
priv->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
if (IS_ERR(priv->reset)) {
ret = PTR_ERR(priv->reset);
- dev_err(dev, "Failed to get CRESET_B GPIO: %ld\n", ret);
+ dev_err(dev, "Failed to get CRESET_B GPIO: %d\n", ret);
return ret;
}
diff --git a/drivers/fpga/ts73xx-fpga.c b/drivers/fpga/ts73xx-fpga.c
index 5acdbcfe447b..f6a96b42e2ca 100644
--- a/drivers/fpga/ts73xx-fpga.c
+++ b/drivers/fpga/ts73xx-fpga.c
@@ -117,7 +117,6 @@ static int ts73xx_fpga_probe(struct platform_device *pdev)
struct device *kdev = &pdev->dev;
struct ts73xx_fpga_priv *priv;
struct resource *res;
- int err;
priv = devm_kzalloc(kdev, sizeof(*priv), GFP_KERNEL);
if (!priv)
@@ -132,14 +131,8 @@ static int ts73xx_fpga_probe(struct platform_device *pdev)
return PTR_ERR(priv->io_base);
}
- err = fpga_mgr_register(kdev, "TS-73xx FPGA Manager",
- &ts73xx_fpga_ops, priv);
- if (err) {
- dev_err(kdev, "failed to register FPGA manager\n");
- return err;
- }
-
- return err;
+ return fpga_mgr_register(kdev, "TS-73xx FPGA Manager",
+ &ts73xx_fpga_ops, priv);
}
static int ts73xx_fpga_remove(struct platform_device *pdev)
Alan
Florian Fainelli (2):
FPGA: Add TS-7300 FPGA manager
ARM: ep93xx: Register ts73xx-fpga manager driver for TS-7300
Joel Holdsworth (3):
of: Add vendor prefix for Lattice Semiconductor
Documentation: Add binding document for Lattice iCE40 FPGA manager
fpga: Add support for Lattice iCE40 FPGAs
.../bindings/fpga/lattice-ice40-fpga-mgr.txt | 21 +++
.../devicetree/bindings/vendor-prefixes.txt | 1 +
arch/arm/mach-ep93xx/ts72xx.c | 26 +++
drivers/fpga/Kconfig | 13 ++
drivers/fpga/Makefile | 2 +
drivers/fpga/ice40-spi.c | 207 +++++++++++++++++++++
drivers/fpga/ts73xx-fpga.c | 156 ++++++++++++++++
7 files changed, 426 insertions(+)
create mode 100644 Documentation/devicetree/bindings/fpga/lattice-ice40-fpga-mgr.txt
create mode 100644 drivers/fpga/ice40-spi.c
create mode 100644 drivers/fpga/ts73xx-fpga.c
--
2.7.4
next reply other threads:[~2017-02-27 22:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 22:14 Alan Tull [this message]
2017-02-27 22:14 ` [PATCH 1/5] FPGA: Add TS-7300 FPGA manager Alan Tull
2017-03-15 2:24 ` Florian Fainelli
2017-03-15 16:45 ` Alan Tull
2017-02-27 22:14 ` [PATCH 2/5] ARM: ep93xx: Register ts73xx-fpga manager driver for TS-7300 Alan Tull
2017-02-27 22:14 ` [PATCH 3/5] of: Add vendor prefix for Lattice Semiconductor Alan Tull
2017-02-27 22:14 ` [PATCH 4/5] Documentation: Add binding document for Lattice iCE40 FPGA manager Alan Tull
2017-02-27 22:14 ` [PATCH 5/5] fpga: Add support for Lattice iCE40 FPGAs Alan Tull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170227221426.4176-1-atull@kernel.org \
--to=atull@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-fpga@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=moritz.fischer@ettus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.