Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8619557pxu; Sun, 27 Dec 2020 13:15:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxivmV00X37S/9yKoIZ62KmFuyWsLiUaB6rhAn7QRI+DYh/ZbXrWt+sek/S/bl7HdL5BtwU X-Received: by 2002:a50:dacd:: with SMTP id s13mr40263844edj.173.1609103740705; Sun, 27 Dec 2020 13:15:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609103740; cv=none; d=google.com; s=arc-20160816; b=m0Xw7F4xjzrw2zsFQObLz+QbEUaJC817WsBzRtVaqjeUZ96MyVkxhhyKZ+/H8gzEkj eVFJUVwXHakukNYyNKTv28RINMT1hszgQ19tWs/vACVkZN4BepO/hQSLqEzAWhaXGQk+ jo7ttbRFXamJKTCtk73n9r8zKo1yT2BnJ1Ciu8azNqDFG38bEszVZT9XRIndeHEAJ0pI qS7leO3PuszDjshUsHG3b4cmaeLQpCLWBanTpGIfurziYdJ5NrPQpXcvqvssGWndNyRl l4K8b7gBrFu8vQ77W6yJ79EiI/ft5JXl9uRrA/UtDuROBHtr22tn+Sfq0nOdqyvdeYgj D3PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Vm7Y8WgzRnmtdtSY9WnjMOrzj5tbdz7TQz37CAGCkhc=; b=q7GliLbuHx0E4+lpmeDPbs+zZrGFd33aDCIu6aGGqt3N9VWYui9iZRAxZMtkPj+5DN UcS/C0rzpJuz/uqtnnMDLIzOW2rIcCNaU/Tbh+Lwxe0/u4J01syGsN6Ek3cVbBgar4jW QbxMCWwBQWrhD0Vsqzv/AEHdMVdKzOigny8x2OE2FFN0xJjCyi3yLEnoY/bMegXWkh75 wBPvCGllkLCeuOIuf4VAJqx0vor+TJf1uP+vI5j3AaKWX5xmDTN8/os8IvPS4JE51WIe dXIXzAK2u+AxpWFILb5XeXIyYHeIQlhCenIO4jVr0O4h/fxgC1oYsCRcPPVCf0cZ33IQ tnuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YQo1yVkB; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e14si19048212edy.505.2020.12.27.13.15.18; Sun, 27 Dec 2020 13:15:40 -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=@redhat.com header.s=mimecast20190719 header.b=YQo1yVkB; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbgL0VOM (ORCPT + 99 others); Sun, 27 Dec 2020 16:14:12 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39611 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbgL0VOL (ORCPT ); Sun, 27 Dec 2020 16:14:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609103565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vm7Y8WgzRnmtdtSY9WnjMOrzj5tbdz7TQz37CAGCkhc=; b=YQo1yVkB8y4JR4Xk2kSXu+GF2UI+SZyn6Dt4gBDVawC2moloSz4n3N8sFhANjXbO5+m8jw eIAdW4ggajWz0VbfbD2HCTWIyr1sOEnsscPAJprVh3RRdMKYMVO41TsMQ50qcxsxFtX80A /p/1cUTYMVDYNqIQLxcSMd37xVmdM0s= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-385-gETInfbCN6GPEb1do1u5WQ-1; Sun, 27 Dec 2020 16:12:43 -0500 X-MC-Unique: gETInfbCN6GPEb1do1u5WQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B190107ACE4; Sun, 27 Dec 2020 21:12:41 +0000 (UTC) Received: from x1.localdomain.com (ovpn-112-25.ams2.redhat.com [10.36.112.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3E7A41ACB9; Sun, 27 Dec 2020 21:12:39 +0000 (UTC) From: Hans de Goede To: Lee Jones , MyungJoo Ham , Chanwoo Choi , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown Cc: Hans de Goede , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 02/14] mfd: arizona: Add MODULE_SOFTDEP("pre: arizona_ldo1") Date: Sun, 27 Dec 2020 22:12:20 +0100 Message-Id: <20201227211232.117801-3-hdegoede@redhat.com> In-Reply-To: <20201227211232.117801-1-hdegoede@redhat.com> References: <20201227211232.117801-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/mfd/arizona-i2c.c | 1 + drivers/mfd/arizona-spi.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/mfd/arizona-i2c.c b/drivers/mfd/arizona-i2c.c index 4b58e3ad6eb6..2a4a3a164d0a 100644 --- a/drivers/mfd/arizona-i2c.c +++ b/drivers/mfd/arizona-i2c.c @@ -115,6 +115,7 @@ static struct i2c_driver arizona_i2c_driver = { module_i2c_driver(arizona_i2c_driver); +MODULE_SOFTDEP("pre: arizona_ldo1"); MODULE_DESCRIPTION("Arizona I2C bus interface"); MODULE_AUTHOR("Mark Brown "); MODULE_LICENSE("GPL"); diff --git a/drivers/mfd/arizona-spi.c b/drivers/mfd/arizona-spi.c index 2633e147b76c..704f214d2614 100644 --- a/drivers/mfd/arizona-spi.c +++ b/drivers/mfd/arizona-spi.c @@ -110,6 +110,7 @@ static struct spi_driver arizona_spi_driver = { module_spi_driver(arizona_spi_driver); +MODULE_SOFTDEP("pre: arizona_ldo1"); MODULE_DESCRIPTION("Arizona SPI bus interface"); MODULE_AUTHOR("Mark Brown "); MODULE_LICENSE("GPL"); -- 2.28.0