From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
To: gregkh@linuxfoundation.org
Cc: linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Subject: [PATCH 2/2] usb: renesas_usbhs: remove controlling PWEN/EXTLP support
Date: Tue, 4 Jun 2019 13:09:35 +0900 [thread overview]
Message-ID: <1559621375-5436-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> (raw)
In-Reply-To: <1559621375-5436-1-git-send-email-yoshihiro.shimoda.uh@renesas.com>
Controlling PWMEN/EXTLP (named as "has_otg") was supported in v3.2,
but was never used by any platform. So, this patch remove it.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
drivers/usb/renesas_usbhs/common.c | 4 ----
include/linux/usb/renesas_usbhs.h | 1 -
2 files changed, 5 deletions(-)
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index c7c9c5d..a501ea6 100644
--- a/drivers/usb/renesas_usbhs/common.c
+++ b/drivers/usb/renesas_usbhs/common.c
@@ -95,10 +95,6 @@ void usbhs_sys_host_ctrl(struct usbhs_priv *priv, int enable)
{
u16 mask = DCFM | DRPD | DPRPU | HSE | USBE;
u16 val = DCFM | DRPD | HSE | USBE;
- int has_otg = usbhs_get_dparam(priv, has_otg);
-
- if (has_otg)
- usbhs_bset(priv, DVSTCTR, (EXTLP | PWEN), (EXTLP | PWEN));
/*
* if enable
diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h
index a2481f4d..b2cba7c 100644
--- a/include/linux/usb/renesas_usbhs.h
+++ b/include/linux/usb/renesas_usbhs.h
@@ -186,7 +186,6 @@ struct renesas_usbhs_driver_param {
/*
* option:
*/
- u32 has_otg:1; /* for controlling PWEN/EXTLP */
u32 has_usb_dmac:1; /* for USB-DMAC */
u32 runtime_pwctrl:1;
u32 has_cnen:1;
--
2.7.4
next prev parent reply other threads:[~2019-06-04 4:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 4:09 [PATCH 0/2] usb: renesas_usbhs: remove unused features Yoshihiro Shimoda
2019-06-04 4:09 ` [PATCH 1/2] usb: renesas_usbhs: remove sudmac support Yoshihiro Shimoda
2019-06-04 8:06 ` Sergei Shtylyov
2019-06-05 6:05 ` Yoshihiro Shimoda
2019-06-04 9:23 ` Geert Uytterhoeven
2019-06-04 9:35 ` Simon Horman
2019-06-05 6:07 ` Yoshihiro Shimoda
2019-06-04 4:09 ` Yoshihiro Shimoda [this message]
2019-06-04 9:13 ` [PATCH 2/2] usb: renesas_usbhs: remove controlling PWEN/EXTLP support Geert Uytterhoeven
2019-06-05 6:06 ` Yoshihiro Shimoda
2019-06-04 9:37 ` Simon Horman
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=1559621375-5436-3-git-send-email-yoshihiro.shimoda.uh@renesas.com \
--to=yoshihiro.shimoda.uh@renesas.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/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).