[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20160307201242.GB25852@kroah.com>
Date: Mon, 7 Mar 2016 12:12:42 -0800
From: Greg KH <gregkh@...uxfoundation.org>
To: Nicholas Krause <xerofoify@...il.com>
Cc: mathias.nyman@...el.com, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH RESEND] xhci:Remove unused marco definitions from the
file xhci-hub.c
On Mon, Mar 07, 2016 at 02:20:03PM -0500, Nicholas Krause wrote:
> This removes the unneeded marco definitions for the marcos
> of XHCI_PORT_RW1S, XHCI_PORT_RW1C, XHCI_PORT_RW and
> XHCI_PORT_RZ due to no uses of these marcos in the file
> xhci-hub.c or any other related kernel source code file
> related to supporting xhci host controllers.
>
> Signed-off-by: Nicholas Krause <xerofoify@...il.com>
> ---
> drivers/usb/host/xhci-hub.c | 23 -----------------------
> 1 file changed, 23 deletions(-)
>
> diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c
> index e75c565..fd430de 100644
> --- a/drivers/usb/host/xhci-hub.c
> +++ b/drivers/usb/host/xhci-hub.c
> @@ -196,29 +196,6 @@ static unsigned int xhci_port_speed(unsigned int port_status)
> * link state, port power, port indicator state, "wake on" enable state
> */
> #define XHCI_PORT_RWS ((0xf<<5) | (1<<9) | (0x3<<14) | (0x7<<25))
> -/*
> - * These bits are RW; writing a 1 sets the bit, writing a 0 has no effect:
> - * bit 4 (port reset)
> - */
> -#define XHCI_PORT_RW1S ((1<<4))
> -/*
> - * These bits are RW; writing a 1 clears the bit, writing a 0 has no effect:
> - * bits 1, 17, 18, 19, 20, 21, 22, 23
> - * port enable/disable, and
> - * change bits: connect, PED, warm port reset changed (reserved zero for USB 2.0 ports),
> - * over-current, reset, link state, and L1 change
> - */
> -#define XHCI_PORT_RW1CS ((1<<1) | (0x7f<<17))
> -/*
> - * Bit 16 is RW, and writing a '1' to it causes the link state control to be
> - * latched in
> - */
> -#define XHCI_PORT_RW ((1<<16))
> -/*
> - * These bits are Reserved Zero (RsvdZ) and zero should be written to them:
> - * bits 2, 24, 28:31
> - */
> -#define XHCI_PORT_RZ ((1<<2) | (1<<24) | (0xf<<28))
>
> /*
> * Given a port state, this function returns a value that would result in the
As I have stated numerous times in the past, please do not send any
future Linux kernel changes, I will not be accepting them.
Mathias, please ignore.
greg k-h
Powered by blists - more mailing lists