linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: phy-tegra-usb.c: wrong pointer check for remap UTMI
@ 2013-12-04  2:02 Chris Ruehl
  2013-12-04  3:59 ` Stephen Warren
       [not found] ` <1386122564-4246-1-git-send-email-chris.ruehl-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Ruehl @ 2013-12-04  2:02 UTC (permalink / raw)
  To: balbi
  Cc: gregkh, swarren, thierry.reding, linux-usb, linux-tegra,
	linux-kernel, Chris Ruehl

usb: phy-tegra-usb.c: wrong pointer check for remap UTMI

A wrong pointer was used to test the result of devm_ioremap()

Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
---
 drivers/usb/phy/phy-tegra-usb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/phy/phy-tegra-usb.c b/drivers/usb/phy/phy-tegra-usb.c
index 82232ac..bbe4f8e 100644
--- a/drivers/usb/phy/phy-tegra-usb.c
+++ b/drivers/usb/phy/phy-tegra-usb.c
@@ -876,7 +876,7 @@ static int utmi_phy_probe(struct tegra_usb_phy *tegra_phy,
 
 	tegra_phy->pad_regs = devm_ioremap(&pdev->dev, res->start,
 		resource_size(res));
-	if (!tegra_phy->regs) {
+	if (!tegra_phy->pad_regs) {
 		dev_err(&pdev->dev, "Failed to remap UTMI Pad regs\n");
 		return -ENOMEM;
 	}
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb: phy-tegra-usb.c: wrong pointer check for remap UTMI
  2013-12-04  2:02 [PATCH] usb: phy-tegra-usb.c: wrong pointer check for remap UTMI Chris Ruehl
@ 2013-12-04  3:59 ` Stephen Warren
  2013-12-04  6:05   ` Venu Byravarasu
       [not found] ` <1386122564-4246-1-git-send-email-chris.ruehl-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
  1 sibling, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2013-12-04  3:59 UTC (permalink / raw)
  To: Chris Ruehl, balbi
  Cc: gregkh, thierry.reding, linux-usb, linux-tegra, linux-kernel,
	Venu Byravarasu

On 12/03/2013 07:02 PM, Chris Ruehl wrote:
> usb: phy-tegra-usb.c: wrong pointer check for remap UTMI
> 
> A wrong pointer was used to test the result of devm_ioremap()
> 
> Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
> Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>

Out of curiosity, when did that ack happen? I didn't see it. But anyway,

Acked-by: Stephen Warren <swarren@nvidia.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] usb: phy-tegra-usb.c: wrong pointer check for remap UTMI
  2013-12-04  3:59 ` Stephen Warren
@ 2013-12-04  6:05   ` Venu Byravarasu
  0 siblings, 0 replies; 4+ messages in thread
From: Venu Byravarasu @ 2013-12-04  6:05 UTC (permalink / raw)
  To: Stephen Warren, Chris Ruehl, balbi@ti.com
  Cc: gregkh@linuxfoundation.org, thierry.reding@gmail.com,
	linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org,
	linux-kernel@vger.kernel.org

Hi Stephen,

Initially Chris sent this patch to Linux-USB alias alone & there I Acked it.
Plz check http://marc.info/?l=linux-usb&m=138475663023376&w=1 

Then he resent the patch to linux-kernel alias with my ACK added.

Thanks,
Venu


> -----Original Message-----
> From: Stephen Warren [mailto:swarren@wwwdotorg.org]
> Sent: Wednesday, December 04, 2013 9:29 AM
> To: Chris Ruehl; balbi@ti.com
> Cc: gregkh@linuxfoundation.org; thierry.reding@gmail.com; linux-
> usb@vger.kernel.org; linux-tegra@vger.kernel.org; linux-
> kernel@vger.kernel.org; Venu Byravarasu
> Subject: Re: [PATCH] usb: phy-tegra-usb.c: wrong pointer check for remap
> UTMI
> 
> On 12/03/2013 07:02 PM, Chris Ruehl wrote:
> > usb: phy-tegra-usb.c: wrong pointer check for remap UTMI
> >
> > A wrong pointer was used to test the result of devm_ioremap()
> >
> > Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
> > Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
> 
> Out of curiosity, when did that ack happen? I didn't see it. But anyway,
> 
> Acked-by: Stephen Warren <swarren@nvidia.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb: phy-tegra-usb.c: wrong pointer check for remap UTMI
       [not found] ` <1386122564-4246-1-git-send-email-chris.ruehl-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
@ 2013-12-04 10:02   ` Thierry Reding
  0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2013-12-04 10:02 UTC (permalink / raw)
  To: Chris Ruehl
  Cc: balbi-l0cyMroinI0, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
	swarren-3lzwWm7+Weoh9ZMKESR00Q, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

On Wed, Dec 04, 2013 at 10:02:44AM +0800, Chris Ruehl wrote:
> usb: phy-tegra-usb.c: wrong pointer check for remap UTMI
> 
> A wrong pointer was used to test the result of devm_ioremap()
> 
> Signed-off-by: Chris Ruehl <chris.ruehl-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
> Acked-by: Venu Byravarasu <vbyravarasu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
>  drivers/usb/phy/phy-tegra-usb.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-04 10:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-04  2:02 [PATCH] usb: phy-tegra-usb.c: wrong pointer check for remap UTMI Chris Ruehl
2013-12-04  3:59 ` Stephen Warren
2013-12-04  6:05   ` Venu Byravarasu
     [not found] ` <1386122564-4246-1-git-send-email-chris.ruehl-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
2013-12-04 10:02   ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).