linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@codeaurora.org>
To: Felipe Balbi <balbi@ti.com>
Cc: "Ivan T. Ivanov" <iivanov@mm-sol.com>,
	Peter Chen <peter.chen@freescale.com>,
	Jingoo Han <jg1.han@samsung.com>,
	Linux USB Mailing List <linux-usb@vger.kernel.org>,
	Josh Cartwright <joshc@codeaurora.org>,
	linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH] usb: phy: msm: fix possible build error
Date: Tue, 18 Feb 2014 22:28:06 -0800	[thread overview]
Message-ID: <20140219062805.GF14769@codeaurora.org> (raw)
In-Reply-To: <1392784558-26854-1-git-send-email-balbi@ti.com>

On 02/18, Felipe Balbi wrote:
> This will fail builds on configs where
> CONFIG_PM_RUNTIME=y and CONFIG_PM_SLEEP=n.
> 
> Following build error will show up:
> 
>  drivers/usb/phy/phy-msm-usb.c: In function ???msm_otg_runtime_suspend???:
>  drivers/usb/phy/phy-msm-usb.c:1693:2: error: implicit declaration of \
> 	function ???msm_otg_suspend??? [-Werror=implicit-function-declaration]
>    return msm_otg_suspend(motg);
>    ^
>  drivers/usb/phy/phy-msm-usb.c: In function ???msm_otg_runtime_resume???:
>  drivers/usb/phy/phy-msm-usb.c:1701:2: error: implicit declaration of \
> 	function ???msm_otg_resume??? [-Werror=implicit-function-declaration]
>    return msm_otg_resume(motg);
>    ^
> 
> This patch fixes the error by defining msm_otg_{suspend,resume}
> whenever CONFIG_PM=y.
> 
> Signed-off-by: Felipe Balbi <balbi@ti.com>

I'm lost. Didn't Josh send a patch for this to you already?

[1] https://patchwork.kernel.org/patch/3673401/

> ---
>  drivers/usb/phy/phy-msm-usb.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c
> index 64c9d14e..96f31aa 100644
> --- a/drivers/usb/phy/phy-msm-usb.c
> +++ b/drivers/usb/phy/phy-msm-usb.c
> @@ -159,7 +159,7 @@ put_3p3:
>  	return rc;
>  }
>  
> -#ifdef CONFIG_PM_SLEEP
> +#ifdef CONFIG_PM
>  #define USB_PHY_SUSP_DIG_VOL  500000
>  static int msm_hsusb_config_vddcx(int high)
>  {
> @@ -440,7 +440,7 @@ static int msm_otg_reset(struct usb_phy *phy)
>  #define PHY_SUSPEND_TIMEOUT_USEC	(500 * 1000)
>  #define PHY_RESUME_TIMEOUT_USEC	(100 * 1000)
>  
> -#ifdef CONFIG_PM_SLEEP
> +#ifdef CONFIG_PM
>  static int msm_otg_suspend(struct msm_otg *motg)
>  {
>  	struct usb_phy *phy = &motg->phy;
> -- 
> 1.9.0
> 

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

       reply	other threads:[~2014-02-19  6:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1392784558-26854-1-git-send-email-balbi@ti.com>
2014-02-19  6:28 ` Stephen Boyd [this message]
2014-02-19 19:43   ` [PATCH] usb: phy: msm: fix possible build error Felipe Balbi

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=20140219062805.GF14769@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=balbi@ti.com \
    --cc=iivanov@mm-sol.com \
    --cc=jg1.han@samsung.com \
    --cc=joshc@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=peter.chen@freescale.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 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).