Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932341Ab3GLAs7 (ORCPT ); Thu, 11 Jul 2013 20:48:59 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:33693 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932120Ab3GLAs4 (ORCPT ); Thu, 11 Jul 2013 20:48:56 -0400 X-AuditID: cbfee68d-b7f096d0000043fc-76-51df5277bccd From: Jingoo Han To: Tomasz Figa , "'Dongjin Kim'" Cc: "'Julius Werner'" , "'LKML'" , "'Felipe Balbi'" , linux-usb@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-samsung-soc@vger.kernel.org, "'Vivek Gautam'" , "'Praveen Paneri'" , "'Kukjin Kim'" , "'Tushar Behera'" , "'Doug Anderson'" , "'Olof Johansson'" , "'Vincent Palatin'" , "'Thomas Abraham'" , "'Fabio Estevam'" , "'Philipp Zabel'" , Yulgon Kim , Jingoo Han References: <1373416455-30358-1-git-send-email-jwerner@chromium.org> <000901ce7dc8$90a819b0$b1f84d10$@samsung.com> In-reply-to: Subject: Re: [PATCH] usb: phy: samsung-usb2: Toggle HSIC GPIO from device tree Date: Fri, 12 Jul 2013 09:48:54 +0900 Message-id: <001701ce7e99$95b2c460$c1184d20$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQIqj1FUEYrwpGpRm2gJpEuTVlJQ6gHLDLVbAwQrQ7OYgZI8kA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA5WSW0hTcRzH+Z9zdtwGxtFm/TWyGGSheN20vy4iguI8RGVBRS8218GZc45N rSB0mLekqWnamAUqamaWMcU0L7kJcyFiXjObmgwvMZTIpRFe2nYKfO3tw4/v7eHHxX1fcwK4 ycp0Rq2UKoQknxjcXhSF3r40Fx+xUkog01w26qua56ChBhOJ5icuoPxxkxcaqxnloEKzHUO6 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bJRefAF23zBygp5QUyhJzSoFCAYnFxUr6dpgmhIa46VrANEbo +oYEwfUYGaCBhHWMGUt2/mEraBWpWP0irIFxkkAXIyeHhICJxOdLO1kgbDGJC/fWs4HYQgKL GCX+79HuYuQCsn8xSjTP3QOWYBNQk/jy5TA7iC0i4CGx/8siFpAiZoGLrBJXZjxnhejYzShx a1ob2FhOgWCJE13/GEFsYQE/icN3roLZLAKqEpt6eplAbF4BS4kPx24xQtiCEj8m3wPrZRbQ kli/8zgThC0vsXnNW2aIUxUkdpx9DVTPAXSFk0TDc0uIEhGJfS/eMU5gFJqFZNIsJJNmIZk0 C0nLAkaWVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjBaeuZ1A7GlQ0WhxgFOBiVeHgLTtwL FGJNLCuuzD3EKMHBrCTCe9PsfqAQb0piZVVqUX58UWlOavEhxmSgRycyS4km5wNTal5JvKGx iZmRpZGZhZGJuTlpwkrivAdarQOFBNITS1KzU1MLUotgtjBxcEo1MNYfEP1RXtzQvau1I72y 9ablAdtG52nSVbkyExpcaivPfn/+2rRy13+ntKDznCu2LLUXtVh57fSEvm9Rb2/FHL+5Q3Fh Qmfy+za/H2UpJU5aa9JKr3b3V844M+3s3uyGssdvfabEGtl0WZ183hDwM1TYJ4bld8q8CTyf qpp8Qv1/3a/6W8rEo8RSnJFoqMVcVJwIAGpquiifAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2749 Lines: 66 On Friday, July 12, 2013 6:46 AM, Julius Werner wrote: > > Hi Jingoo, > > Yeah, I followed that discussion back then, but it seems to have > stalled a little (at least the HSIC patches haven't been picked up in > any kernel.org repo yet to my knowledge). > > The problem is that I think these approaches cannot work reliably. I > agree that it would be nice to control the HSIC device from its own > driver, and have spent quite some time playing around with the > usb/misc/usb3503.c driver to try to make this work... but there's a > timing dependency here that you just can't model correctly with > independent drivers. > > If the HSIC device is already active during boot (e.g. because it was > used by firmware), there's always a chance that the USB stack will > come up before the driver that resets it does. The device will be > enumerated as normal, and when the other driver later pulls the reset > signal the USB stack will not notice because there is no real > disconnect detection on HSIC. Only when you eventually try to send > another transfer to the device will you start to get timeouts, and the > newly reset device will not be able to reenumerate because the host > never asks it to. > > I really don't see how you could solve this without putting some kind > of synchronization mechanism in the USB drivers. So this leaves > ehci-s5p and phy-samsung-usb2 as the only possible places, and I chose > the latter since all the host-side HSIC initialization is also there > already. I think if you think of it as "reset whatever is on the other > side of this PHY", it's okay to put it as an optional feature into the > PHY driver. CC'ed Tomasz Figa, Dongjin Kim, Yulgon Kim Hi Tomasz, Dongjin, Julius Werner wants to put 'SMSC 3503 hub reset on Arndale board' to 'phy-samsung-usb*.c' files, because there is a timing dependency above mentioned. The following is the original patch sent by Julius Werner two day ago. (http://www.spinics.net/lists/linux-samsung-soc/msg20250.html) Previously, Olof mentioned that 'drivers/platform/arm/' would be used. (http://patches.linaro.org/16856/) Also, another way was mentioned by Fabio Estevam, using 'drivers/reset/gpio-reset.c' which is not merged yet. (http://permalink.gmane.org/gmane.linux.drivers.devicetree/36830) I think that 'phy-samsung-usb*.c' files are not a good place. However, Julius Werner's comment looks reasonable enough. If you have a comment, please feel free to share it. :) Thank you. Best regards, Jingoo Han -- 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/