Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932810AbdDELCM (ORCPT ); Wed, 5 Apr 2017 07:02:12 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:49946 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754635AbdDELCH (ORCPT ); Wed, 5 Apr 2017 07:02:07 -0400 Subject: Re: [PATCH v4 2/3] Broadcom USB DRD Phy driver for Northstar2 To: Raviteja Garimella , Rob Herring , Mark Rutland , Ray Jui , Scott Branden , Jon Mason , Catalin Marinas , Will Deacon References: <1490704052-11314-1-git-send-email-raviteja.garimella@broadcom.com> <1490704052-11314-3-git-send-email-raviteja.garimella@broadcom.com> CC: , , , From: Kishon Vijay Abraham I Message-ID: <8aa2cc42-6fdc-5574-4449-f05f6d5cbd38@ti.com> Date: Wed, 5 Apr 2017 16:30:36 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1490704052-11314-3-git-send-email-raviteja.garimella@broadcom.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 850 Lines: 22 Hi, On Tuesday 28 March 2017 05:57 PM, Raviteja Garimella wrote: > This is driver for USB DRD Phy used in Broadcom's Northstar2 > SoC. The phy can be configured to be in Device mode or Host > mode based on the type of cable connected to the port. The > driver registers to extcon framework to get appropriate > connect events for Host/Device cables connect/disconnect > states based on VBUS and ID interrupts. $patch should be phy: phy-bcm-ns2-usbdrd: USB DRD Phy driver for Broadcoms Northstar2. Sorry for not letting you know this earlier. But I feel the design of the driver should be changed. Extcon shouldn't be used here. The extcon notifications should be sent to the consumer driver and the consumer driver should be responsible for invoking the phy ops. The phy ops being invoked during extcon events doesn't look right. Thanks Kishon