From patchwork Wed Dec 18 11:17:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 181982 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp503976ile; Wed, 18 Dec 2019 03:18:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyKTqPD5PV7l8f/buD/y/MwGOdpgwLaet+XywJJBzbQo82o7l7lSG6FlskjZ+VaMaxx0K06 X-Received: by 2002:a9d:282:: with SMTP id 2mr1917658otl.237.1576667881123; Wed, 18 Dec 2019 03:18:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576667881; cv=none; d=google.com; s=arc-20160816; b=vkiZ/hIUsx5zjnjILgOvUfxUIb2LjyY7LnTfWYVlo5ere4BjtQwwGUyLURLocRHoxY d08u/BgXgN1ONF4zAXCYyuuX5bvs6MkPQ97EiaCd0auwgh+h1LvI+Xv1jrjY+1JonUGH sfMN7vB4LtHUZUL6LLXuc6DggR38onMcKVimqHGWXRfkZYxLoUTuVNUxpievDal2NcAT IZ5p9JW63/PdknkjOz3YSxp4jiKmB8wN2G0DJ3Esb2V4Z6gaPFt0GswIFftsAfs6Y3+M Ue2i2vq5z/ljdIR3n7qRQlTcC1CQ1fth6M9Vh2z2k8a4UCJXUQ5umNA0y7lAxlG2u43/ R8bw== 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=wqNQuRcOkIElW1plU4458E9NklGtkN0i7+GZFsWQEfE=; b=q9BKYsPcaP70FdVB6CZzkSUlQEA6IPw4ypM5up1CglzaiXYALCx5L6J5fSrw5uQ8vX Vzq0QlWPZAKXiryfA7zPHJZeFs0CH0iveyh6TqvM7gr0dq44pFcWTHrtgo46u57qsTyF /QX/olp/SdUvv0oWVwDfIZUI0sLNoi2vTpMeq9zg7kv+YgDDcDp28pHrJLbq3nOdUPFz 6Vw27KnQ5ReR5eTkdvqoe2bsZYAZ7w5DeRDwR8ngreiFgUGMD2IgDRK5h0FPt4KrgKnU 9ApXMo8tvY6G/S5JIO8BxWx1OfGOU7UVQUYZ3SnBG1l3ZMFAlbua6+tT72d/WBofpzXs zFiw== 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 t28si1246310otr.16.2019.12.18.03.18.00; Wed, 18 Dec 2019 03:18:01 -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 S1726936AbfLRLSA (ORCPT + 27 others); Wed, 18 Dec 2019 06:18:00 -0500 Received: from foss.arm.com ([217.140.110.172]:42390 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbfLRLR4 (ORCPT ); Wed, 18 Dec 2019 06:17:56 -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 0AA5731B; Wed, 18 Dec 2019 03:17:56 -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 533903F6CF; Wed, 18 Dec 2019 03:17:55 -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 09/11] cpufreq: scmi: Match scmi device by both name and protocol id Date: Wed, 18 Dec 2019 11:17:40 +0000 Message-Id: <20191218111742.29731-10-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 "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. Acked-by: Viresh Kumar 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);