Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1015439pxb; Wed, 6 Oct 2021 21:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx24BJaVGA+k9hkW40iBE0YsU7MyY/8mKxxxxVHWh46DwC6w0V5AK0XyqUhIpMjlwmve8K7 X-Received: by 2002:a17:90a:6401:: with SMTP id g1mr3072237pjj.228.1633582529670; Wed, 06 Oct 2021 21:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633582529; cv=none; d=google.com; s=arc-20160816; b=vx+ZIbQWlPJszy8k49QrAsxiiwhkhYCk34UevX564tY1J0urj5rMzg0ra83E0Js7PJ 4F0nx+/4x5pFeyBjX9Tk/kssUcgxF96SEQa2yje2x8abdPrJ/Brw20Fa+XlkDmTjgkRA sgy/R08loS/GzIaUy87C6PMQtNw8heNVVQiz+ncEdssakVIg/Ick/X3g7Bhf+3cpBipo vQKuqCnLZxQLY4Ew6Q3hBvwsQsrIBZP2cN3xR/nUZgY4klQgiw0LRNmjTAnzWJ5rut+Y lQi7el3Cx/3INcd0ZNy9sbPsC3XuCcIksguZGj2YHrwRxOyauilXUsUHXpfj2vqDa6UK mU9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PBZqvk0Mrvqg6G+DDkCHRgP/hyxv8GuJHrugTzUB43s=; b=PlayJ/UjXlBjZtIVpouHtxDB5XaRdtzo0Ia0K2I1tOWojKcKRUX7jFvCu5LFouKOjb xH4gslC0EOa/B4UuQ2FIvP1hyvY7Rf/YIhjyG6GU74uZG0r3X3eTPMyX1AAJBQIc4mo0 pd8eGLwWfZjRjP3rWDiSLY6oaRXqqVRKeyOluUrur+RY5dRVJqyZxp6R/vAU1eXOWtqw kBIyDkMktCKlKXsPSdCjyX98YuZz+5MDat4w9i+1G2w22SxyjV5R5RsaXwt+0r2CpXI4 iMKypVzmlRdnwWfdntWTg4moU+klzr56LDJvFXMoQWV6GK9o1CUb4CbDHt2gASmJPILy Tgbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VkP9KFX/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si25385137pfj.226.2021.10.06.21.55.16; Wed, 06 Oct 2021 21:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VkP9KFX/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbhJGEyo (ORCPT + 99 others); Thu, 7 Oct 2021 00:54:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:47904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhJGEyn (ORCPT ); Thu, 7 Oct 2021 00:54:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 693F861039; Thu, 7 Oct 2021 04:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633582370; bh=FxzDAJVvnO/bGcMiUOiodFDRDx4Ad/gZs6zNI4y/0uA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VkP9KFX/bXifSSBT0fSzwu8x6XEuDTw3nvs+v7sdVTN4Y03F5jqT+LcA0BmK3JqQl UVP3U7EddJ9RqIgdRSNqsXjuQi3+0k1Vb0AqdGsPhm1BXOFeY8vTg80ySp8ceN7btG YQc0G7VHYzAV+8x5/A57GxEhHkNMBSgqW81P+Haou72GvD+wJw3617DYSlpWzo31c1 Gf0eVdh5+cNvUiFn6Mafn1PW33fFeggdqeFReO5Yt6QRX7fgWPRZsFf7aa+EC6CjXZ HqDfx/27u/hXn9OGKG/AHm7TTx6ZplSvR7GSFfwU8AQESzJWR7VkJplTblYp4kCyKd AHesCptpDuo2g== Date: Thu, 7 Oct 2021 12:52:41 +0800 From: Peter Chen To: Manish Narani Cc: gregkh@linuxfoundation.org, michal.simek@xilinx.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, git@xilinx.com, Subbaraya Sundeep Bhatta Subject: Re: [PATCH 2/6] usb: chipidea: Use usb2 phy for Zynq platform Message-ID: <20211007045241.GB4653@Peter> References: <1629825378-8089-1-git-send-email-manish.narani@xilinx.com> <1629825378-8089-3-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1629825378-8089-3-git-send-email-manish.narani@xilinx.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-08-24 22:46:14, Manish Narani wrote: > Add usb2 phy to Zynq platform data. Please change the subject and comments a little. This file is not only for xilinx platform, it is for generic chipidea driver. If you would like this change only for your platform, you may use of_device_id.data for condition. Peter > > Signed-off-by: Subbaraya Sundeep Bhatta > Signed-off-by: Michal Simek > Signed-off-by: Manish Narani > --- > drivers/usb/chipidea/ci_hdrc_usb2.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/usb/chipidea/ci_hdrc_usb2.c b/drivers/usb/chipidea/ci_hdrc_usb2.c > index dc86b12..be58869 100644 > --- a/drivers/usb/chipidea/ci_hdrc_usb2.c > +++ b/drivers/usb/chipidea/ci_hdrc_usb2.c > @@ -65,6 +65,10 @@ static int ci_hdrc_usb2_probe(struct platform_device *pdev) > if (match && match->data) { > /* struct copy */ > *ci_pdata = *(struct ci_hdrc_platform_data *)match->data; > + ci_pdata->usb_phy = devm_usb_get_phy_by_phandle(dev, "usb-phy", > + 0); > + if (IS_ERR(ci_pdata->usb_phy)) > + return PTR_ERR(ci_pdata->usb_phy); > } > > priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > -- > 2.1.1 > -- Thanks, Peter Chen