Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3936786rwi; Sat, 22 Oct 2022 02:31:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46/sb5Sz8vNwQpeMIU7aK4GNWrVytaJocT5xsfEGq6g7fv0uRHvpAtt6ajU9nEaXTtgLIS X-Received: by 2002:a17:902:e88e:b0:183:dcb7:c4fc with SMTP id w14-20020a170902e88e00b00183dcb7c4fcmr22883044plg.32.1666431069104; Sat, 22 Oct 2022 02:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666431069; cv=none; d=google.com; s=arc-20160816; b=vHNXQJhkjho/Kg+BWlKNoZgtKNW4/1P0fhGxuW6pjP/KpVqVtN3V/5DCpnWyxSpKJS uvqU/lDyMQuDhPaiWk+mTkOnO1PsNafx2w96Y5FvGGC4ZfpisN0LsvPpRh4jJwTtPqTy kNsz++0AMTDvD+0Gp8/cxAqJ7nkC23wPlYQUkbD171noIB9MMB3tdmJPPChvnd/fgtrr +ocX89zblCBODAOIIQJ0Yxk1d+v3sOEZ5Uhj9Vh8G4WiihmmembEEXFsLuIcHjd/Pssx abPr12Nz11X44V+nhhttJ7ZXrmjapzBVFGst5PuHw1pNXY33eKecGFkpxuz77HuJVbXB 01FQ== 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=kPlUaQ+iKtENq0IJ54RWWYW1ELX4S1Vhd46BLkycqF8=; b=hNrnZ07HK5iD9zoxOT+0jyRytP084mxOPCX+wVuQ6qwxhup65hgLqbpLfhsA8Jv+p4 J30jGyy7tCGhW+hPxd8bFNR73SkHd3LmKI1smKhjXQW08ofDN0CQ7/fFEVapP/17nR6r SAiBE2MSPD01udMHQgKp+utVVZZFQ90fxbsrfP04jemTEGdXfFiVb8Mw5tNB5J1+VnL6 M2YhEUFfULOkL3An1vb5rXcWq2UTpXRQkFw3OC7/N7Cc21wuPCd2BljJjYMjckFTmzvw nnCagqPC9mWe+y/ZzxA6O94c8Y+xaTxCYn+D/1Vy+S3Ftj7Di/+o2/+vc69Rax+GfDu5 mpsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="K2/TNFwK"; 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 c13-20020a63d14d000000b00439e032756fsi25022639pgj.65.2022.10.22.02.30.41; Sat, 22 Oct 2022 02:31:09 -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="K2/TNFwK"; 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 S230414AbiJVJKM (ORCPT + 99 others); Sat, 22 Oct 2022 05:10:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235261AbiJVJJh (ORCPT ); Sat, 22 Oct 2022 05:09:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13C252DF452; Sat, 22 Oct 2022 01:23:34 -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 79318B82E1F; Sat, 22 Oct 2022 08:08:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C1BDC433C1; Sat, 22 Oct 2022 08:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666426115; bh=pZTA8+b6t89yvqWaduEatUoC/Fpvy1u8fwa7q8EqwVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K2/TNFwK2ZLPmMAKOnxBaBwnsvxw0rwLWbEKuEI90QuA2zE7bQ+gARZasAVyefA4F i3SYCF0x7Y5UfwRspEqsUVcRIcpcqn6h71RMnBbR6o5CsyfVq3R31bKhbK+6iQANFQ I1BxsAuw76NVWPbFBtTujiQpZgSEdt3OMmIpURlI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wayne Chang , Heikki Krogerus , Sasha Levin Subject: [PATCH 5.19 693/717] usb: typec: ucsi: Dont warn on probe deferral Date: Sat, 22 Oct 2022 09:29:32 +0200 Message-Id: <20221022072529.126182612@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@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.3 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