Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4955420ybl; Mon, 9 Dec 2019 20:42:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzFQzzL+w6Pjs6670+z+8UuXLCdX+7ZGfbnwxlbQFXnMR2JNK0PXmLv8EzDyZdK0HpWpfCg X-Received: by 2002:aca:cc55:: with SMTP id c82mr2318778oig.165.1575952928663; Mon, 09 Dec 2019 20:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575952928; cv=none; d=google.com; s=arc-20160816; b=V/i2A3aXsD6ZsUmWjy/pF+K/Q9CbBhj1HnhkEF6C7qcN5B0S2tSCbe83t0ZF9rNjYc ZRtd39i39TqljkI7g25kFdbTQ2fHvWAN4ddx4UeqmxYUcf0AsPgdD/xy4MfZpt8xmZgC g6HKSIvaCE/9MYny3I1FPLRLypHOIpVkPbpNxbrB0pDUbT9/v0eQOLexVHRieXZYUSjq aXWsVQy8fGsO5oF+jmuBgWpOu7sQiVusHlkzPMySaSdMC2nN11ZK2t8WmSGq3m46xaqZ CDtRFLOgnXABOyX5G71NLGwYqYOW9oJynjDLJkIwBa63bVF192WJOajwd2SsmZZpcSH/ +KNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=0aHgv6I5n6zloYGGXpmUFbpr1AC6keJ830N7MzWtD3k=; b=0gDCrKgwMAkSOKdydAiqOFt9rQrABZ+uaxc9UJ11vcBBwS38vL4riD6LkwFpsnhm+u ingbCOY0dUGZuRSfULjKDnvMfGBSdvtjVVftr/xSGDCBz2FaVbbskOBapOR5Qcv850gT 3+3XR9qDc+Cp7Oe069SUdnUoAoj+OX8S6C+al7acacZZQs4pRh5GtsAYOyHRUG3H7+f8 x96KT4+O0VBxRN91on0EodBLDgLUEgXZMeqEg0SaAWowzx9HMBEC7pQjXbL1doaAls4F WF9/z/ax0WLnk9JIh7xulM3hOTZWS1QUiprfUhR/XAu84aY2JGsOodF83ZMARHXthrKA QMww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=UIc0pMNn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si1300331ote.135.2019.12.09.20.41.54; Mon, 09 Dec 2019 20:42:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=UIc0pMNn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726831AbfLJElB (ORCPT + 99 others); Mon, 9 Dec 2019 23:41:01 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:41799 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbfLJElB (ORCPT ); Mon, 9 Dec 2019 23:41:01 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20191210044057epoutp022197a69eb2a315f73bbd087b719e5273~e6MYcLU4V0190601906epoutp021 for ; Tue, 10 Dec 2019 04:40:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20191210044057epoutp022197a69eb2a315f73bbd087b719e5273~e6MYcLU4V0190601906epoutp021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1575952857; bh=0aHgv6I5n6zloYGGXpmUFbpr1AC6keJ830N7MzWtD3k=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=UIc0pMNn/c04HQj81dkyoHw0KiJGGGU916hHaeNLMSH43iqQV7vQr1yRRCKBgAH+E ZuRWH1E+hMbBF0Dm4nxwB9+U4rJ2zRlbmoWIgm6K9hHaSW/v1iVviO0/tjXTpsLF5z LsrVu76U7uUSS64HgqXUvIAZ4rr87C2eCSznKArc= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20191210044056epcas1p469d65f6853c497793675e3e118eb9824~e6MX6O_ng2442824428epcas1p4P; Tue, 10 Dec 2019 04:40:56 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.40.158]) by epsnrtp3.localdomain (Postfix) with ESMTP id 47X6nf3f5vzMqYkY; Tue, 10 Dec 2019 04:40:54 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 1D.F0.48019.FC12FED5; Tue, 10 Dec 2019 13:40:47 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20191210044046epcas1p3e9343cc918be7dd39f49592cf1047e1c~e6MOp_BNz1727817278epcas1p3I; Tue, 10 Dec 2019 04:40:46 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20191210044046epsmtrp282f32f7a7949189d4cbd74e06265cdb2~e6MOpEIsU0529105291epsmtrp2_; Tue, 10 Dec 2019 04:40:46 +0000 (GMT) X-AuditID: b6c32a38-23fff7000001bb93-fe-5def21cfdb65 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id BB.1A.06569.EC12FED5; Tue, 10 Dec 2019 13:40:46 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191210044046epsmtip14192116ffeb1cff8bdaae28f419c7ab8~e6MOiKLXs1173711737epsmtip1B; Tue, 10 Dec 2019 04:40:46 +0000 (GMT) Subject: Re: [PATCH 01/10] extcon: arizona: Correct clean up if arizona_identify_headphone fails To: Charles Keepax Cc: myungjoo.ham@samsung.com, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Tue, 10 Dec 2019 13:47:12 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <20191209110916.29524-1-ckeepax@opensource.cirrus.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphk+LIzCtJLcpLzFFi42LZdlhTT/e84vtYg1Wt0hZXWjcxWlzeNYfN 4nbjCjaLz+/3szqweEyf85/Ro2/LKkaPz5vkApijsm0yUhNTUosUUvOS81My89JtlbyD453j Tc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgLYpKZQl5pQChQISi4uV9O1sivJLS1IVMvKLS2yV UgtScgosC/SKE3OLS/PS9ZLzc60MDQyMTIEKE7IzOs6+ZC34z17xoX0mWwPjNbYuRk4OCQET iXm3jzJ3MXJxCAnsYJToaJnKBuF8YpR4f+g2lPONUWLbocmMMC1L+v5DtexllPhy6TYLhPOe UeLM6vvMIFXCAkkSb59cALNFBIwkPh6/xQRiMwtESyz4vAxsOZuAlsT+FzfAbH4BRYmrPx6D beAVsJP4390AVM/BwSKgKrFyuwdIWFQgTOLkthaoEkGJkzOfsIDYnALOEmue72KBGC8ucevJ fKhV8hLb384BO1RC4AibxNSJ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G9KYmVValF+fFFpTmrxIUZpDhYlcV75/GORQgLpiSWp2ampBalFMFkmDk6p BsbkoHf6l8relyXL8r3XDNpQ1dDSrasl0rWAU+RBjJV3Rfjfp6w/qubrb5+zvZT9QfcS3sAr ibahzjxnouNNNCLf35HJPrPGQqpRN0JqzcGmy032sksiJplcsf/PueHM7L+Ka+4udr9/iStT Rin9mYFQZb23hrmGUMnKQ0ffz/v1Sv+z+MLN65VYijMSDbWYi4oTAXUSQY6JAgAA X-CMS-MailID: 20191210044046epcas1p3e9343cc918be7dd39f49592cf1047e1c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20191209110925epcas4p3731ec3380f882027824b188439aa3bc9 References: <20191209110916.29524-1-ckeepax@opensource.cirrus.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/9/19 8:09 PM, Charles Keepax wrote: > In the error path of arizona_identify_headphone, neither the clamp nor > the PM runtime are cleaned up. Add calls to clean up both of these. > > Signed-off-by: Charles Keepax > --- > drivers/extcon/extcon-arizona.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c > index e970134c95fab..79e9a24101823 100644 > --- a/drivers/extcon/extcon-arizona.c > +++ b/drivers/extcon/extcon-arizona.c > @@ -724,6 +724,9 @@ static void arizona_identify_headphone(struct arizona_extcon_info *info) > return; > > err: > + arizona_extcon_hp_clamp(info, false); > + pm_runtime_put_autosuspend(info->dev); > + > regmap_update_bits(arizona->regmap, ARIZONA_ACCESSORY_DETECT_MODE_1, > ARIZONA_ACCDET_MODE_MASK, ARIZONA_ACCDET_MODE_MIC); > > Applied these patches in this series. Thanks. -- Best Regards, Chanwoo Choi Samsung Electronics