From patchwork Tue Dec 10 14:53:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 181129 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp5606128och; Tue, 10 Dec 2019 06:54:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwcW1A6YQBWA0F6HF1JLG6RYuteNSYSM5lck1n1kwbOH9Vvac4SfxNhbX1L8ukrqTTqmJqp X-Received: by 2002:aca:48d6:: with SMTP id v205mr4142436oia.10.1575989668433; Tue, 10 Dec 2019 06:54:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575989668; cv=none; d=google.com; s=arc-20160816; b=r0pmw+Cz2OdnE+ILkWGo9c8cPwjUL7IjrIIt0KvJLslZfQfZ9BcWg64nFbahwgsu2R CV4MxGIl9hqhMSp2KZeRyDQRFs4CahXp6kvrDv2Tr0XCKPA2P32aPwvPheGKwdzX/ab4 UGGI84xj/qruJ/PDtFXvv5HoiWs7ShIdMNi4FZHe0GA4fz5I1ijChZbkfAnFhJfSwBRu 0wKWRsjd5srr1Kkm9Rn/JXK9Sn2TFfKygCER4eyFXSsRmEE08aJjoUVCRc7NMBKtWW42 us5e1L+Ka5Z8gxAluv7stuBU/qiDQE01N/pv6/yK6N17ykkaLxb3RxgWLvdeukuvOsuA Ah6g== 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=Oh7xo40YxOdcE4UZGfBWNdm/oEeesryA4u0I5tR0Gqw=; b=tntH6oEwUKQD54DS//baTXGY8xmR5frMFKXOe6fQU+YEwZhP1EIiLCU02JkU2Wp0/i VgYbXzlsUFnR7bVwZT6gNAUxocWJ8BIzMM8I92AIVwyc5TjDj79TRbW9efLuLt1KeRpv NIuLEZbGi4mk9s0naj6Gr/ubZ9x/KSkh1cNsm0LUu9fyODGBJNKb2c3Yf1lQeHN0Tk8r UXWSVRyxZaSwtYwLHpGwhB/eZHIZSsWTb6BnenF3q8PWLxSLmZPa0qsWXgvs3yjjjv2f IMli4KMdf+46akXhBhmNWxGpdELgvL0vKWFWN9U9mAdlW5c3gcv8RodmCWTpjDr01oks nDzA== 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 j6si721501oij.197.2019.12.10.06.54.27; Tue, 10 Dec 2019 06:54:28 -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 S1727793AbfLJOy0 (ORCPT + 27 others); Tue, 10 Dec 2019 09:54:26 -0500 Received: from foss.arm.com ([217.140.110.172]:47166 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727705AbfLJOyP (ORCPT ); Tue, 10 Dec 2019 09:54:15 -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 8F36C1396; Tue, 10 Dec 2019 06:54:14 -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 D72D53F67D; Tue, 10 Dec 2019 06:54:13 -0800 (PST) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Sudeep Holla , Cristian Marussi Subject: [PATCH 11/15] firmware: arm_scmi: Match scmi device by both name and protocol id Date: Tue, 10 Dec 2019 14:53:41 +0000 Message-Id: <20191210145345.11616-12-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191210145345.11616-1-sudeep.holla@arm.com> References: <20191210145345.11616-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. Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/scmi_pm_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Cristian Marussi 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);