Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3880923pxb; Tue, 10 Nov 2020 02:26:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVlpuKzOm7KvIrjGTi9vfIX+eO7fdd6Owro2kxd4TA0W5KBTucR3VElJ4ZdleMCEEo2aVs X-Received: by 2002:a17:906:519b:: with SMTP id y27mr18587810ejk.25.1605003995162; Tue, 10 Nov 2020 02:26:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605003995; cv=none; d=google.com; s=arc-20160816; b=aE454ax++iA3FWjI57Xa11+KxXzTYbqMN2UOV9kicDnnJ92u8igPICu5C1imLYaMEn LrAhXhgf/OSyPKkqP6ELwX9H+QPtaISCuPTJiSrastkOkY8lcFzseGVX0rf2OjVpO+d+ SMoBc95uTDxO7z2WndTAuHZCoC5i8qv2bc3kFw8/HYfU5yI/VTJg5CxIO8qgHrgpClMr PesRqv0B9k9ZS19gXNmQRTpLwJJFrHjAIS+m+971QxhCvAFop9ASOY/EBvWbk47fUvCc +6ODlymtl19/5fs8OQzb8JltIeyQndgJ7MthEjEDpgd6YTYMlz0SYjVFjSruSV7DbCyH N5LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=SAM8FttZW2H48y7jY4eJofzOj8s3m04uqqIn5J4eMFo=; b=YJONJnlFgVVVAGQwjai6PEEmSI2oK617mtSp1LME7fsAejqiKHvjKm6YKF1T9y8lwu hujzbu07KCXI0acm2eF+rV9GHWO93U0QWNMv1Zm6PD/o/XdweHTsziVGcG6Llx6jD/kE yOnyu3vq72EVVTMJ3h7E9jzvrNtaCGWmIsZJbjUZFXa1mQdIh9oFsQiXSbul8rpWbC/c fSYM2AaHQh0l0jmW2wE274NsU+pDr2KF6j+ZuBWazXb42kyiXjZkaKiyW+xXi/RBWbrc 5EJzS23K1LUS3aJ1zNyEg7hlTp0jwp+drY4vWCm8XrTImRI3HhhLLv1QqAykNc2UZY40 C2iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=bWl3YNSQ; 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=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si8581825ejr.364.2020.11.10.02.26.11; Tue, 10 Nov 2020 02:26:35 -0800 (PST) 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=@st.com header.s=STMicroelectronics header.b=bWl3YNSQ; 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=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729630AbgKJKXc (ORCPT + 99 others); Tue, 10 Nov 2020 05:23:32 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:45474 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727325AbgKJKXb (ORCPT ); Tue, 10 Nov 2020 05:23:31 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AAAGjkk020555; Tue, 10 Nov 2020 11:23:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=SAM8FttZW2H48y7jY4eJofzOj8s3m04uqqIn5J4eMFo=; b=bWl3YNSQmNUYdsaO78M2VW3QAyxcV3260FNvtX7gm72OOOyqmDfXVcqQlae6bI6/tIdO ds3Mqcu3Ck9WhNClwD03g+5p4Ld0ybpSqbwyCUOq9svLzd8B+JsBccCWkiD/wgL9iw5M EhRRuAcVgroB6KjRC5aosbRs1tdGECyuFrYqViDD0Ja4rY9QOTrPz5aHqj3njU8wu3Wb Gy8Nu/moTGQxYJt6d5wLKM7L7BTMX8bG2vAT9qMaJM+tWj/G2Gofiv3w66UZXbAcbXiH ivhhWn8wocXLJ/V935DtdsP96O2+lA1u87YwqD9ArE+Rt+hpJlnAN1v62MYUhW54ZaKg 3A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 34nkbmygsv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Nov 2020 11:23:14 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C0346100034; Tue, 10 Nov 2020 11:23:13 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B06E823EDB0; Tue, 10 Nov 2020 11:23:13 +0100 (CET) Received: from localhost (10.75.127.44) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 10 Nov 2020 11:23:13 +0100 From: Amelie Delaunay To: Kishon Vijay Abraham I , Vinod Koul , Alexandre Torgue , Maxime Coquelin , Etienne Carriere CC: , , , Amelie Delaunay Subject: [PATCH 2/2] phy: stm32: defer probe for reset controller Date: Tue, 10 Nov 2020 11:23:05 +0100 Message-ID: <20201110102305.27205-2-amelie.delaunay@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201110102305.27205-1-amelie.delaunay@st.com> References: <20201110102305.27205-1-amelie.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG1NODE1.st.com (10.75.127.1) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-10_04:2020-11-05,2020-11-10 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change stm32-usbphyc driver to defer its probe when the expected reset control has its probe operation deferred. Signed-off-by: Etienne Carriere Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index fe3085eec201..f3f582a3ccdb 100644 --- a/drivers/phy/st/phy-stm32-usbphyc.c +++ b/drivers/phy/st/phy-stm32-usbphyc.c @@ -342,6 +342,10 @@ static int stm32_usbphyc_probe(struct platform_device *pdev) reset_control_assert(usbphyc->rst); udelay(2); reset_control_deassert(usbphyc->rst); + } else { + ret = PTR_ERR(usbphyc->rst); + if (ret == -EPROBE_DEFER) + goto clk_disable; } usbphyc->switch_setup = -EINVAL; -- 2.17.1