Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1054609pxj; Thu, 17 Jun 2021 21:23:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZzQu3oSqIAx/BTWtSBFQvKO7UvPCzfHSsgAO8R35jo5bhTzCNlK3pAR3UwXJbCWB9y+Rr X-Received: by 2002:a05:6638:27a:: with SMTP id x26mr1514241jaq.144.1623990229584; Thu, 17 Jun 2021 21:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623990229; cv=none; d=google.com; s=arc-20160816; b=0mVaE+BytJ1T2VmDF+h6OXLZVUAv0dI/b5hWd9mAOnByuC1S/eIHSdIxqpVaK3LBM1 JBdS03mtgLTCi2qKZ7nP84Q0TPx6xS16MbGyTD3oAtGwvHwUteH7QaFvNubwMkrJ6fWe Adxqf94L/RbG89zujT8IroOpiKhpvVBy1YJJTgrrzSvIYKwXsSbGOD0V+p7Lg32lFJB0 pu565L08hkh/kOss8Q9OhE6Kp6uSlHKnZsGAV88UQPZeBlkzyD0+h1zSSisOumB5jNop noSbHtFN/HO/NRdubOhTy60ABqAXfaH3FaKdD3GNclBhJnEqTttzz2UGR23Or2nWnr0G FqDQ== 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=zesdvlDOTsfJCYMfxYc1eGdUgx4s/GRB2e4AjzOW/PE=; b=ulmP9xHPaU5OUOU6D+1/jMNMHd7nqrVKNM/AoaQxfK3YtzVQ0snHmxD2oCrsamSV1/ Kqj60imqoAzLqopBebeLwtyc9wZFYtNp8IG8UVV8ey5PRIIlWFGusAIUyWb+dxV8TmOC 5nPbF/gddRdkY01kLJWpCQCrhgZiJmQs+oTEe/e5qcsezwSWQ9QYYUpkq1r8tfyjCvB1 WRFxiWH+CudHRpnb0yQjDr4FV1qTDPdjtHyMNyuTmVqafWzk3ZE0F3zKUAnYhVT8cUIq WTynQbWXxeVC0+PR6JqyZ5VC2Pb952PJXrG6zaC9UTrVss42zrfLuutJ60H1BZz5M5tx K3Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b="c6d/7vza"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si7332024ioh.101.2021.06.17.21.23.24; Thu, 17 Jun 2021 21:23:49 -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=@googlemail.com header.s=20161025 header.b="c6d/7vza"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231499AbhFQWNY (ORCPT + 99 others); Thu, 17 Jun 2021 18:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbhFQWNY (ORCPT ); Thu, 17 Jun 2021 18:13:24 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB06DC061574 for ; Thu, 17 Jun 2021 15:11:14 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id s15so5803606edt.13; Thu, 17 Jun 2021 15:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zesdvlDOTsfJCYMfxYc1eGdUgx4s/GRB2e4AjzOW/PE=; b=c6d/7vzaOUVDMePr0fBGYrzT6WgLmo55vDCeFW1vzWwyGxuLIlhG7gIfj8nzNJV8n4 l9MRyCfWE8korSmGWWISVxk076slUO70E+qg/fu86m+bLv0AFxxLCtx9MADzS3WVZZ8i p5lcuLl2inhxGD5UK+n8/JszeE6MHb0efkxHaYvuLNBVtm1/xczacfrbC3heM9/dN32H E2zuS4aG5Q7IdGDhLzDVluLau1J85kuVISp6NXPdI8zHthb2E0Y8KAVe70C6XW7UPbl7 3TPXjv3Z9RDOZM9idFbHvkrj8av94bUt+JUqqqFEIp+rKTL4Cnnfl+jdfjuQEH+1r8F6 S6eA== 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=zesdvlDOTsfJCYMfxYc1eGdUgx4s/GRB2e4AjzOW/PE=; b=G8E/GW3lf8d+8PI7Dd4FN3e29wPRdTuRClf0S539iAOOsWQbe0f5MlVmpfiVCsvvVV d4x1t5Es1YN13iNqcsdbv/dEthZmA4xuGR+Ckf5ejhW8D+oD1Tj4Q+FM5RPiNjw4JOZu pX6NquArh4DuvbItIb330wgLFxfeFcdDqosPCz1gylzj/jUtnCtGfdiCQeCo6bvo8fJL RoDHEzS0U71HYXVyui/pcaJST1GzU8F3bGc/FIzVUP4FupVW0MletOIgxwudfxF8leSy IPx6qkJKGcrnvcdhjinkGz4oQcx7PbVwhJlP+7MDPqYwbSkIySNo92udUVQ9EH8eA5OH nmdw== X-Gm-Message-State: AOAM533uWRNzbgj1o32GJy0XruVP/rQGxtpi9Omd/Jp0FEWJONjwIh/O SkpfpdVkwSil3lVFbbF5iDpKO3KBgCLLTuqFb/I= X-Received: by 2002:a05:6402:177a:: with SMTP id da26mr724355edb.40.1623967873323; Thu, 17 Jun 2021 15:11:13 -0700 (PDT) MIME-Version: 1.0 References: <20210617194154.2397-1-linux.amoon@gmail.com> In-Reply-To: <20210617194154.2397-1-linux.amoon@gmail.com> From: Martin Blumenstingl Date: Fri, 18 Jun 2021 00:11:02 +0200 Message-ID: Subject: Re: [RFCv1 0/8] Meson-8b and Meson-gxbb USB phy code re-structure To: Anand Moon Cc: --to=linux-phy@lists.infradead.org, --to=linux-arm-kernel@lists.infradead.org, --to=linux-amlogic@lists.infradead.org, --to=linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Vinod Koul , Neil Armstrong , Kevin Hilman , Jerome Brunet , Philipp Zabel , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. Best regards, Martin