Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4759242yba; Mon, 20 May 2019 03:19:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqx67kFTgZZcpGwvgC1Orws08X2+ZtQ+Mp73L6giyK1zSZe1tVut3pulVCiMcgaRFfJAlO7Y X-Received: by 2002:a63:2c14:: with SMTP id s20mr57060421pgs.182.1558347599676; Mon, 20 May 2019 03:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558347599; cv=none; d=google.com; s=arc-20160816; b=Zi3RHcO6fkswwTXXhmeF6yUeXvgOAaYoje9CV/C65g50qOFCXK+nbqFcocaw0zFKOZ 2Oaj21svtQS5X6iaV7RFcQLCCzyvCAimEV/SdXed7EoCqd80zmpgPNqo0GnydD4SNTne 5+Vf9hDVQEEePC5/6S9xM8HvobGAcsCJoFZZl9gKsDvgwbMJ5qxstyVX6QMVvsn/Ac1t a3leBZCLIhHfO3s0dYsGSG7xZJdIsnnZgvAySVtzI3BXoIPtr1rE+mdAxcnIOyaS+pUX 0vkZAxCVnK2ohoARk2jfgiYOht3uYO41yEXxFJQj3muMrcJJV9TRATksHEpm85Mb117K zKig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=HTLyNvCapSX/N8b+rYioJOjINQ0sKE+ViyErjSsENjs=; b=K+v2bEs1TSFkLrR4OG9Ht2fXKAZszIvTMfsMuDkTLxuZL+lL+Grc/TgXhPT3KkF8e8 Vhnah+xwT+Iq2zVfs/LjIPaAyPkLwcF7d5F4UI1FPOw7RxfL+sVEp5bv9KQ3Edbrj9XH R2mg9PJ/URpyx5n0nQPWPJ/9Oo5vQVQaz9BchEN/YZEVE7+eJ9Yg3UdW5qvIwdz3QmOZ Bt1yVrRxOPjmKmzk8munEDQ6RWFnIUMY6X8LqV2mVkbn5meYWmiGwtqTHWPqrkfqiM/2 Gikd82Xjke8wNzyU+25uAuIesgb6XfZ921b5z1M8Y7O5s5TgawhhYJApYX0Ar9ziWijw RYJA== 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 k29si19839976pfp.45.2019.05.20.03.19.44; Mon, 20 May 2019 03:19:59 -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 S1731823AbfETJGp (ORCPT + 99 others); Mon, 20 May 2019 05:06:45 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:54824 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731816AbfETJGo (ORCPT ); Mon, 20 May 2019 05:06:44 -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 x4K93j0p021634; Mon, 20 May 2019 04:06:30 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail2.cirrus.com (mail2.cirrus.com [141.131.128.20]) by mx0a-001ae601.pphosted.com with ESMTP id 2sjff1t4wc-1; Mon, 20 May 2019 04:06:30 -0500 Received: from EDIEX01.ad.cirrus.com (unknown [198.61.84.80]) by mail2.cirrus.com (Postfix) with ESMTP id ACD60605A6A8; Mon, 20 May 2019 04:06:29 -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; Mon, 20 May 2019 10:06:28 +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; Mon, 20 May 2019 10:06:28 +0100 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id BC10444; Mon, 20 May 2019 10:06:28 +0100 (BST) From: Charles Keepax To: CC: , , , , Subject: [PATCH 4/4] mfd: madera: Add supply mapping for MICVDD Date: Mon, 20 May 2019 10:06:28 +0100 Message-ID: <20190520090628.29061-4-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190520090628.29061-1-ckeepax@opensource.cirrus.com> References: <20190520090628.29061-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=366 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905200066 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently we are relying on the exact match of the regulator name to find MICVDD, we should add an explicit supply mapping to allow this to be found more reliably. Signed-off-by: Charles Keepax --- drivers/mfd/madera-core.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c index 1b78c5c844a81..515283e595aa0 100644 --- a/drivers/mfd/madera-core.c +++ b/drivers/mfd/madera-core.c @@ -59,7 +59,11 @@ static const struct mfd_cell cs47l35_devs[] = { { .name = "madera-irq", }, { .name = "madera-micsupp", }, { .name = "madera-gpio", }, - { .name = "madera-extcon", }, + { + .name = "madera-extcon", + .parent_supplies = cs47l35_supplies, + .num_parent_supplies = 1, /* We only need MICVDD */ + }, { .name = "cs47l35-codec", .parent_supplies = cs47l35_supplies, @@ -83,7 +87,11 @@ static const struct mfd_cell cs47l85_devs[] = { { .name = "madera-irq", }, { .name = "madera-micsupp" }, { .name = "madera-gpio", }, - { .name = "madera-extcon", }, + { + .name = "madera-extcon", + .parent_supplies = cs47l85_supplies, + .num_parent_supplies = 1, /* We only need MICVDD */ + }, { .name = "cs47l85-codec", .parent_supplies = cs47l85_supplies, @@ -105,7 +113,11 @@ static const struct mfd_cell cs47l90_devs[] = { { .name = "madera-irq", }, { .name = "madera-micsupp", }, { .name = "madera-gpio", }, - { .name = "madera-extcon", }, + { + .name = "madera-extcon", + .parent_supplies = cs47l90_supplies, + .num_parent_supplies = 1, /* We only need MICVDD */ + }, { .name = "cs47l90-codec", .parent_supplies = cs47l90_supplies, -- 2.11.0