* [PATCH v1] spi: dw: amend warning message
@ 2015-01-02 14:06 Andy Shevchenko
[not found] ` <1420207565-14712-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2015-01-02 14:06 UTC (permalink / raw)
To: Mark Brown, linux-spi; +Cc: Andy Shevchenko
In case of warning message in ->probe() we have to use HW device name instead
of master because last is not defined yet.
Signed-off-by: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
drivers/spi/spi-dw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index 7de8b50..83d17e38 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -659,7 +659,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws)
if (dws->dma_ops && dws->dma_ops->dma_init) {
ret = dws->dma_ops->dma_init(dws);
if (ret) {
- dev_warn(&master->dev, "DMA init failed\n");
+ dev_warn(dev, "DMA init failed\n");
dws->dma_inited = 0;
} else {
master->can_dma = dws->dma_ops->can_dma;
--
2.1.3
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1420207565-14712-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>]
* Re: [PATCH v1] spi: dw: amend warning message [not found] ` <1420207565-14712-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> @ 2015-01-02 14:11 ` Andy Shevchenko [not found] ` <1420207868.12456.16.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Andy Shevchenko @ 2015-01-02 14:11 UTC (permalink / raw) To: Mark Brown; +Cc: linux-spi On Fri, 2015-01-02 at 16:06 +0200, Andy Shevchenko wrote: > In case of warning message in ->probe() we have to use HW device name instead > of master because last is not defined yet. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> > --- > drivers/spi/spi-dw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c > index 7de8b50..83d17e38 100644 > --- a/drivers/spi/spi-dw.c > +++ b/drivers/spi/spi-dw.c > @@ -659,7 +659,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) > if (dws->dma_ops && dws->dma_ops->dma_init) { > ret = dws->dma_ops->dma_init(dws); > if (ret) { > - dev_warn(&master->dev, "DMA init failed\n"); > + dev_warn(dev, "DMA init failed\n"); > dws->dma_inited = 0; > } else { > master->can_dma = dws->dma_ops->can_dma; Oops, based on some WIP patches, though still applies smoothly on top of recent linux-next. -- Andy Shevchenko <andriy.shevchenko-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1420207868.12456.16.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>]
* Re: [PATCH v1] spi: dw: amend warning message [not found] ` <1420207868.12456.16.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> @ 2015-01-05 20:21 ` Mark Brown [not found] ` <20150105202106.GO2634-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Mark Brown @ 2015-01-05 20:21 UTC (permalink / raw) To: Andy Shevchenko; +Cc: linux-spi [-- Attachment #1: Type: text/plain, Size: 387 bytes --] On Fri, Jan 02, 2015 at 04:11:08PM +0200, Andy Shevchenko wrote: > On Fri, 2015-01-02 at 16:06 +0200, Andy Shevchenko wrote: > > + dev_warn(dev, "DMA init failed\n"); > Oops, based on some WIP patches, though still applies smoothly on top of > recent linux-next. Not with git am it doesn't (I suspect mostly because it's easily confused by not having the required SHA1s but still). [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20150105202106.GO2634-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>]
* Re: [PATCH v1] spi: dw: amend warning message [not found] ` <20150105202106.GO2634-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> @ 2015-01-07 14:58 ` Andy Shevchenko 0 siblings, 0 replies; 4+ messages in thread From: Andy Shevchenko @ 2015-01-07 14:58 UTC (permalink / raw) To: Mark Brown; +Cc: linux-spi On Mon, 2015-01-05 at 20:21 +0000, Mark Brown wrote: > On Fri, Jan 02, 2015 at 04:11:08PM +0200, Andy Shevchenko wrote: > > On Fri, 2015-01-02 at 16:06 +0200, Andy Shevchenko wrote: > > > > + dev_warn(dev, "DMA init failed\n"); > > > Oops, based on some WIP patches, though still applies smoothly on top of > > recent linux-next. > > Not with git am it doesn't (I suspect mostly because it's easily > confused by not having the required SHA1s but still). git am -C1 -s helps, but anyway I submitted v2 with one additional patch (the add-on I suggested to Alex Lin to print FIFO size when autodetection happened). -- Andy Shevchenko <andriy.shevchenko-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-07 14:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-02 14:06 [PATCH v1] spi: dw: amend warning message Andy Shevchenko
[not found] ` <1420207565-14712-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-01-02 14:11 ` Andy Shevchenko
[not found] ` <1420207868.12456.16.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-01-05 20:21 ` Mark Brown
[not found] ` <20150105202106.GO2634-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-01-07 14:58 ` Andy Shevchenko
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.