Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp157668lqt; Thu, 18 Apr 2024 11:01:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVH3GzNpOZ59Ha3dpsZUks6Hvs9hIKEhRddFR0L0a1PptMwJ6dTidAtGjHPUFSH1O3BWTLfgW4aZuuowv8LBqo8IzVkMe/FqCAbXr0Nw== X-Google-Smtp-Source: AGHT+IFAbJTEmQfeehyVP4kYHlmP30YR+I2WGUq6ZJn65wAmUjiEa8CpT7Trrq9RBQGTC1wGcvrZ X-Received: by 2002:a17:906:a994:b0:a46:8daa:436f with SMTP id jr20-20020a170906a99400b00a468daa436fmr2348607ejb.69.1713463260031; Thu, 18 Apr 2024 11:01:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713463260; cv=pass; d=google.com; s=arc-20160816; b=khKbzH9oKnDd8ReSYlWTZMM1DuXb+jfJ5dPJHgoSPy7CraCj9/4CzWOy665obXp2PW FsSOcal5CmSHp9PIFzJ8Y9ZyzwVNDESnSvRkQBchdAjd8GOpP1JhgvVTL1TJOO+OM0KD WNSeex/xK76Z2ZOqMp3njrmKHMr76BnbH1N+42UbAg0FI65g2DIKoPrrLNfCmhI1RXUJ xOfJwjrhBkp/C9JLg9EFbmCEdMoSRjyYTovfeQJNE1DC5INKCePLPt3wEwqjHNWPa2s2 SurnENMrdEcsnDDh2iq37+JxLkClT8REW8aiJTgo37/leWvz3uJAg4qeRDvaFZxnRh0P tujg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=H7LM8/XVqX5vMhc0pR52NCARjJborSnDK4sHREh98K0=; fh=Y5j7hx6Mrg8MGIOE45wRtQ0KXD1FJHHU/Wa4Urd6qsM=; b=q+uwV6pYnqyeQcbsLMpGstgl/7P8oMowkG8JQSLKwQYPNlbjfwWBGTqadscMpHPjcd sN9uKphVfzxylzZWxla2C/p6vZ20pMi5r65tRTqI4XB0UwRupWCyP8kqlI5rXaLEGXlh WOr4uE7cWTEMu1/VX+Kp3TkDhvE3y9Zxs4wvrHLasNRs07AlbEltWsLnMJpYCBFn41oV MXdC5aa2GaG01fs4FP9fAdkG3EqtWsxeOR1JvkM5+xf+oG9DR/cEMHFQxIveIRGoHRhM +oOK2JWSD0nBJGr4Y12aEo6O/P287cK7u3ifuphpzV0bUADCnniZrAV31qPe6HS6+Q/A C60Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N2DRobMN; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-150607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a14-20020a17090680ce00b00a555e9e11b4si1129113ejx.342.2024.04.18.11.00.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 11:01:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N2DRobMN; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-150607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 579B41F219F9 for ; Thu, 18 Apr 2024 18:00:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C79B178CEC; Thu, 18 Apr 2024 18:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="N2DRobMN" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09900174EF9 for ; Thu, 18 Apr 2024 18:00:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713463249; cv=none; b=YP8rZr1QvIyjHfncpfg5q+WkJ2mVGL+irzXLDQwrMhx4/XFw/sZ7rMaGXJsWDtu7sjjCq2kS/MwAP1DOwtZWF9bDNGFMA70AonrOMdqhQi17I8P6fKQCNalyhTeor8oEZ0Wfz1r5mIiZPynzvxxUyAkzZoEqnNN7UyG/dQWxzbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713463249; c=relaxed/simple; bh=usm7tepmfqiHf+FiexAMtactC+FuISQE/tDTb1eshBE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ROEcdPm0HTl1pZiAvFi95V/IvTwK8/WOXgsOuN/KKp21cADNypujwRJWa4j+rfviVX7Uie1CZoKs33d8+SwzE868yOSZ8azV5MBzsvQRClfpp+X5tTK5wk9WaZmaB44ykhphjM5l4owYDMWM/ZLCuo0Tc2wxalNdY/vNmCjAFxw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=N2DRobMN; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d858501412so15839631fa.0 for ; Thu, 18 Apr 2024 11:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713463246; x=1714068046; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=H7LM8/XVqX5vMhc0pR52NCARjJborSnDK4sHREh98K0=; b=N2DRobMNluGBzWhEv8MvrVp9xPHZbxnD5dokzzQls8OuceN698VWxpVIM2Vt+Y/FDl QorJBv8Z6bEpZbn7jxUXd8a6GUnqaO+TIrEFwEWgTsfOXmy3zrprs9mN1sKJtOmmw8qP b+SqJWrdLix544m92KryVK2sVXrSSl58Fdmt3FnUBB2RfuMmGcIQ7JpSEsk7eIB/u+wW W5NCnCC12/IBln4x5R8nhINO+Dn8FW/RW7iIWI4lQusl9E0XI7XsPbFU1KGxB1n7wPuj 9bjHkra5BCswTwjntalzY9wom/+48F080Qyd+ViBXvaP4HHrmrUpvpInIb3NgfEsNgbb Gczw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713463246; x=1714068046; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H7LM8/XVqX5vMhc0pR52NCARjJborSnDK4sHREh98K0=; b=kmpDEyIS92CJJyYRku0wJvY2bh1LTd+l6+ZSvEgsCTJGdqAfQRsOugchYI8FLoo8je HkIhAwO75ddDFr9uocc6krfE4AcolWVkUz1Vz0E4z2RFrQkJfPF/RqRAi/HLMUIk2n2f T6sznLa5cqf7XZVxV8YTA4MPw3z3xDtQY4jYdJaKSgkysR8dshwVWK1z38yIzzUDdErV KlNET/PEa+uERV1RRxqjsemf5FDb61XUDHPzJXnHWlFq24Uo7BsI2UdBCpw2OIo+dPQN 9ichxIXNLWnQy6oz73v9xp2mJ6Hd0y/vhCflAinmS6xr8k2VAZm2/rlOI5ugoXl+zTqg SXVg== X-Forwarded-Encrypted: i=1; AJvYcCWYBKnHotkM82mEac+J4Ig45342c92mghbkoi//l09bVUoKOUhqvznT2F7M0+mSJDDGFev4QlQRxS6N1Uv31v2gwFcmowAJnloYQ6yv X-Gm-Message-State: AOJu0Yz4+79+xiYMuNIpI1o+b8N3hQDyDdfsBBLcW7K/ZwoUHWkl0lkN NACwE6fF2GEPYnt0XxrKaWQAmPaYFAMowo87aj8ZmKirl+SgeK/ZaMXo+6C6A8D5e+Y7E3+oSiu 4 X-Received: by 2002:a2e:a682:0:b0:2d8:71d4:4c62 with SMTP id q2-20020a2ea682000000b002d871d44c62mr1666799lje.49.1713463246082; Thu, 18 Apr 2024 11:00:46 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id y19-20020a2e3213000000b002d9fe841110sm269655ljy.75.2024.04.18.11.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 11:00:45 -0700 (PDT) Date: Thu, 18 Apr 2024 21:00:44 +0300 From: Dmitry Baryshkov To: Johan Hovold Cc: Bryan O'Donoghue , Heikki Krogerus , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] usb: typec: qcom-pmic: fix pdphy start() error handling Message-ID: References: <20240418145730.4605-1-johan+linaro@kernel.org> <20240418145730.4605-3-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240418145730.4605-3-johan+linaro@kernel.org> On Thu, Apr 18, 2024 at 04:57:30PM +0200, Johan Hovold wrote: > Move disabling of the vdd-pdphy supply to the start() function which > enabled it for symmetry and to make sure that it is disabled as intended > in all error paths of pmic_typec_pdphy_reset() (i.e. not just when > qcom_pmic_typec_pdphy_enable() fails). > > Fixes: a4422ff22142 ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver") > Signed-off-by: Johan Hovold > --- > drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_pdphy.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry