Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2606754pxb; Sat, 30 Jan 2021 08:05:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJykx9G4eZuy1DYPn9c4rQfpqqCj9UbNnCEeMzaxXWW77HlpOEsZ/ybaIQRpWe1tYoNfXgaX X-Received: by 2002:a05:6402:d0a:: with SMTP id eb10mr10655794edb.249.1612022750774; Sat, 30 Jan 2021 08:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612022750; cv=none; d=google.com; s=arc-20160816; b=SPFF3HgLi7yo3bPpS8scArGNdmIWV2YCubIGVHxqip6qtJjWKhXQn8OpftB2yCRMRp xpBNNtf3xA40GP4M8VJ+w6RNcoEPBFBq1kGlvbCdHJljBl7BXgkVATRk6HGIup+fB7GX A3LeKnBEEksnC0BX2tfxLv8yWsg9fGNflVU9Oo3LdYWr+5xA5f4fPxzFJYQhdZfwJ0P+ 8gvOvpc3+xtXYjLn3QMBcG70FKNRgypROCOt7JlcQI+TBQYTnB3gnwtLuGCx2z3o5poH Xd4pKQ3ma6MyWpkhCLxQD1fs3/Mg+uleL+e99jboxZBs/jio7syYOwyaMdPXKfKu9Qk9 c2Zg== 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=p/pzeyYsnFxNAOpE2c1K2xRSiQFiBIMVCrEnGUzyVOM=; b=U1+uBLvsprSsL9HPh4j1mMlBqvfy02a1+sHwz/UyHTVETYD2zBdbgTLCx1JFP+SCRw FeTt0RHc24hi5/XIDwM8d15DSfq6b3JAbISdfw4mJGP8igbZdSbCpRbCeAghsQcdjhS9 QPrihqgixgi3IVnzz++VZ30h+uC0FYCUKGJXavXCqrc7xZe5wd7dsaWykSW7wcpVolAs WlRbqpi119UD0GhXiGolN83H5EWbab8+Qo2rtKh9/HILwWYBFStBoo/t0eZd8SaAKp71 91MemmHq/L+OIvBez82/J0XT6XDAwIYwBDBpDWGhBbAo3KMtIVb9cbzXi8aZvtVXvWL6 vTDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=NaRdw6A9; 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 i14si7592644edv.322.2021.01.30.08.05.24; Sat, 30 Jan 2021 08:05:50 -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=NaRdw6A9; 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 S232430AbhA3QEW (ORCPT + 99 others); Sat, 30 Jan 2021 11:04:22 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:42462 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232136AbhA3P4E (ORCPT ); Sat, 30 Jan 2021 10:56:04 -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 10UFDV3R032176; Sat, 30 Jan 2021 09:16:38 -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=p/pzeyYsnFxNAOpE2c1K2xRSiQFiBIMVCrEnGUzyVOM=; b=NaRdw6A9aKP6MJ3czwou6BvRpENHDuwABc6v/r9oacZKpYM7r//cZPxWJ4DWVNsiUzf6 8oA1twK1JPMys/aMzPtNyOJgJC2AsTVNsvooS0U2cuzzOnycs+2VTIZ1yHf5ueuwJuF8 xCRdBGYkT+J5G8u9BeYH603eFCcxyfVpRYuClnnsWKzJMoL9A49zf+P0quV99+3OXNdk bI9omySDwvkQ99OI66jn2dDseJkHggYhZd0Eed1gl1oKDjJgKfGZL0AJmZ0y7xPyNsii Ryw86pIPUpQS1WFixBRC/jzI2hZLUDCgDRSat7Osq+Hs/rR6qM9VSOXo4A5qmUxbhfGn Ng== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 36d5r684w7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 30 Jan 2021 09:16:38 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) 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 15:16:36 +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 15:16:36 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 3709F11CA; Sat, 30 Jan 2021 15:16:36 +0000 (UTC) Date: Sat, 30 Jan 2021 15:16:36 +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 08/13] ASoC: arizona-jack: Use arizona->dev for runtime-pm Message-ID: <20210130151636.GS106851@ediswmail.ad.cirrus.com> References: <20210123121313.79530-1-hdegoede@redhat.com> <20210123121313.79530-9-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210123121313.79530-9-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=648 malwarescore=0 adultscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101300084 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 23, 2021 at 01:13:08PM +0100, Hans de Goede wrote: > Drivers for MFD child-devices such as the arizona codec drivers > and the arizona-extcon driver can choose to either make > runtime_pm_get/_put calls on their own child-device, which will > then be propagated to their parent; or they can make them directly > on their MFD parent-device. > > The arizona-extcon code was using runtime_pm_get/_put calls on > its own child-device where as the codec drivers are using > runtime_pm_get/_put calls on their parent. > > The arizona-extcon MFD cell/child-device has been removed and this > commit is part of refactoring the arizona-extcon code into a library > to be used directly from the codec drivers. > > Specifically this commit moves the code over to make > runtime_pm_get/_put calls on the parent device (on arizona->dev) > bringing the code inline with how the codec drivers do this. > > Note this also removes the pm_runtime_enable/_disable calls > as pm_runtime support has already been enabled on the parent-device > by the arizona MFD driver. > > This is part of a patch series converting the arizona extcon driver into > a helper library for letting the arizona codec-drivers directly report > jack state through the standard sound/soc/soc-jack.c functions. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Hans de Goede > --- Acked-by: Charles Keepax Tested-by: Charles Keepax Thanks, Charles