Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp869296iog; Mon, 13 Jun 2022 14:57:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLvMGOWrvCa1Xvzd0LaV6De7WbSmjTpkSdjChkdxjEW+TiX61K2AfDOBJkUDZ9czwGpQy+ X-Received: by 2002:a63:2a97:0:b0:3fe:1929:d05 with SMTP id q145-20020a632a97000000b003fe19290d05mr1526781pgq.58.1655157454798; Mon, 13 Jun 2022 14:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655157454; cv=none; d=google.com; s=arc-20160816; b=kjWw0qux8OZrL1Mid1eCL7ULa9nJVQtZDq7wfdocShGeIpJztxnCYp0PBSQGVke3dO LwRY1SyamZBiKFc/nJi/eEzbWDs7QuU90bxWERsPiG9dVntriJf1AaD465as/heXg6jL Jkddfe+Jup4ci3b0y9Li6xuIdZStKj9CyI0ohAG2M5oVIcMeACO+xRjA7q1knp/cR4m7 rngYDH7tJRbyYxvD6NlaH27JSZq85C+jk0XpVe9Xm1QAoSb3eW25enOHNTamoh32QT0C AATss1lhDFEqDtFc4vxHsW0y2gHKPmHVoT+SJnuCNDELKP1pvRUhvvQnrPBsGYOLmkbi 4hIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HfmXHviBVE0o3HCHUdS6+8UmjzDzxiux613KeakQDqU=; b=w6cicNz+fMGq2oqGHmERc5zSr6Kppds8EDOjKsw9VRaLMXGehEo5DkW4Sc1n8WjYL+ 2cJQlQmLAifq50q4IMmTsP/qWzW62/RzDvJJFi9yCJe6Dw7zjo8gYX+n4wb5IZ0qAX5J XEGdx9RpCbss87Mi9SVgl0X7VKD3rPtfuf8Tn6XUZG5+XE0EEMWZGlT54iahI9WVqdPK nAVbmt2cCEz/c6tclyO0tSFuwx1GedugKdwqgMvekF/4ZJhLwb39gu9YvtJHdwrX2pQJ 9HfRDElTtbPqQSkQGfkpdgUMuQjIPPiSkeGraOozMtqSeTMwQ6o6N3eiZ/KA0rc1+9Ac Qygg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PZWPoYp+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020aa7972b000000b0050d5cf88e9esi10048581pfg.367.2022.06.13.14.57.22; Mon, 13 Jun 2022 14:57:34 -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=@gmail.com header.s=20210112 header.b=PZWPoYp+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351720AbiFMVGF (ORCPT + 99 others); Mon, 13 Jun 2022 17:06:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353149AbiFMVFF (ORCPT ); Mon, 13 Jun 2022 17:05:05 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D50E22296 for ; Mon, 13 Jun 2022 13:40:58 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id g7so8824704eda.3 for ; Mon, 13 Jun 2022 13:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=HfmXHviBVE0o3HCHUdS6+8UmjzDzxiux613KeakQDqU=; b=PZWPoYp+2PbenEf3ERwBjT4BMMcm6VBJJjKmkOmnD2bo/dDEyuNP6EuoVBt3iDfr7V KwQp/h7BrRRKlOK12kI8odiDgVTBY0YDh5t1xgQKkTy7rxe+8uYUrG/VtfR58u+/zama zpZpgeRI5yLJY8yUsjAz/tBZqCS/beclAyCPDlP1XfDbSjZCsDwzcYbaTrtq5dRyThMB wH8gu+VYtrVuJAxlLWxGsLtVdyqtpw3kdrZGJD1LgZBXzPUFkNuEUv3NHQkWt9FdNzY9 74LcCimIhP+N8IHT/QGlsRuTqIqxw9FXtrPtq8y3LtaZSHEpFzZkKkTDcPeCapioHIeg bLHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=HfmXHviBVE0o3HCHUdS6+8UmjzDzxiux613KeakQDqU=; b=QP2FutBAdMuRsQEZcWeS/i6AC222XX4qBWFeGUN8LOJSFN3L2hSKav8SXXx29uuHAh +rSUq12CjXLXPb9G3pRsBUdde2/eDyC7lZEDu5SVYbUQ2gUJmUnV3QngkQ5O7PZwFBuL CmNBZ7cYzdlbUu3491NMNKs7teFeoA1MTXUU9qwa5eKHYhN3GBZrn/x4lJSbSP8McDJX GkrvyYwRMY37jRjQ+W5vYre5mC9fuD4E6bPxOaHMw8q8Aixf3zpAqMr5sXkyUl0jNLfw kl5k3wpBl/+d2AHkhT6O3zkCXeSTRuDQ6TAGiON8ZCtI/2TiD0lb1BF0ES88B4rEp+g9 zcvA== X-Gm-Message-State: AOAM533cfNy2pwiZbD5ixpcZxS6NaSahoUpbBaBmEOo3PDBRWmLm7Dh0 hdRYwgBwubKNYZdeFhM6O8Y= X-Received: by 2002:a05:6402:22ad:b0:433:d474:1fb with SMTP id cx13-20020a05640222ad00b00433d47401fbmr1779604edb.129.1655152856749; Mon, 13 Jun 2022 13:40:56 -0700 (PDT) Received: from ?IPV6:2a02:a466:68ed:1:9c12:8f08:a584:7d53? (2a02-a466-68ed-1-9c12-8f08-a584-7d53.fixed6.kpn.net. [2a02:a466:68ed:1:9c12:8f08:a584:7d53]) by smtp.gmail.com with ESMTPSA id wl21-20020a170907311500b0070759e37183sm4217579ejb.59.2022.06.13.13.40.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Jun 2022 13:40:56 -0700 (PDT) Message-ID: <77a486ae-06bb-7f1b-17ab-8d60ccfbdee6@gmail.com> Date: Mon, 13 Jun 2022 22:40:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v1 1/1] phy: ti: tusb1210: Don't check for write errors when powering on Content-Language: en-US To: Andy Shevchenko , Vinod Koul , Hans de Goede , Stephan Gerhold , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Kishon Vijay Abraham I References: <20220613160848.82746-1-andriy.shevchenko@linux.intel.com> From: Ferry Toth In-Reply-To: <20220613160848.82746-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 Hi Op 13-06-2022 om 18:08 schreef Andy Shevchenko: > 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 with the patch this error continues to appear in the logs > 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 these errors are gone > which effectively fails the probe of the USB controller. and probe of dwc3 succeeds Tested on Intel Edison (Merrifield) > 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 > --- > 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)