Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6057221ybi; Wed, 29 May 2019 02:06:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAEdnoTW1jXIoy6p+RqTCtXzPgluK2qqCd4DOYTGFlARUAckvR+dOjilbhjcDsdLEJbSB2 X-Received: by 2002:a17:90a:207:: with SMTP id c7mr10684817pjc.94.1559120800827; Wed, 29 May 2019 02:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559120800; cv=none; d=google.com; s=arc-20160816; b=pgHpKOi8G430ugmaiZNb6IPGXU10qGeQhHfZg75SZKSrhKyzzc57GpnBEyPCR/GBY7 EQJr869sJ/F/VADf9n5Xzxl3rHGoPndP31pbLIPLQKH1FLot9H+z4P142JQchs52whCH YMIIE2O4xEZ7yDfdtfQ7+ke7i+58ciDR+JAielb9oBcy+vGHz/Tp70bePJ4z/gHPmsyR 3m19qgerhz5fUMZb0/uc3ywxpKDQKkCH4t7rqaEJCSNj1YR9/Tutc5z7MH7X6K9QcFUB rz4z3ytprop0AwxFM78Fd54grsOHw0qp7nSgxK+TPiXL98ooxDd1lFEkS7WyhlPoFrdc 5Yjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=4WUOzUH2WqbR/4hWLxqaU/QUWDAqyAiJIMVVncqlUNU=; b=aeIwlUaaLb/Rqtm4EYOUk9TzLT+DVXByly1yEgVdBUKPIxUzrKJ7PHlx4g2axlcd/P 0E9r7tkYMUenqVwuPUyY7YnNbIDwY2rPVtsae6jmZh9AeiusYtm38rQMdp4UVuuAQpQs 09kP1NERCoRWp52Y+6SG1IUJMzBkSeRQCQIdq1hGmy4j0kmhHp3UJljyqZkytuaip9NK iSy+/51k3XhmCVOZHmzRt9GE9tS/8SHbA9z/IbYbBn97EWaS7QydRS80Nit/iaDvJqq8 Ix8fg/1U/dWOvooc7KUM55PtWsuYJnIGaS3UcvZkKu7rdVhOCTUgkPROk32SoQPJQ6JJ wyJQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=opensource.cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si26570508plz.168.2019.05.29.02.06.24; Wed, 29 May 2019 02:06:40 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=opensource.cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726192AbfE2JFJ (ORCPT + 99 others); Wed, 29 May 2019 05:05:09 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:48252 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725861AbfE2JFJ (ORCPT ); Wed, 29 May 2019 05:05:09 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4T956rG025894; Wed, 29 May 2019 04:05:06 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail3.cirrus.com ([87.246.76.56]) by mx0a-001ae601.pphosted.com with ESMTP id 2sq340mk59-1; Wed, 29 May 2019 04:05:05 -0500 Received: from EDIEX01.ad.cirrus.com (ediex01.ad.cirrus.com [198.61.84.80]) by mail3.cirrus.com (Postfix) with ESMTP id 01503613E7A5; Wed, 29 May 2019 04:05:47 -0500 (CDT) Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Wed, 29 May 2019 10:05:04 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1591.10 via Frontend Transport; Wed, 29 May 2019 10:05:04 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id A17AE45; Wed, 29 May 2019 10:05:04 +0100 (BST) Date: Wed, 29 May 2019 10:05:04 +0100 From: Charles Keepax To: Chanwoo Choi CC: , , Subject: Re: [PATCH] extcon: arizona: Correct error handling on regmap_update_bits_check Message-ID: <20190529090504.GG28362@ediswmail.ad.cirrus.com> References: <20190528165020.10320-1-ckeepax@opensource.cirrus.com> <92a28c6f-9c58-d762-f635-f5a93e602843@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <92a28c6f-9c58-d762-f635-f5a93e602843@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905290061 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 29, 2019 at 02:37:06PM +0900, Chanwoo Choi wrote: > Hi, > > On 19. 5. 29. 오전 1:50, Charles Keepax wrote: > > Ensure the case when regmap_update_bits_check fails and the change > > variable is not updated is handled correctly. > > > > Signed-off-by: Charles Keepax > > --- > > regmap_update_bits_check(arizona->regmap, ARIZONA_MIC_DETECT_1, > > ARIZONA_MICD_ENA, 0, > > You better to check the return value as the part of this patch. > Ok I will add it, I hadn't as it was kinda pointless the driver is being unbound and if this doesn't work the regulator stuff will flag the error anyway. But I guess one more error message to make it even more clear where the issue is can't hurt. Thanks, Charles