Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9734427pxu; Tue, 29 Dec 2020 03:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd8QD8a0MOuEOauD1xYzP4lKEsCjo+P/xaunDB1QzfDGQAfro7gfIAEdpMGhbWbylobTFv X-Received: by 2002:a17:906:451:: with SMTP id e17mr43931572eja.228.1609242250233; Tue, 29 Dec 2020 03:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609242250; cv=none; d=google.com; s=arc-20160816; b=TX8oSzMBMtmMGz8U9cwB4yqn9lZXk/kRiKA64XahV2IQntq3A5KdEnoMNOHlV5RG7R sZ8IZwqNjIq6nwJ5NBEJOtLc9x1WKqpV3znF4VYGudJLwQa/JWzlGpGRXoudWmQp5RhW qn1L8dJmQHlMH6BaGHJQ6+hM6Ep16w6GQu7gaZ5Cao2X/zgpwptSXColBfnGFD+0hdYP ZWlIT0NiXr/bE4bEfNQR0N2gLz6rZyxA+d069kLLdCErJQ/5C+hfioEa3iiJXAH8Xr5a sUbZaBHltdfZvFhOlx85rZXp6IvpZmD5+/R7DRyyA5lg4847oU7sq9TeaN0tBBJmd6v0 D6Hg== 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=2xtBZ1d+TCpg6I9iqVlmPO8l3el6VdhLDsfmtyqgneU=; b=O+F7gs/6xwSCfFfNecxPJ+6PvMwbWXmGInSVWQbGZPjL5SvSHkuS9t/j90qhceQ7xO Ld0V+bEdIZJKcRYjTfJp3jJ/k+wBLrguloyry9z1qXDWVV+HItUYnXh6yxXmbGfrjXk1 3iXHngstBvcPjzesoOP7zsFIzysgOVXJsk+zZq+j1mWDT0ZsedBKeKnE5w1mjWMFc9sW F9uW1Ao50sd3Dq4dXY5Focf/lveb/+K4EEqaH1RhtCKMZvufEn8coEm3ZfYXAcCLm1ti Md0dzzd+OUt09fx/Xko3J2BSsVO4lll2bp9kLmkIgqESRZM48EaAJ6vc6X/uQJyMJbim Zo6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="b9X6z/yj"; 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 md13si20539751ejb.324.2020.12.29.03.43.44; Tue, 29 Dec 2020 03:44:10 -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="b9X6z/yj"; 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 S1726126AbgL2Llu (ORCPT + 99 others); Tue, 29 Dec 2020 06:41:50 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:48704 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725964AbgL2Llu (ORCPT ); Tue, 29 Dec 2020 06:41:50 -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 0BTBd0IG001283; Tue, 29 Dec 2020 05:40:56 -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=2xtBZ1d+TCpg6I9iqVlmPO8l3el6VdhLDsfmtyqgneU=; b=b9X6z/yj7WPnBRLgRHVQsnh4lVaiM7ZKLEBV7yIQzCqCEHWCGtP4KxuNjbJUy9Jar3zg ClohS/WdyT1BFXas/9SiW8TEIl6t3tYNNpDVpKxR+EU1dZopB2ik8sdVXClIiZAcQuWL sOk/y6G6SmzI/CnsSjs4XQEL0WLzlyi1ct8LEuom+yNv7S/4I1QecJwO0iQVOhBpggTk 55JALUX3wIaOX0ysIKfQ/tvjFfAghb1Hb6dXsmHnlg1I8gUqVgaLfKWC4ziNfwNhX3wi yB9z3oVX9ZkQKw89adZ2hKrwck9Vm9PY5pRYwLaK8gMcDivdT3lfLBzFAHeR9N9MX49f dA== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 35p3f7a8as-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 29 Dec 2020 05:40:56 -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; Tue, 29 Dec 2020 11:40:54 +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; Tue, 29 Dec 2020 11:40:54 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 9CA3F11CB; Tue, 29 Dec 2020 11:40:54 +0000 (UTC) Date: Tue, 29 Dec 2020 11:40:54 +0000 From: Charles Keepax To: Hans de Goede CC: Lee Jones , MyungJoo Ham , Chanwoo Choi , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown , , , Subject: Re: [PATCH 02/14] mfd: arizona: Add MODULE_SOFTDEP("pre: arizona_ldo1") Message-ID: <20201229114054.GH9673@ediswmail.ad.cirrus.com> References: <20201227211232.117801-1-hdegoede@redhat.com> <20201227211232.117801-3-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20201227211232.117801-3-hdegoede@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 mlxscore=0 spamscore=0 priorityscore=1501 adultscore=0 phishscore=0 clxscore=1011 impostorscore=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012290073 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 27, 2020 at 10:12:20PM +0100, Hans de Goede wrote: > The (shared) probing code of the arizona-i2c and arizona-spi modules > takes the following steps during init: > > 1. Call mfd_add_devices() for a set of early child-devices, this > includes the arizona_ldo1 device which provides one of the > core-regulators. > > 2. Bulk enable the core-regulators. > > 3. Read the device id. > > 4. Call mfd_add_devices() for the other child-devices. > > This sequence depends on 1. leading to not only the child-device > being created, but also the driver for the child-device binding > to it and registering its regulator. > > This requires the arizona_ldo1 driver to be loaded before the > shared probing code runs. Add a doftdep for this to both modules to > ensure that this requirement is met. > > Note this mirrors the existing MODULE_SOFTDEP("pre: wm8994_regulator") > in the wm8994 code, which has a similar init sequence. > > Signed-off-by: Hans de Goede > --- Acked-by: Charles Keepax Thanks, Charles