Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1401042pxj; Fri, 18 Jun 2021 06:22:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6/YJzFrppn1zIelliRDaYPIuns9dCKsB7cUmWgK6MRMvqVz0u+s/B+yZqefS+V7x9yBZ4 X-Received: by 2002:a5e:8414:: with SMTP id h20mr954292ioj.122.1624022568052; Fri, 18 Jun 2021 06:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624022568; cv=none; d=google.com; s=arc-20160816; b=R9OOzc3Xnj5yZrU+tne4cjYtMXFsruXRFbmqN23dyrZxYN3FsPKvV69huE2q2x3lfb TV5JGmrNNnm+qiKQZ1fjMfDQuiu1/bBfxRWGs/+JAslxe52x1QeJQ6y89wGHNT0KQAoh X6jE+UVSLAE5sP9E2ZYxbrYHOnhCDvpxKDKVo/HCkvzorgw016aFMdDAtKu/6spmCcum Yr170C/CXjYDJJSg0FkKfHxwYX0wARMRkjCS5CN6uNkwdyCnLuyeKPSb8d468u+ZvN57 OINvKvFiEgH+ncBJelHBGAMWqJm6S55teRSnkjqNOJdQn7eCD5smWLkruus5vy3QG8lY vyjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aCfQbfrt5qvJnNWovlWCYxzbElz4rKl7GdfgBa31+S0=; b=Y9yRkjAs5CI6nTjKdXnhXJmw7PCFnob2njaqz4LE4/tuqqvoooShPCg7rTeRvs1HTX JpUAt9WwPkBWj3BXZNgvtzvAw+5gfFOcAEJ5Aug10W3p5uVymCHBTQaScaNLOZ3FO3R2 nTyglj91Nuug2oZaIE0bHbMpXJFnTwcYCfHf/J2ttZKpQODJksZ1tGmiK8CsvyvadUx5 c024T169OpKIoYj0WhO1wQTQ1wG5CqZmWddN/zq0vD3Y6Pzzpw3n9igEIjUBq5jNhI/b 433U+Um5XUC3dHwVwhlkPMD/ew5w2OKNRO9otWQthvK/y7/wKp4V+Q0WP4fZpfrVAzCX Pk6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SPQP+UH7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si2208298ilj.66.2021.06.18.06.22.34; Fri, 18 Jun 2021 06:22:48 -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=@gmail.com header.s=20161025 header.b=SPQP+UH7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233628AbhFRNXD (ORCPT + 99 others); Fri, 18 Jun 2021 09:23:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233521AbhFRNXA (ORCPT ); Fri, 18 Jun 2021 09:23:00 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FD7BC061574 for ; Fri, 18 Jun 2021 06:20:51 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id i13so8586077edb.9 for ; Fri, 18 Jun 2021 06:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aCfQbfrt5qvJnNWovlWCYxzbElz4rKl7GdfgBa31+S0=; b=SPQP+UH7dId/IFlM1J6+ZfRgx8exW9U3zL+aaj4MkRT+pL0NkV8A/24dFWYVgssc0J zJMk4NWKjGAvvgOQtMcFh7md2xPV0RgXjQ4jIwe7HSY4KUk4nN7D8hwSwY0Fabt17zmP k//l7j+Wf1xHnBSxskgG8sUzbdfqo9a+eNAdyILA/ejkkeabsvHdTn2FLxp6hxgBgLs2 eHao7rU8TTQlM3TtzFVeqQlZP8iTtmeOAOXcvmxuhJt6AO1vJtudPKBitEN28ZyeEgt3 C0UAwMzYmEX7BlW63NaRdFL0O0oAElcvWTUN//dHwHgGRqq4dX7kLSmb2iyxdVnnwAin lErw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aCfQbfrt5qvJnNWovlWCYxzbElz4rKl7GdfgBa31+S0=; b=SUHBOsymA5fEOWrRjCmjDhl8eR4Pz5Zqczutu/d6UgBY8U/S8kk3XdvatLYSYjuxYy aczvVp5Mk5ucgrwBepw/PqIsKsH0MI9UQmdd0ttWaCoFk244Ff2WNHyZD+rYV0ubmqpj ss2QYNTyHa6WXX0SZj5vJU0Ba9EXFxfSklxjyXEC4dYhLMoPWVZrVikZjnlO0EBkgqXR tMfOkHTzxwRcdTvcP6PMJhmjndlwAVR4VUlxamGjeE9CqFPb6xi99IoDZENaQQdwgWMZ 2lCDg2mK9EnvbHjqf9sX8fJwpO6zlCMNaJobLt8Xi4SBJjVjgHxE3S6E/CpovA7q37wy kLFw== X-Gm-Message-State: AOAM533ATTpvmCVOC8LbqwUk5YqGdZmovLDXmgu6O+iXSqd/o4/yzdSZ AlfwWHzdB4OhhqQgMjrHyiJO9VngPy5HDMXNbps= X-Received: by 2002:aa7:c40a:: with SMTP id j10mr4863359edq.59.1624022450023; Fri, 18 Jun 2021 06:20:50 -0700 (PDT) MIME-Version: 1.0 References: <20210617194154.2397-1-linux.amoon@gmail.com> In-Reply-To: From: Anand Moon Date: Fri, 18 Jun 2021 18:50:39 +0530 Message-ID: Subject: Re: [RFCv1 0/8] Meson-8b and Meson-gxbb USB phy code re-structure To: Martin Blumenstingl Cc: Kishon Vijay Abraham I , Vinod Koul , Neil Armstrong , Kevin Hilman , Jerome Brunet , Philipp Zabel , linux-phy@lists.infradead.org, linux-arm-kernel , linux-amlogic@lists.infradead.org, Linux Kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Martin, Thanks for your review comments. (some email id got messed up while sending these changes.) On Fri, 18 Jun 2021 at 03:41, Martin Blumenstingl wrote: > > Hi Anand, > > On Thu, Jun 17, 2021 at 9:42 PM Anand Moon wrote: > > > > On Odroid C1+ and Odroid C2 USB feature is broken > with "broken" you mean the hotplug and IRQ issues you describe below? > I think that these are not PHY related but rather a problem with the > dwc2 IP/driver > > > this code changes are just re-structure the code so that > > proper callback function execute in proper order. > > > > Code changes losely based on phy-meson-gxl-usb2.c > there's a big difference between the Meson8 and GXL drivers: > GXL requires changing some of the PHY registers at runtime based on > the mode (host/peripheral). > The Meson8 PHY however (as far as I can tell from the 3.10 and 3.14 > kernels) don't require any runtime changes based on the mode. > Yes I have gone through 3.10 and 3.14 kernel + u-boot source code My intent is to simplify the code changes so that they will be flexible to be used in the future API. It does not solve the problem. > > Initially if we connect USB HDD at initial boot it get detected. > > but after that usb hotplug of USB HDD is broken. > > I did not observe and USB debug events messages to trace the root cause. > > > > Another issue I observed is increase of USB interrupts event > > even if there is not much activity on USB ports. > > I tried some clk changes but it did not workout for me. > I suggest reporting this to the dwc2 maintainers and asking for advice > on how to debug these issues. > Yes I have enabled the CONFIG_USB_DWC2_DEBUG to help debug this issue but could not find much clue on why this is happening. I will keep debugging the DWC2 code or try to understand the missing features. > > Best regards, > Martin Thanks -Anand