Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1348577lqd; Thu, 25 Apr 2024 12:43:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfnW+73n+Z/ZTcx8M5Pikw5RHjMwr813p6c07vFQSWm+XfBLOHFfZkS80G6Z+gOPA397TsPVgHTi1rbO44KaIO0a6ScaksmmOLIVeTXQ== X-Google-Smtp-Source: AGHT+IGa1EUbwIH9spmq6j1U9pJTe9FJvBaWUIVlM8wJodCiJl+829GK7p6PVInchEkEizuOy0+m X-Received: by 2002:a05:6a00:3cd5:b0:6ed:1012:9572 with SMTP id ln21-20020a056a003cd500b006ed10129572mr883800pfb.29.1714074186704; Thu, 25 Apr 2024 12:43:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714074186; cv=pass; d=google.com; s=arc-20160816; b=CkfU8Wx7YZ88TpJtG4+y8z93rYIjM2oaonLBLO5cf+/5YKtmo9wwAsceuFdDt3uaWW p+Gpb5kGPcBB6f17W0zpP73ZhIhE9JzQhfS/SDOu9UuNhxx+nRkGKDooVvAMZIwzqvjO Wpa5eIuuKAqwDh3DY+fHHSKHXgAY6paCjxgzjieKE4by1suVfTAUJrl2b0Fj5hhIjyaP fLCJ5udX+/3rUyavdEM7aI1T/D4KPnVKbCJl8yakgYONn+X5iNYYcLMTvl6H850sEm87 Vhfc6snjvKK1WjQ+wLSF2eHspNE2eYR0MaFvMg2lK5pPSBjmj6IA5++/uXBB0dgj/xhz SytA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:content-transfer-encoding:in-reply-to:from :content-language:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature:dkim-filter; bh=+ve4YzZPSzdZ+iyibvf0yaqAhYlUh+0zk0V42/Z+YIg=; fh=JAbv6EKzMLutKE90wkVGHFoMlfFoMoTf0MuPg+ZZBYI=; b=zcmeGl32vSxRmwcXnIMQkrBPrthH07QN9NrO2j3kVca+BLPggUVCaovyagrzWcvN2x l8QMq/OlNEEIkz1h9Q8LZmdKvABy6Skt0StKXdgxFZC0xkiFeRXzYJ8Asup7/xDkfYIb 3GXblGSf8uzm/N62UIQDBQa6Cndvop960p1cJE1tc4JqYEqAEaj8OMf3M5Vddwl+KuL1 BhJqTZxRmTwUVX1QJoGKndmK1qxiH06f1NiMSqSHHrE4wor6FQ+5VmixFahm9iRAjZgn rDKvgniI3mI9dAhay/zt+V6gHb3pc2V0U/FhMJlIYZHFxANyirVwDM05ALdJPFxzLmfC Py4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nT4RwQjZ; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-159085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a20-20020a056a001d1400b006f3cfe22367si2004547pfx.265.2024.04.25.12.43.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 12:43:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nT4RwQjZ; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-159085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E69CEB25338 for ; Thu, 25 Apr 2024 19:40:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B99B152527; Thu, 25 Apr 2024 19:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="nT4RwQjZ" Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8354714EC4A for ; Thu, 25 Apr 2024 19:40:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714074046; cv=none; b=aoSUXc7TZHUBSDN1mRodiZrCjN53f+YArSimkUUDVlqQRNvp9ySIV9icgxkqbofuCHRSNbUcnkiRORYKnW8PzJFj2bNDWDkrXe9ejxTR73GEnokIJATz0iEpWXqg/eLNhYwkRjR6d8AjK8bOniQMfCvE08ePQzM7BQadj3//50s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714074046; c=relaxed/simple; bh=NxRn6wwHeZl2W6m95OUrYBSMLuu68n9JunWUCNzxpKY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type:References; b=RiyQmIreU4uaR6Ok9nU2sMDG+2rG1txIeG935Vq+2gRHkN1kLd7PzMZyDUB49yQbIKojPiWlWWVeuq5ECnRAIPWW/vZc2Qg2h7+/hZWiUIONOOhCLE712m7hY6B7xDpErv3ykPuKSevghczOe8C1HhwwJ9Mg9Nkv2XZCeeJGC3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=nT4RwQjZ; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20240425194035euoutp0178463ec110d1be1b0e3ea7cea2a4a638~JnUDkCe-p1887518875euoutp01y for ; Thu, 25 Apr 2024 19:40:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20240425194035euoutp0178463ec110d1be1b0e3ea7cea2a4a638~JnUDkCe-p1887518875euoutp01y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1714074035; bh=+ve4YzZPSzdZ+iyibvf0yaqAhYlUh+0zk0V42/Z+YIg=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=nT4RwQjZLbNKK3ZXH8LXA+L749MfFdKG9pEfyQ68SB1/pZDi4aIlVBXooQyu2TVg8 qHZgZHzS0Kno0EI6VuLpcSHLJUAeN3qp3YrV3+nKVj9FE4b6qwk87ccn6i6mHEqtq0 Ec1CD4srUUuUu106509GC4eX+jE9RG4kLsDwgFmc= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20240425194034eucas1p10c61dbd2c10c7bb4da3435267dc04cf7~JnUC0H6uU1754517545eucas1p1K; Thu, 25 Apr 2024 19:40:34 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 3C.01.09620.2B1BA266; Thu, 25 Apr 2024 20:40:34 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20240425194033eucas1p2c1e98d1c55c970e246087e2dab180e84~JnUCPRHI62101121011eucas1p2T; Thu, 25 Apr 2024 19:40:33 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240425194033eusmtrp227da945401031d3afe99d684284ef0d5~JnUCOzDG_2742827428eusmtrp2U; Thu, 25 Apr 2024 19:40:33 +0000 (GMT) X-AuditID: cbfec7f5-d31ff70000002594-a2-662ab1b26f49 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 70.AF.09010.1B1BA266; Thu, 25 Apr 2024 20:40:33 +0100 (BST) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240425194033eusmtip17d3bc8e97a0af5fefdf5d9fdf2bcd9d2~JnUB2lUxd1368613686eusmtip1X; Thu, 25 Apr 2024 19:40:33 +0000 (GMT) Message-ID: <21ea292a-b1d1-43e2-92ab-9f1f63aaf729@samsung.com> Date: Thu, 25 Apr 2024 21:40:32 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] usb: chipidea: move ci_ulpi_init after the phy initialization To: Michael Grzeschik , Peter Chen , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Language: en-US From: Marek Szyprowski In-Reply-To: <20240328-chipidea-phy-misc-v1-1-907d9de5d4df@pengutronix.de> Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnleLIzCtJLcpLzFFi42LZduzned1NG7XSDE5PF7ZoXryezeLyrjls FouWtTJbbGm7wmTxa/8mFgdWj02rOtk89s9dw+7R/9fA4/MmuQCWKC6blNSczLLUIn27BK6M tfvPMxbMEK34umAFcwNjj2AXIyeHhICJxIkDPYxdjFwcQgIrGCXaF11ih3C+MEqsP7oGKvOZ UWLC2V5WmJYNS59CVS1nlNg18RAbhPORUWLb7ktgVbwCdhJnZr1lBrFZBFQlGp8/YIKIC0qc nPmEBcQWFZCXuH9rBjuILSwQInF51RmwQSICnYwS21u+ADVzcDALWEv83JcPUsMsIC5x68l8 sDlsAoYSXW+72EBsTgEvie9Nr1khauQltr+dwwwyR0LgBIfEzS0bmCHOdpG4NHs9lC0s8er4 FnYIW0bi/06QoSAN7YwSC37fh3ImMEo0PL/FCFFlLXHn3C82iIs0Jdbv0ocIO0qsbL3MDhKW EOCTuPFWEOIIPolJ26YzQ4R5JTrahCCq1SRmHV8Ht/bghUvMExiVZiEFyywkb85C8s4shL0L GFlWMYqnlhbnpqcWG+ellusVJ+YWl+al6yXn525iBKaZ0/+Of93BuOLVR71DjEwcjIcYJTiY lUR4b37USBPiTUmsrEotyo8vKs1JLT7EKM3BoiTOq5oinyokkJ5YkpqdmlqQWgSTZeLglGpg kj/PK7vd4ZWx9Q3BOdMPLriXN+VkXX3ulkM/xZzvzr7VdMZ37sNTZ7IjCvYIbldbktL98NTs Ci2xvtTntrWCbm3hErZr9sUu3/xa82jb5xR77zmCi+6n5bzazSDFcpBFSoFvr9WG5FXhctGb OIJaljeK/OnkNZr49N2NeL+rInnL1sw6bPJasGLS3dJHCzb/DujcsX1yUFix4r/rCxIkOJcb Xbl1Oud89JWL0qdLVV/7SnbkZTTqlHve/LVHvq/0LH9balSjzfnLOzJaBQ5sdJv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zy7Jrve7ibyvPsZpOv+cdnB+8eP6ltz18r7iWvzJ4+PDr6opv4TeUWIoz Eg21mIuKEwEY5nfmMwMAAA== X-CMS-MailID: 20240425194033eucas1p2c1e98d1c55c970e246087e2dab180e84 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20240425194033eucas1p2c1e98d1c55c970e246087e2dab180e84 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240425194033eucas1p2c1e98d1c55c970e246087e2dab180e84 References: <20240328-chipidea-phy-misc-v1-1-907d9de5d4df@pengutronix.de> Dear All, On 02.04.2024 08:23, Michael Grzeschik wrote: > The function ci_usb_phy_init is already handling the > hw_phymode_configure path which is also only possible after we have > a valid phy. So we move the ci_ulpi_init after the phy initialization > to be really sure to be able to communicate with the ulpi phy. > > Signed-off-by: Michael Grzeschik This patch landed in linux-next some time ago as commit 22ffd399e6e7 ("usb: chipidea: move ci_ulpi_init after the phy initialization"). Unfortunately it breaks host USB operation on DragonBoard410c (arch/arm64/boot/dts/qcom/apq8016-sbc.dts). There is no error nor warning in the kernel log besides the information about deferred probe on the chipidea controller: platform ci_hdrc.0: deferred probe pending: (reason unknown) Tomorrow I will try to investigate which operation during driver probe triggers it. If there is anything else to check that might help fixing this issue, let me know. > --- > drivers/usb/chipidea/core.c | 8 ++++---- > drivers/usb/chipidea/ulpi.c | 5 ----- > 2 files changed, 4 insertions(+), 9 deletions(-) > > diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c > index 835bf2428dc6e..bada13f704b62 100644 > --- a/drivers/usb/chipidea/core.c > +++ b/drivers/usb/chipidea/core.c > @@ -1084,10 +1084,6 @@ static int ci_hdrc_probe(struct platform_device *pdev) > return -ENODEV; > } > > - ret = ci_ulpi_init(ci); > - if (ret) > - return ret; > - > if (ci->platdata->phy) { > ci->phy = ci->platdata->phy; > } else if (ci->platdata->usb_phy) { > @@ -1142,6 +1138,10 @@ static int ci_hdrc_probe(struct platform_device *pdev) > goto ulpi_exit; > } > > + ret = ci_ulpi_init(ci); > + if (ret) > + return ret; > + > ci->hw_bank.phys = res->start; > > ci->irq = platform_get_irq(pdev, 0); > diff --git a/drivers/usb/chipidea/ulpi.c b/drivers/usb/chipidea/ulpi.c > index dfec07e8ae1d2..89fb51e2c3ded 100644 > --- a/drivers/usb/chipidea/ulpi.c > +++ b/drivers/usb/chipidea/ulpi.c > @@ -68,11 +68,6 @@ int ci_ulpi_init(struct ci_hdrc *ci) > if (ci->platdata->phy_mode != USBPHY_INTERFACE_MODE_ULPI) > return 0; > > - /* > - * Set PORTSC correctly so we can read/write ULPI registers for > - * identification purposes > - */ > - hw_phymode_configure(ci); > > ci->ulpi_ops.read = ci_ulpi_read; > ci->ulpi_ops.write = ci_ulpi_write; > > --- > base-commit: 5bab5dc780c9ed0c69fc2f828015532acf4a7848 > change-id: 20240328-chipidea-phy-misc-b3f2bc814784 > > Best regards, Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland