Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp178102rwi; Wed, 12 Oct 2022 18:10:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4S4FtpRlzsnpLEswM8CkLYh/2yW88a415PvOlx/VKijYNSZFvL+nI3UV00oz2TS/QIo81r X-Received: by 2002:a05:6a00:190d:b0:550:6db3:b9be with SMTP id y13-20020a056a00190d00b005506db3b9bemr34216377pfi.1.1665623426723; Wed, 12 Oct 2022 18:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665623426; cv=none; d=google.com; s=arc-20160816; b=m+zF/X8Y/L5wQefO063aKUmfSKwTEeqJr/ICW7N1hd6ahX5xAo4LwiT5olc74245xn P973aXvalW5lWb8J9O11eZZeWN5+7HOaOrwKN0+t968UAJ7Q3tSbednPMUfnKzTOSEBQ IcI5vchh3D3zFhrI+i+CrVdZ848H7F7e2qk/GHBkU6iKVKKymiHO+SDRupmBgpcmgI0U 2Rap3FrJDe6YvwEahU5A0FfmKb3ScZDIpKipVKf+Byoh2HU2JeiHmfKZ2Gk9V9gcO26K LTfY8b7uWXW6o8iXOHfEuYSFzYUAKwwoQ67z3ZxOKsvqP1gyzPHPrezUR4MVxOtUTB+J yWvQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kPlUaQ+iKtENq0IJ54RWWYW1ELX4S1Vhd46BLkycqF8=; b=O0dluiEgEYL8XmbljODSqOgfCbTMrlblDObOeLaRPgwYQ31YwmIZGjS69a/y/3Y7gV 5Vo/sKBh5cLMi6Gh/ptDMRPUEj7p3iVL7Ea8X3BBkRWGEFkMRFJUFaoaSNrJAUExe+Ym Cn0hRHTMF4/vxXluNG9GlYkkg91vk6pl4zzGUvgbw6d0BPY+PG9rXEW3+e1gpF5hClpw aSIOJWFr5OYwSb2Iz9GdeiHhE5wu8fvvCbsKP9Rw22oE+D6iWDRt0u6q3KZyZeDIFYzT 3vggRtD1ddRbHMANt5mKDdj4k+YQviM+zJYNaOksasLH1y1sYyE4azQGZYloAntSe7lI c14A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r4amPdAv; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a630d57000000b0043c1ef4fff2si21340973pgn.345.2022.10.12.18.10.14; Wed, 12 Oct 2022 18:10:26 -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=@kernel.org header.s=k20201202 header.b=r4amPdAv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231154AbiJMAZm (ORCPT + 99 others); Wed, 12 Oct 2022 20:25:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbiJMAXq (ORCPT ); Wed, 12 Oct 2022 20:23:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7920E6F54; Wed, 12 Oct 2022 17:21:38 -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 ams.source.kernel.org (Postfix) with ESMTPS id 8C18BB81CC2; Thu, 13 Oct 2022 00:18:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47A62C433C1; Thu, 13 Oct 2022 00:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665620308; bh=pZTA8+b6t89yvqWaduEatUoC/Fpvy1u8fwa7q8EqwVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r4amPdAvezJqLUY8cphf639KGbG/VLYk0w1QvIdqxL2lC1i+gSvsTV8a1UlXf/8bw MfGx5wg9XfgR2VM2LINIRZKkIXljR/YsCi/RVgtQfp5hTyMlRTPWuev5KU9kLJUgLh EhnK+b8WM6jMgrG+Yyx3p9YHuAM2zcoNM3VVaFcn+KZ2p3ZZvT4RAZ8ZC/FLBPB/kA 4C5hTb86hneJSSTxviWFDp0dzmhVgWNalg9JexEimvhWtujQ04nDC9t2dPcUbR6izc PCwDiNACIahlQ+0su1dLmI/veA2mhGEE8/VfM78kQJRj+KZDzYeQE98QehWJ1mSIff 5tRdNQOS9Qfbg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wayne Chang , Heikki Krogerus , Greg Kroah-Hartman , Sasha Levin , quic_linyyuan@quicinc.com, tiwai@suse.de, saranya.gopal@intel.com, linux-usb@vger.kernel.org Subject: [PATCH AUTOSEL 6.0 65/67] usb: typec: ucsi: Don't warn on probe deferral Date: Wed, 12 Oct 2022 20:15:46 -0400 Message-Id: <20221013001554.1892206-65-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221013001554.1892206-1-sashal@kernel.org> References: <20221013001554.1892206-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 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: Wayne Chang [ Upstream commit fce703a991b7e8c7e1371de95b9abaa832ecf9c3 ] Deferred probe is an expected return value for fwnode_usb_role_switch_get(). Given that the driver deals with it properly, there's no need to output a warning that may potentially confuse users. -- V2 -> V3: remove the Fixes and Cc V1 -> V2: adjust the coding style for better reading format. drivers/usb/typec/ucsi/ucsi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) Signed-off-by: Wayne Chang Acked-by: Heikki Krogerus Link: https://lore.kernel.org/r/20220927134512.2651067-1-waynec@nvidia.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/typec/ucsi/ucsi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c index 6364f0d467ea..74fb5a4c6f21 100644 --- a/drivers/usb/typec/ucsi/ucsi.c +++ b/drivers/usb/typec/ucsi/ucsi.c @@ -1067,11 +1067,9 @@ static int ucsi_register_port(struct ucsi *ucsi, int index) cap->fwnode = ucsi_find_fwnode(con); con->usb_role_sw = fwnode_usb_role_switch_get(cap->fwnode); - if (IS_ERR(con->usb_role_sw)) { - dev_err(ucsi->dev, "con%d: failed to get usb role switch\n", - con->num); - return PTR_ERR(con->usb_role_sw); - } + if (IS_ERR(con->usb_role_sw)) + return dev_err_probe(ucsi->dev, PTR_ERR(con->usb_role_sw), + "con%d: failed to get usb role switch\n", con->num); /* Delay other interactions with the con until registration is complete */ mutex_lock(&con->lock); -- 2.35.1