From patchwork Tue Dec 10 14:53:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 181126 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp5605994och; Tue, 10 Dec 2019 06:54:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyJu+RkLvg1JjIdGsQ5Mfa1yA3bfTPJZCFCl/AAp5SuhaXboVTKZPS5kG3pKpnmvvvGoACf X-Received: by 2002:a05:6830:14d3:: with SMTP id t19mr26837474otq.278.1575989660157; Tue, 10 Dec 2019 06:54:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575989660; cv=none; d=google.com; s=arc-20160816; b=AUz8hnkkYT87wbRAvi7B2I+8MKoVZ7kwdYrneIG9nLkgAOndTn9y/h1D3vuUgY1UvB 8Yyo6qXoapKdkphFEjRkk9TnK0fPJb+lhI+A1jkXn79A9NGSTkw5zg0K5IG6eIhcVoG2 LX6e2PPNG3WlRLmICEWdMZ1HT6M+8gf8XbmrR+NaXASxnqp7Q4duvt8aif9uW5LKZ6wP rGviFQ2ZmCKUuF8nq+LjT1E+GCGKTxWpUXsIB43Hhv+BZMfZKxXo5nWUrQRqqVxVgimG L2FB82UBBfi0k072bkbcvXIAz/z6E9RsABh+PGHJPKq+MlJJhmIDTHrWXQTTZMks3nNj CUrg== 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=OU/MM1wh+X5y3erjgjMVts3jiUh/hnW/gHsjjikbPaw=; b=bMGhOytM4FJLSB8knuo/p8tLwNcVpIreE4thtW6ioX05zggu7Xht7zViKPcm6KbYoD eQ35ocNvCRtkoZRUb41TFAgoaglOlDQ1GZxXnL+Kap5/x4g3P8+Zo3gOL/I5EnYXwCZj g941hXjbrfEaQkXDKhByj81yU9L2dhIwjYp0V1WRbWVu9kpwJ4JVreZuQ7PfPXt3qFTt KiIRIuV+fve3IafUjZSnEr+4JriSWIPZOpytyZ6OVHJKsJjThHd2/27qWmqtxpwgWnVB WiJO3MXJo9mvC0gEkca269gc3xGab3EcZPRL7Te0G5YlMmRJgzbm2EnCvn9AOvFFjEGZ zUIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 a12si2053135oie.87.2019.12.10.06.54.19; Tue, 10 Dec 2019 06:54:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727750AbfLJOyR (ORCPT + 10 others); Tue, 10 Dec 2019 09:54:17 -0500 Received: from foss.arm.com ([217.140.110.172]:47186 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727747AbfLJOyR (ORCPT ); Tue, 10 Dec 2019 09:54:17 -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 1CF6C328; Tue, 10 Dec 2019 06:54:17 -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 15B733F67D; Tue, 10 Dec 2019 06:54:15 -0800 (PST) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Sudeep Holla , Cristian Marussi , "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH 13/15] cpufreq: scmi: Match scmi device by both name and protocol id Date: Tue, 10 Dec 2019 14:53:43 +0000 Message-Id: <20191210145345.11616-14-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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 "cpufreq" to scmi_device_id table in the driver so that in matches only with device with the same name and protocol id SCMI_PROTOCOL_PERF. This will help to add "devfreq" device/driver. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: linux-pm@vger.kernel.org Signed-off-by: Sudeep Holla --- drivers/cpufreq/scmi-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/cpufreq/scmi-cpufreq.c b/drivers/cpufreq/scmi-cpufreq.c index e6182c89df79..61623e2ff149 100644 --- a/drivers/cpufreq/scmi-cpufreq.c +++ b/drivers/cpufreq/scmi-cpufreq.c @@ -261,7 +261,7 @@ static void scmi_cpufreq_remove(struct scmi_device *sdev) } static const struct scmi_device_id scmi_id_table[] = { - { SCMI_PROTOCOL_PERF }, + { SCMI_PROTOCOL_PERF, "cpufreq" }, { }, }; MODULE_DEVICE_TABLE(scmi, scmi_id_table);