* [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() [not found] <1359627939-2685-1-git-send-email-sachin.kamat@linaro.org> @ 2013-01-31 10:25 ` Sachin Kamat 2013-01-31 17:00 ` Stephen Warren 0 siblings, 1 reply; 10+ messages in thread From: Sachin Kamat @ 2013-01-31 10:25 UTC (permalink / raw) To: linux-kernel Cc: thierry.reding, gregkh, sachin.kamat, Laxman Dewangan, linux-serial Use the newly introduced devm_ioremap_resource() instead of devm_request_and_ioremap() which provides more consistent error handling. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Laxman Dewangan <ldewangan@nvidia.com> Cc: linux-serial@vger.kernel.org --- Compile tested with linux-next (20130128). --- drivers/tty/serial/serial-tegra.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c index 4f5e629..80dfec1 100644 --- a/drivers/tty/serial/serial-tegra.c +++ b/drivers/tty/serial/serial-tegra.c @@ -26,6 +26,7 @@ #include <linux/dmaengine.h> #include <linux/dma-mapping.h> #include <linux/dmapool.h> +#include <linux/err.h> #include <linux/io.h> #include <linux/irq.h> #include <linux/module.h> @@ -1302,10 +1303,10 @@ static int tegra_uart_probe(struct platform_device *pdev) } u->mapbase = resource->start; - u->membase = devm_request_and_ioremap(&pdev->dev, resource); - if (!u->membase) { + u->membase = devm_ioremap_resource(&pdev->dev, resource); + if (IS_ERR(u->membase)) { dev_err(&pdev->dev, "memregion/iomap address req failed\n"); - return -EADDRNOTAVAIL; + return PTR_ERR(u->membase); } tup->uart_clk = devm_clk_get(&pdev->dev, NULL); -- 1.7.4.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() 2013-01-31 10:25 ` [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() Sachin Kamat @ 2013-01-31 17:00 ` Stephen Warren 2013-02-01 4:20 ` Sachin Kamat 0 siblings, 1 reply; 10+ messages in thread From: Stephen Warren @ 2013-01-31 17:00 UTC (permalink / raw) To: Sachin Kamat Cc: linux-kernel, thierry.reding, gregkh, Laxman Dewangan, linux-serial On 01/31/2013 03:25 AM, Sachin Kamat wrote: > Use the newly introduced devm_ioremap_resource() instead of > devm_request_and_ioremap() which provides more consistent error handling. Presumably though that function isn't yet available in the tree that this new serial driver was merged through is it? ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() 2013-01-31 17:00 ` Stephen Warren @ 2013-02-01 4:20 ` Sachin Kamat 2013-02-01 4:24 ` Stephen Warren 0 siblings, 1 reply; 10+ messages in thread From: Sachin Kamat @ 2013-02-01 4:20 UTC (permalink / raw) To: Stephen Warren Cc: linux-kernel, thierry.reding, gregkh, Laxman Dewangan, linux-serial On 31 January 2013 22:30, Stephen Warren <swarren@wwwdotorg.org> wrote: > On 01/31/2013 03:25 AM, Sachin Kamat wrote: >> Use the newly introduced devm_ioremap_resource() instead of >> devm_request_and_ioremap() which provides more consistent error handling. > > Presumably though that function isn't yet available in the tree that > this new serial driver was merged through is it? The entire series is merged in Greg's driver-core tree [1] and I presume all other associated patches would also be picked up by him. Isn't it Greg? [1] git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git -- With warm regards, Sachin ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() 2013-02-01 4:20 ` Sachin Kamat @ 2013-02-01 4:24 ` Stephen Warren 2013-02-01 9:49 ` Sachin Kamat 0 siblings, 1 reply; 10+ messages in thread From: Stephen Warren @ 2013-02-01 4:24 UTC (permalink / raw) To: Sachin Kamat Cc: linux-kernel, thierry.reding, gregkh, Laxman Dewangan, linux-serial On 01/31/2013 09:20 PM, Sachin Kamat wrote: > On 31 January 2013 22:30, Stephen Warren <swarren@wwwdotorg.org> wrote: >> On 01/31/2013 03:25 AM, Sachin Kamat wrote: >>> Use the newly introduced devm_ioremap_resource() instead of >>> devm_request_and_ioremap() which provides more consistent error handling. >> >> Presumably though that function isn't yet available in the tree that >> this new serial driver was merged through is it? > > The entire series is merged in Greg's driver-core tree [1] and I > presume all other associated patches would also be picked up by him. > Isn't it Greg? > > [1] git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git The Tegra serial driver went through Greg's TTY tree. I assume that goes direct to Linus not through driver-core.git first. https://git.kernel.org/?p=linux/kernel/git/gregkh/tty.git;a=shortlog;h=refs/heads/tty-next ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() 2013-02-01 4:24 ` Stephen Warren @ 2013-02-01 9:49 ` Sachin Kamat 2013-02-01 17:18 ` Stephen Warren 0 siblings, 1 reply; 10+ messages in thread From: Sachin Kamat @ 2013-02-01 9:49 UTC (permalink / raw) To: Stephen Warren Cc: linux-kernel, thierry.reding, gregkh, Laxman Dewangan, linux-serial On 1 February 2013 09:54, Stephen Warren <swarren@wwwdotorg.org> wrote: >> >> The entire series is merged in Greg's driver-core tree [1] and I >> presume all other associated patches would also be picked up by him. >> Isn't it Greg? >> >> [1] git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git > > The Tegra serial driver went through Greg's TTY tree. I assume that goes > direct to Linus not through driver-core.git first. Right. But AFAIK for this specific change he has carried the patches in the device-core tree irrespective of the subsystem. -- With warm regards, Sachin ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() 2013-02-01 9:49 ` Sachin Kamat @ 2013-02-01 17:18 ` Stephen Warren [not found] ` <CAK9yfHx1jLPpdCHAb-pC-C7wt81gQLgTnpuvK+0aNKkhuXHcDQ@mail.gmail.com> 0 siblings, 1 reply; 10+ messages in thread From: Stephen Warren @ 2013-02-01 17:18 UTC (permalink / raw) To: Sachin Kamat Cc: linux-kernel, thierry.reding, gregkh, Laxman Dewangan, linux-serial On 02/01/2013 02:49 AM, Sachin Kamat wrote: > On 1 February 2013 09:54, Stephen Warren <swarren@wwwdotorg.org> wrote: >>> >>> The entire series is merged in Greg's driver-core tree [1] and I >>> presume all other associated patches would also be picked up by him. >>> Isn't it Greg? >>> >>> [1] git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git >> >> The Tegra serial driver went through Greg's TTY tree. I assume that goes >> direct to Linus not through driver-core.git first. > > Right. But AFAIK for this specific change he has carried the patches > in the device-core tree irrespective of the subsystem. Yes, but the Tegra serial driver is new for 3.9, and hence does not yet exist in driver-core.git. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <CAK9yfHx1jLPpdCHAb-pC-C7wt81gQLgTnpuvK+0aNKkhuXHcDQ@mail.gmail.com>]
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() [not found] ` <CAK9yfHx1jLPpdCHAb-pC-C7wt81gQLgTnpuvK+0aNKkhuXHcDQ@mail.gmail.com> @ 2013-03-15 16:38 ` gregkh 2013-03-15 17:14 ` Stephen Warren 0 siblings, 1 reply; 10+ messages in thread From: gregkh @ 2013-03-15 16:38 UTC (permalink / raw) To: Sachin Kamat Cc: Stephen Warren, linux-kernel@vger.kernel.org, thierry.reding@avionic-design.de, Laxman Dewangan, linux-serial@vger.kernel.org On Sat, Feb 02, 2013 at 10:22:16AM +0530, Sachin Kamat wrote: > > > On Friday, 1 February 2013, Stephen Warren <swarren@wwwdotorg.org> wrote: > > On 02/01/2013 02:49 AM, Sachin Kamat wrote: > >> On 1 February 2013 09:54, Stephen Warren <swarren@wwwdotorg.org> wrote: > >>>> > >>>> The entire series is merged in Greg's driver-core tree [1] and I > >>>> presume all other associated patches would also be picked up by him. > >>>> Isn't it Greg? > >>>> > >>>> [1] git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git > >>> > >>> The Tegra serial driver went through Greg's TTY tree. I assume that goes > >>> direct to Linus not through driver-core.git first. > >> > >> Right. But AFAIK for this specific change he has carried the patches > >> in the device-core tree irrespective of the subsystem. > > > > Yes, but the Tegra serial driver is new for 3.9, and hence does not yet > > exist in driver-core.git. > > > > Oh ok. Then probably we can have this patch only after 3.9-rc1 is out. Yes, Stephen can take this patch now. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() 2013-03-15 16:38 ` gregkh @ 2013-03-15 17:14 ` Stephen Warren 2013-03-15 17:33 ` gregkh 0 siblings, 1 reply; 10+ messages in thread From: Stephen Warren @ 2013-03-15 17:14 UTC (permalink / raw) To: gregkh@linuxfoundation.org Cc: Sachin Kamat, linux-kernel@vger.kernel.org, thierry.reding@avionic-design.de, Laxman Dewangan, linux-serial@vger.kernel.org On 03/15/2013 10:38 AM, gregkh@linuxfoundation.org wrote: > On Sat, Feb 02, 2013 at 10:22:16AM +0530, Sachin Kamat wrote: >> >> >> On Friday, 1 February 2013, Stephen Warren <swarren@wwwdotorg.org> wrote: >>> On 02/01/2013 02:49 AM, Sachin Kamat wrote: >>>> On 1 February 2013 09:54, Stephen Warren <swarren@wwwdotorg.org> wrote: >>>>>> >>>>>> The entire series is merged in Greg's driver-core tree [1] and I >>>>>> presume all other associated patches would also be picked up by him. >>>>>> Isn't it Greg? >>>>>> >>>>>> [1] git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git >>>>> >>>>> The Tegra serial driver went through Greg's TTY tree. I assume that goes >>>>> direct to Linus not through driver-core.git first. >>>> >>>> Right. But AFAIK for this specific change he has carried the patches >>>> in the device-core tree irrespective of the subsystem. >>> >>> Yes, but the Tegra serial driver is new for 3.9, and hence does not yet >>> exist in driver-core.git. >>> >> >> Oh ok. Then probably we can have this patch only after 3.9-rc1 is out. > > Yes, Stephen can take this patch now. There's no need for me to take the patch I think; now that 3.9-rc1 is out, the serial and driver core trees all have whatever dependencies this series needed, so any patches can go through their usual trees, I think... (Sorry, the context of this discussion was little while ago). ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() 2013-03-15 17:14 ` Stephen Warren @ 2013-03-15 17:33 ` gregkh 2013-03-18 5:57 ` Sachin Kamat 0 siblings, 1 reply; 10+ messages in thread From: gregkh @ 2013-03-15 17:33 UTC (permalink / raw) To: Stephen Warren Cc: Sachin Kamat, linux-kernel@vger.kernel.org, thierry.reding@avionic-design.de, Laxman Dewangan, linux-serial@vger.kernel.org On Fri, Mar 15, 2013 at 11:14:01AM -0600, Stephen Warren wrote: > On 03/15/2013 10:38 AM, gregkh@linuxfoundation.org wrote: > > On Sat, Feb 02, 2013 at 10:22:16AM +0530, Sachin Kamat wrote: > >> > >> > >> On Friday, 1 February 2013, Stephen Warren <swarren@wwwdotorg.org> wrote: > >>> On 02/01/2013 02:49 AM, Sachin Kamat wrote: > >>>> On 1 February 2013 09:54, Stephen Warren <swarren@wwwdotorg.org> wrote: > >>>>>> > >>>>>> The entire series is merged in Greg's driver-core tree [1] and I > >>>>>> presume all other associated patches would also be picked up by him. > >>>>>> Isn't it Greg? > >>>>>> > >>>>>> [1] git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git > >>>>> > >>>>> The Tegra serial driver went through Greg's TTY tree. I assume that goes > >>>>> direct to Linus not through driver-core.git first. > >>>> > >>>> Right. But AFAIK for this specific change he has carried the patches > >>>> in the device-core tree irrespective of the subsystem. > >>> > >>> Yes, but the Tegra serial driver is new for 3.9, and hence does not yet > >>> exist in driver-core.git. > >>> > >> > >> Oh ok. Then probably we can have this patch only after 3.9-rc1 is out. > > > > Yes, Stephen can take this patch now. > > There's no need for me to take the patch I think; now that 3.9-rc1 is > out, the serial and driver core trees all have whatever dependencies > this series needed, so any patches can go through their usual trees, I > think... (Sorry, the context of this discussion was little while ago). Ok, can someone please resend the serial patch then? I dropped it. thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() 2013-03-15 17:33 ` gregkh @ 2013-03-18 5:57 ` Sachin Kamat 0 siblings, 0 replies; 10+ messages in thread From: Sachin Kamat @ 2013-03-18 5:57 UTC (permalink / raw) To: gregkh@linuxfoundation.org Cc: Stephen Warren, linux-kernel@vger.kernel.org, thierry.reding@avionic-design.de, Laxman Dewangan, linux-serial@vger.kernel.org >> There's no need for me to take the patch I think; now that 3.9-rc1 is >> out, the serial and driver core trees all have whatever dependencies >> this series needed, so any patches can go through their usual trees, I >> think... (Sorry, the context of this discussion was little while ago). > > Ok, can someone please resend the serial patch then? I dropped it. > You already applied the resent version of this patch. Thanks Greg :) -- With warm regards, Sachin ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-03-18 5:57 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1359627939-2685-1-git-send-email-sachin.kamat@linaro.org>
2013-01-31 10:25 ` [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource() Sachin Kamat
2013-01-31 17:00 ` Stephen Warren
2013-02-01 4:20 ` Sachin Kamat
2013-02-01 4:24 ` Stephen Warren
2013-02-01 9:49 ` Sachin Kamat
2013-02-01 17:18 ` Stephen Warren
[not found] ` <CAK9yfHx1jLPpdCHAb-pC-C7wt81gQLgTnpuvK+0aNKkhuXHcDQ@mail.gmail.com>
2013-03-15 16:38 ` gregkh
2013-03-15 17:14 ` Stephen Warren
2013-03-15 17:33 ` gregkh
2013-03-18 5:57 ` Sachin Kamat
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox