Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3023994rwb; Mon, 15 Aug 2022 16:21:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR5HsL+K8pifKImGRRFBPP+QkpPQry2ruZM+hDd+MUyhDoGWX1O/kBHIzTwETSIHsv/aLvLo X-Received: by 2002:a17:90b:4a8f:b0:1f5:ee3:a6a1 with SMTP id lp15-20020a17090b4a8f00b001f50ee3a6a1mr30505862pjb.149.1660605589434; Mon, 15 Aug 2022 16:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605589; cv=none; d=google.com; s=arc-20160816; b=HJ1uvrdGisLRPebbF7B26Q+AxqTWWC3kksfCE8mjIOvVg7cP2QVlNonBAnlKsKS7fc a7nST4l4jdUOX6kBa3oPhhTCFdsWwwwCxVu4TthehkLXXHdj5pHg9uNdM/SiLfIdMlPO FXkrFj16mcwUBcHBdsInyh4SaeWZcDRCJeAhAvUU66ail39DY3eH7G6SBpzYy9ICaNhg u+Fmf6E010h1XT+MZBkjKu6nz/SyRJgXhwKKldyu6EdIiNDM64s8Gu2gZXuALYrgydoP Ynul6oh7o+xw9dVhOLxOxKu/nvg2HykOzZMn0teiYcRTuYDVY+wek52vMUyZgXlCsacv vgmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S06DGkeeCIXTxVnp0Ygn8EraCeNA68Q12l70DaK2wko=; b=t2Irx7bLUDxJDsN0nWnp0GoPdPi4kcQC1DigxLeCc+ixPgWlBqP91ePFM05kOG+d7h FTUCpH6mr8wZshmNXrfxrb2QwPyhqpzkpA2MFpJ3ivXNXPk7eAJq2srayHkgVTnscZ+K DNSTDL0l2F5sws7N/DzzStxZP90hhVB4DfvQsqCyncBSfSIrYP6O6RIZuvu2bvpJZkUp 9igBiB3sFVLpsgmjEixHPXNK6KYl+V6L9DFovMupH511YlDupDnYd6vAWEeaKPOmflCb UaKntWPycn95qzrsTUABDGTUlZYsMBbywHfGSA6JC4wFUZnfb8YHRgRRknOgTA+IabBE DpQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DiA7tadZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l70-20020a638849000000b0041c2c83b15bsi12271651pgd.639.2022.08.15.16.19.34; Mon, 15 Aug 2022 16:19:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DiA7tadZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346881AbiHOV50 (ORCPT + 99 others); Mon, 15 Aug 2022 17:57:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349867AbiHOVzp (ORCPT ); Mon, 15 Aug 2022 17:55:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D471A7C307; Mon, 15 Aug 2022 12:33:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D74D961178; Mon, 15 Aug 2022 19:33:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C518BC4314A; Mon, 15 Aug 2022 19:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592030; bh=Gi5fhKEQRLorlItAaeCoWCufFbIzNt8b6vIbaqCylvQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DiA7tadZ8M0eAByb4QdEnCbPGp5TzE6bamvZXXJTlD1lQJ9JzBsgAZxRigo8zp4bV BCpm4FYVbQ0iJi9nu+Dk82hK/fAC6nFQH2oKiwrzXRDVs/fuFgXHe8PHM01kVIGhHg RBUOTPkWj+p7gA/q1Q5GZFKweK8vrCGWt6YaI91M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Hans de Goede , Ferry Toth , Vinod Koul , Sasha Levin Subject: [PATCH 5.18 0720/1095] phy: ti: tusb1210: Dont check for write errors when powering on Date: Mon, 15 Aug 2022 20:01:59 +0200 Message-Id: <20220815180459.185252388@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko [ Upstream commit d4a0a189b72a7c98e4256292b18b67c69fbc9343 ] On some platforms, like Intel Merrifield, the writing values during power on may timeout: tusb1210 dwc3.0.auto.ulpi: error -110 writing val 0x41 to reg 0x80 phy phy-dwc3.0.auto.ulpi.0: phy poweron failed --> -110 dwc3 dwc3.0.auto: error -ETIMEDOUT: failed to initialize core dwc3: probe of dwc3.0.auto failed with error -110 which effectively fails the probe of the USB controller. Drop the check as it was before the culprit commit (see Fixes tag). Fixes: 09a3512681b3 ("phy: ti: tusb1210: Improve ulpi_read()/_write() error checking") Signed-off-by: Andy Shevchenko Acked-by: Hans de Goede Tested-by: Ferry Toth Link: https://lore.kernel.org/r/20220613160848.82746-1-andriy.shevchenko@linux.intel.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/ti/phy-tusb1210.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/phy/ti/phy-tusb1210.c b/drivers/phy/ti/phy-tusb1210.c index c3ab4b69ea68..669c13d6e402 100644 --- a/drivers/phy/ti/phy-tusb1210.c +++ b/drivers/phy/ti/phy-tusb1210.c @@ -105,8 +105,9 @@ static int tusb1210_power_on(struct phy *phy) msleep(TUSB1210_RESET_TIME_MS); /* Restore the optional eye diagram optimization value */ - return tusb1210_ulpi_write(tusb, TUSB1210_VENDOR_SPECIFIC2, - tusb->vendor_specific2); + tusb1210_ulpi_write(tusb, TUSB1210_VENDOR_SPECIFIC2, tusb->vendor_specific2); + + return 0; } static int tusb1210_power_off(struct phy *phy) -- 2.35.1