From patchwork Wed Dec 18 11:17:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 181980 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp503885ile; Wed, 18 Dec 2019 03:17:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxK1gjSVNAbh9ybutjLXSUystCMg5ZyhsnL7HGoWRHexOhv8mzdbnrnjHHJJJ5j2zWBPNQf X-Received: by 2002:a9d:7593:: with SMTP id s19mr1898882otk.219.1576667876874; Wed, 18 Dec 2019 03:17:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576667876; cv=none; d=google.com; s=arc-20160816; b=0sEYZdxOKDJplcoHmPlne46ULlV0addJJXdjt1gxGFJteinn0jJnrILx4tKexNQqRa 4pwS3d7XL3ZNjZUuCWqV849cW0+DyoIA3Dp1+LzYEsrLjCB8JuGlbBS01yBenJWLO5Qy p6dB8lqiHQL0li2amwo80eskddV8C4TyehfGZTEl4Q7INeceiEf5gQWGto7Itz7gAhZM G3DeqdFLfqa4bGhw1tM4v1lHbm15uuYsm1En2jVxrIPbWkwGQl0kgiLl3UrFKq6Q2gGe l3b5R1rvFfH29CRRYy4HzRnIdACLmHoirhNj/53YFltEsocSPW6bQaRmWi3x4vlP2YPe CfVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=oP67VZjNRk5fNE5BnU/NJMizKp+k5BkrTEAf98YIfsc=; b=BWNCJcWf6eGi0kRquPv01615dPTx6UM0lhjNhXUsZtPglbnudU6QtQk27wirNYAR0y 2fkqZHzEAvDcw7MXsVIufdQL9vAcH5SBAxS16P2ZPyvVP3TMuJCa+KJ4nWU0eXrE1ofs HYX8Lhno9PcgvjGM3h3J2a2OVmijm1E39weGGOBZEv1aIab4Z1ewtQWnPNNIwiVIvWjw E1jnhrH2nue7CPyokunUwWEnu5/edACeHYRzav+PGvB6sJyqyeicMF6Yp4UUbNOkUXNG nLiO7j3ONskOmDBdEjzhFz1oy6ah/8EkO8xaV2Mzxq/UIa94e0t5ZZPHiAG16PaUQtKh sjeg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23si1219000otk.304.2019.12.18.03.17.56; Wed, 18 Dec 2019 03:17:56 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbfLRLRz (ORCPT + 27 others); Wed, 18 Dec 2019 06:17:55 -0500 Received: from foss.arm.com ([217.140.110.172]:42366 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbfLRLRw (ORCPT ); Wed, 18 Dec 2019 06:17:52 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2036D31B; Wed, 18 Dec 2019 03:17:52 -0800 (PST) Received: from usa.arm.com (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6826D3F6CF; Wed, 18 Dec 2019 03:17:51 -0800 (PST) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Sudeep Holla , Cristian Marussi Subject: [PATCH v2 05/11] firmware: arm_scmi: Match scmi device by both name and protocol id Date: Wed, 18 Dec 2019 11:17:36 +0000 Message-Id: <20191218111742.29731-6-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191218111742.29731-1-sudeep.holla@arm.com> References: <20191218111742.29731-1-sudeep.holla@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The scmi bus now has support to match the driver with devices not only based on their protocol id but also based on their device name if one is available. This was added to cater the need to support multiple devices and drivers for the same protocol. Let us add the name "genpd" to scmi_device_id table in the driver so that in matches only with device with the same name and protocol id SCMI_PROTOCOL_POWER. Reviewed-by: Cristian Marussi Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/scmi_pm_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/firmware/arm_scmi/scmi_pm_domain.c b/drivers/firmware/arm_scmi/scmi_pm_domain.c index 87f737e01473..bafbfe358f97 100644 --- a/drivers/firmware/arm_scmi/scmi_pm_domain.c +++ b/drivers/firmware/arm_scmi/scmi_pm_domain.c @@ -112,7 +112,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev) } static const struct scmi_device_id scmi_id_table[] = { - { SCMI_PROTOCOL_POWER }, + { SCMI_PROTOCOL_POWER, "genpd" }, { }, }; MODULE_DEVICE_TABLE(scmi, scmi_id_table);