Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3489452pxb; Mon, 4 Apr 2022 18:37:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4WB/AEywH3l+69NHMJ8k9UMAbebhQDyIxjX3zoKlBDro4LSb3rb/SxOZdLpGs/X8KD1sc X-Received: by 2002:a17:902:a714:b0:154:6dfe:bba9 with SMTP id w20-20020a170902a71400b001546dfebba9mr1088670plq.124.1649122670195; Mon, 04 Apr 2022 18:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649122670; cv=none; d=google.com; s=arc-20160816; b=aKT6V2iC+mEbyiIVKrBHap2qqqvpfXSO91QSJRr21mPCornz5GN1RvjNIlZUl7fj0z U38XH0h+zkCz7FeEo+HeOAKymShFkbxx+bNBdEg3rTO4ZjMBIVM6fmgI+tClkww5mnlh 7xdQnJaqnXGHspt0oLbMr7up/4xqhmjySJv5WOj1ZxMQLbGo1SpJtohLYyL5E7G7QV4T SWAKy/SSgX74Uxl4qPQfjq7eAN0QDypZj52kd/KUw9Quq9bfHvlKyr0MyzA/+GhdnTm9 LOVwWJ71HeeIzf9hw5whs5JU6wRgrQJymoxMqzoP6wQI2wK2UiGcHu+DuuSfXHGIszK0 mxSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hYqDI3ofhqL3OHWem6zpilZqOmascI0DZit9x7jflOc=; b=BYajkbz64pKLbEhOiqNX4gE4GNc7FTdgl7oeRrFH3kYcvtM9f73GkUGaHQ5+Gzn3Mv JDESlXNFDTOeQI+Kcaal9CgtNuJ3ryq07ZPqK02mZGgZ1DCpsYpH0m5fmSk7B5ZAGsyh c/pE/B84OUNbwv07J16K0oCBfeoogTZvFkkumAYvCzYxUOxSeaEzpjyA/m8AMon2Figb 67MgkdlyF/Zba31lmk9hMisL6GS3YlC9SGQ2U+qkmXq7QcE4ybu3fE1jAhoRr+vMrSeP bioS5UVm2mqjbLxQOMQlb3ie/7yWPxREqfTMTS508CtechOuw09BAukdipJH2q7NEETU e0Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mWd7UYMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s12-20020a170902ea0c00b00156a039ea93si4894071plg.222.2022.04.04.18.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mWd7UYMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9F0AB23DE8E; Mon, 4 Apr 2022 17:31:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359717AbiDDOGw (ORCPT + 99 others); Mon, 4 Apr 2022 10:06:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354650AbiDDOGt (ORCPT ); Mon, 4 Apr 2022 10:06:49 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB24227CDF; Mon, 4 Apr 2022 07:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649081092; x=1680617092; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LsWFLHLl25IGPmvMSnceiEs7ypxsKRsANc2aGAvqfWI=; b=mWd7UYMZKcjKDqVT94qku7szgAZnXRzU1B7JeQryFjbYFzyCzYbOSx6+ ikV5C5GWrfP1hfaECeu12QbASwZQh0cb7vUND+gRo1wQX5g5edDgT2ubG rtvL+T81mpIeE+S8sQXWw3PMJXnD0rQtFA9PX+rxEKG0yR0RfQH/5zmW+ 6lZigTt8kapO4H7G8c49nQBfVRXx4OHA6QePnM3gB9hpcEkoUeLiMFk5A iJSWEaVWOpGlynF1R1wGM9jKSGUA0ezrGf+LFYZrE4xqJe3xLON/DaBxY vD/lev/dDThJorEQFnEukl4cBwjjkLDOK7XR8Qqj/y5OhBaPQkCJyEJ67 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10306"; a="240457523" X-IronPort-AV: E=Sophos;i="5.90,234,1643702400"; d="scan'208";a="240457523" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2022 07:04:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,234,1643702400"; d="scan'208";a="696578362" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 04 Apr 2022 07:04:49 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 04 Apr 2022 17:04:48 +0300 Date: Mon, 4 Apr 2022 17:04:48 +0300 From: Heikki Krogerus To: Sebastian Krzyszkowiak Cc: linux-usb@vger.kernel.org, Greg Kroah-Hartman , Sven Peter , Guido =?iso-8859-1?Q?G=FCnther?= , Angus Ainslie , Hector Martin , Bryan O'Donoghue , linux-kernel@vger.kernel.org, kernel@puri.sm Subject: Re: [PATCH 7/7] usb: typec: tipd: Fail probe when the controller is in BOOT mode Message-ID: References: <20220317154518.4082046-1-sebastian.krzyszkowiak@puri.sm> <20220317154518.4082046-8-sebastian.krzyszkowiak@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220317154518.4082046-8-sebastian.krzyszkowiak@puri.sm> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, Mar 17, 2022 at 04:45:18PM +0100, Sebastian Krzyszkowiak wrote: > BOOT mode means that the device isn't operational because of missing > firmware, so there's no reason to try to continue in this condition > (probe will fail in a different place anyway). > > Aside of that, the warning that used to be emited about "dead-battery > condition" was misleading, as dead-battery condition is a different > thing that's unrelated to operation mode. > > Therefore, assume that BOOT mode is not a supported mode of operation. > > Signed-off-by: Sebastian Krzyszkowiak Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/tipd/core.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c > index d3c70aaf1a0c..c818cc40139d 100644 > --- a/drivers/usb/typec/tipd/core.c > +++ b/drivers/usb/typec/tipd/core.c > @@ -729,8 +729,6 @@ static int tps6598x_check_mode(struct tps6598x *tps) > case TPS_MODE_APP: > return 0; > case TPS_MODE_BOOT: > - dev_warn(tps->dev, "dead-battery condition\n"); > - return 0; > case TPS_MODE_BIST: > case TPS_MODE_DISC: > default: > -- > 2.35.1 thanks, -- heikki