Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1559998
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 3/3] spi: pca2xx-pci: Allow MSI |
| Date | Mon, 16 Jan 2017 20:20:01 +0100 |
| Message-ID | <t0kYV-4Ub-1@gated-at.bofh.it> (permalink) |
| References | <t0kvU-4pV-7@gated-at.bofh.it> <t0kvU-4pV-13@gated-at.bofh.it> |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.33,240,1477983600"; d="scan'208";a="1094843527" |
| Organization | Intel Finland Oy |
| Content-Type | text/plain; charset="UTF-8" |
| X-Mailer | Evolution 3.22.3-1 |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 8bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 45 |
| X-Original-Cc | linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr>, linux-kernel@vger.kernel.org, Mika Westerberg <mika.westerberg@linux.intel.com>, Jarkko Nikula <jarkko.nikula@linux.intel.com>, Sascha Weisenberger <sascha.weisenberger@siemens.com> |
| X-Original-Date | Mon, 16 Jan 2017 21:08:38 +0200 |
| X-Original-Message-ID | <1484593718.2133.156.camel@linux.intel.com> |
| X-Original-References | <cover.1484592296.git.jan.kiszka@siemens.com> <9f5bc54a5842b383dc81fa8586d6774c03d2c452.1484592296.git.jan.kiszka@siemens.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1559998 |
Show key headers only | View raw
On Mon, 2017-01-16 at 19:44 +0100, Jan Kiszka wrote: > Now that the core is ready for edge-triggered interrupts, we can > safely > allow the PCI versions that provide this to enable the feature and, > thus, have less shared interrupts. > Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > drivers/spi/spi-pxa2xx-pci.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx- > pci.c > index 58d2d48..58dcadb 100644 > --- a/drivers/spi/spi-pxa2xx-pci.c > +++ b/drivers/spi/spi-pxa2xx-pci.c > @@ -203,10 +203,16 @@ static int pxa2xx_spi_pci_probe(struct pci_dev > *dev, > ssp = &spi_pdata.ssp; > ssp->phys_base = pci_resource_start(dev, 0); > ssp->mmio_base = pcim_iomap_table(dev)[0]; > - ssp->irq = dev->irq; > ssp->port_id = (c->port_id >= 0) ? c->port_id : dev->devfn; > ssp->type = c->type; > > + pci_set_master(dev); > + > + ret = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_ALL_TYPES); > + if (ret < 0) > + return ret; + perhaps an empty line? > + ssp->irq = pci_irq_vector(dev, 0); > + > snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id); > ssp->clk = clk_register_fixed_rate(&dev->dev, buf , NULL, 0, c->max_clk_rate); -- Andy Shevchenko <andriy.shevchenko@linux.intel.com> Intel Finland Oy
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 3/3] spi: pca2xx-pci: Allow MSI Jan Kiszka <jan.kiszka@siemens.com> - 2017-01-16 19:50 +0100
Re: [PATCH v2 3/3] spi: pca2xx-pci: Allow MSI Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-01-16 20:20 +0100
Re: [PATCH v2 3/3] spi: pca2xx-pci: Allow MSI Jarkko Nikula <jarkko.nikula@linux.intel.com> - 2017-01-17 12:20 +0100
Applied "spi: pca2xx-pci: Allow MSI" to the spi tree Mark Brown <broonie@kernel.org> - 2017-01-24 19:50 +0100
csiph-web