Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755113AbaFYFuy (ORCPT ); Wed, 25 Jun 2014 01:50:54 -0400 Received: from mail-qc0-f171.google.com ([209.85.216.171]:51269 "EHLO mail-qc0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754879AbaFYFt4 (ORCPT ); Wed, 25 Jun 2014 01:49:56 -0400 MIME-Version: 1.0 In-Reply-To: <53A9FCDB.6060805@cogentembedded.com> References: <1402056736-12674-1-git-send-email-gautam.vivek@samsung.com> <1402056736-12674-3-git-send-email-gautam.vivek@samsung.com> <53A9FCDB.6060805@cogentembedded.com> Date: Wed, 25 Jun 2014 11:19:55 +0530 X-Google-Sender-Auth: OIvO7rkHfivny-wAabY1FG455cg Message-ID: Subject: Re: [PATCH 2/4] usb: host: xhci-plat: Add support to get PHYs From: Vivek Gautam To: Sergei Shtylyov Cc: Julius Werner , "linux-usb@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , Greg Kroah-Hartman , kishon , Mathias Nyman , LKML , "linux-arm-kernel@lists.infradead.org" , Kukjin Kim Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI Sergei, On Wed, Jun 25, 2014 at 4:04 AM, Sergei Shtylyov wrote: > Hello. > > > On 06/10/2014 12:22 AM, Julius Werner wrote: > >>> diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h >>> index 9ffecd5..453d89e 100644 >>> --- a/drivers/usb/host/xhci.h >>> +++ b/drivers/usb/host/xhci.h >>> @@ -1582,6 +1582,9 @@ struct xhci_hcd { >>> u32 port_status_u0; >>> /* Compliance Mode Timer Triggered every 2 seconds */ >>> #define COMP_MODE_RCVRY_MSECS 2000 >>> + /* phys for the controller */ >>> + struct phy *phy2_gen; >>> + struct phy *phy3_gen; >>> }; > > >> I don't think adding new variables here and restricting most of this >> logic to xhci-plat.c (in the next patch) is the best way to do it. > > > Indeed. > > >> There's no conceptual reason why other host controllers (e.g. xhci-pci >> or even EHCI) could not have a similar need to tune their PHY after >> reset. PHYs are universal to all host controllers. > > >> There is already a 'phy' member in struct usb_hcd which I think is >> mostly unused right now. I think it would be much less >> confusing/redundant to reuse that member for this purpose (you could >> still set it up from xhci_plat_probe(), and then call it from >> hcd_bus_resume() or something like that). > > > That member has type 'struct usb_phy *' while here we have 'struct phy *' > -- feel the difference. > I have already tried adding 'struct phy *gen_phy' to 'struct usb_hcd', > however Greg wasn't eager to pick that up so far. Here's the last posting of > my patch: > > http://marc.info/?l=linux-usb&m=140145917506582 Thanks for pointing to the patch, i have also been tracking this patch. I will try to rework using this patch and post the relevant patches. -- Best Regards Vivek Gautam Samsung R&D Institute, Bangalore India -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/