On Wed, Oct 07, 2015 at 08:38:53PM +0900, Yoshihiro Shimoda wrote:
> This patch adds an xhci->priv field for storing the of_device_id.data
> pointer. This will simplify the code to match platform specific
> variables (e.g. platform type and firmware name).
>
> Signed-off-by: Yoshihiro Shimoda <[email protected]>
> ---
> drivers/usb/host/xhci.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
> index 51093df..da227ba 100644
> --- a/drivers/usb/host/xhci.h
> +++ b/drivers/usb/host/xhci.h
> @@ -1653,6 +1653,9 @@ struct xhci_hcd {
> u32 port_status_u0;
> /* Compliance Mode Timer Triggered every 2 seconds */
> #define COMP_MODE_RCVRY_MSECS 2000
> +
> + /* Store of_device_id.data pointer as xhci-plat private data */
> + const void *priv;
> };
Why can't we do what we do with the other *_hcd structures and pad out
the end of the structure as needed with the following:
/* platform-specific data -- must come last */
unsigned long priv[0] __aligned(sizeof(s64));
and then ask for the requested amount of space depending on the platform
being used?
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html