Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2582975pxb; Sat, 30 Jan 2021 07:17:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKUoSRQyBIiTPavD5iV5yGGXsw3oyaFInrDbvQu3Qbdwi/htEgU1bPYFbhC/eQtOsa+b07 X-Received: by 2002:a05:6402:556:: with SMTP id i22mr10392907edx.56.1612019845958; Sat, 30 Jan 2021 07:17:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612019845; cv=none; d=google.com; s=arc-20160816; b=puhNvWFPKPH5yv296KvnviWt/Q7yWYfkHbFkJ/eHalJGgkugVeg7fD54QhoDc2Gqfr uqQGz3ebyowUDypk/Vl/bPr5kCXVxooo7N+bWz6xL4MK9xOUIcxUooycU4hBGHqMg+gP VXdLzhUTlG3iRBw7ItGBWHD7SKdOmlYlTpBB7HP3q+gSiiSKXKwdpJK85rD1mTtJQtV+ uqmZ910eHYO77YQqV8Kvj/SC4LeEILPJQmvBcDjD+XEOYiQMnwLuIeZ78ua/Q3A+RKIg qQDysGvanijcjeFqhM42lf/ZLUkhyT0mxrxUUi8TbO0Nl+onuKO7SkLH6X8P96ppoNUZ ADNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9rX2Hlk0aDw7HdEaAUV3tmKSQnQh+zJzTjfHkeLka8U=; b=d1BqBCGqjpPQfpqGCOEvfEu/HKnvOuzh+q199vR5DFUEkMVY4eWN0R7PqiZkPnLWtx 9rAEQLeAa6gmyuQvQS0i6DgtJQNuhGWpQUxf6en5W2P1yFgty+wa2XWBhXx0F2XJPDBK oEn5os8hoeQg9KELCJvh3vFjKSN6hvM+rZLGLRJJBoJemi31b/Uyu+DYGhHKyV+/JCiF d/yLsPTxcc449foaTIGtG6xJwF2b36ktZvIjJSe0pUDn/gX0iD8rrsnzXz3i4p6AcoAz YeXMvrC2+XNsneiTwlzMuj2CJzpeaPHdE+tv7mDQNZEzsfkAeEEtNEie17zMvRQXUHAm 67tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=f0kUSXPV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si7159749edy.575.2021.01.30.07.17.00; Sat, 30 Jan 2021 07:17:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=f0kUSXPV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232142AbhA3PLq (ORCPT + 99 others); Sat, 30 Jan 2021 10:11:46 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:23676 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232120AbhA3O7J (ORCPT ); Sat, 30 Jan 2021 09:59:09 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10UEpEJ3003858; Sat, 30 Jan 2021 08:57:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=9rX2Hlk0aDw7HdEaAUV3tmKSQnQh+zJzTjfHkeLka8U=; b=f0kUSXPVVKadkgjwOdS0h94sp51lSl8UvdIKJrVSMJJvt+F4Z+3K58t3hUHa58MXSHt/ G0ErVr8vJ8FPDCbBMje1zv7FOihyOp6VWc1101VgZoxSrXvQ7gk7qbzNmNJFH61xp5HX 09lRyxZd4i/Z3uf8MrvXdHZPrj6U0cv/BjsGBvFD5h+uEKiXOvlHZo7XF3sBUjjvC5cb uYxXDIPBxt2yAgYDU+ep//+NOOmGZ/HnCEt9bup3b3NArFGBlFEbs21uID2MRgP+ztLN wksBIw5iz76jwJv33Mm2KVLYOryshRA0miHy4bJqnMOmXS9cT0wPs1opUEmBmqxpFtwH TA== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 36d5r684h5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 30 Jan 2021 08:57:35 -0600 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.1913.5; Sat, 30 Jan 2021 14:57:32 +0000 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.1913.5 via Frontend Transport; Sat, 30 Jan 2021 14:57:32 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id BC62045; Sat, 30 Jan 2021 14:57:32 +0000 (UTC) Date: Sat, 30 Jan 2021 14:57:32 +0000 From: Charles Keepax To: Hans de Goede CC: Lee Jones , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown , , , Andy Shevchenko , Subject: Re: [PATCH v4 05/13] extcon: arizona: Always use pm_runtime_get_sync() when we need the device to be awake Message-ID: <20210130145732.GP106851@ediswmail.ad.cirrus.com> References: <20210123121313.79530-1-hdegoede@redhat.com> <20210123121313.79530-6-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210123121313.79530-6-hdegoede@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 suspectscore=0 bulkscore=0 impostorscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 adultscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101300082 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 23, 2021 at 01:13:05PM +0100, Hans de Goede wrote: > Before this commit the extcon-arizona code was mixing pm_runtime_get() > and pm_runtime_get_sync() in different places. > > In all places where pm_runtime_get[_sync]() is called, the code > makes use of the device immediately after the call. > This means that we should always use pm_runtime_get_sync(). > > Reviewed-by: Andy Shevchenko > Signed-off-by: Hans de Goede > --- Tested-by: Charles Keepax Thanks, Charles