From patchwork Tue Dec 10 14:53:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 181130 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp5606255och; Tue, 10 Dec 2019 06:54:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwlbNsXAYVfPZLkAlw1kUCYDe0m7ZzEzdwDpJUTqHLe/3+53DA+YMxc+1+/QLEIU0kwFO4U X-Received: by 2002:a9d:282:: with SMTP id 2mr19283062otl.237.1575989677420; Tue, 10 Dec 2019 06:54:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575989677; cv=none; d=google.com; s=arc-20160816; b=qZVhUUVeWq/YYNVuQQaRHrarDYWY3T7VUosXtJ/tV4Q4fP8Sk1aFNVkC8KuyWDqzfz eRlrqlzkoMVn0d+nBl2J5Fw3nOPQKlZzchvK/V/tfqUmqThTusT39QZJ0NimS6wMR/VT ly6CqcB7JHYlK37wyG7X5KoJjZHEiYaQIj0aDAbyN1akUrq/1h0eZ7bSOm4vKUtv54r8 7mAkAtGCoZbyQq8NMPfdSEmwKffzrSFcr0K6zy15iRZl3cLxnKKE+AAw0U9Cw9d6m4P5 3v2l3XJCa2OjZWH4wGfA6L6x3dS1X6Ug5VBAEwSIFZqtPp+ZkvM9R3SYHZwTEkD8p8RK +AUQ== 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=e1JqMlasMb/AZnbyVmiHZ1esufG4uVlZNFdJYLqlgoA=; b=O0WpL6vstUWCNKyqt0lsLyRrz4MReAxyTz4wce2pv0LWOuPnvkljLxRLI/hqfhTCWs M6GW3spv3UkzJ8ZRhVePO2d2dl7y6rKwpijPebOLM4/psVkf+MmeSntru43Nq8ewfBfo oM//vDBvGsze0w+u1amHHx70etHxdztjQYKmbbWsNeHoL2SUeZzNmFPrF3HEdkvSbcaY 9DR8UBhOat5nsRVogv7cFpZ3O3red4QeYHDZEJ7rr3eOTqj7zwAG8bSHbeW5UVKdADuk kMjMHIw7dAPOceC3xuec/BaWORmOxwS1vhmlQcwywqOEf/6Y9doD+UPpcf7Kfu6Ll0s+ Kcvg== 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.37; Tue, 10 Dec 2019 06:54:37 -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 S1727823AbfLJOyg (ORCPT + 27 others); Tue, 10 Dec 2019 09:54:36 -0500 Received: from foss.arm.com ([217.140.110.172]:47206 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727758AbfLJOyT (ORCPT ); Tue, 10 Dec 2019 09:54:19 -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 5F7B6113E; Tue, 10 Dec 2019 06:54:19 -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 8C6793F67D; Tue, 10 Dec 2019 06:54:18 -0800 (PST) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Sudeep Holla , Cristian Marussi , Philipp Zabel Subject: [PATCH 15/15] reset: reset-scmi: Match scmi device by both name and protocol id Date: Tue, 10 Dec 2019 14:53:45 +0000 Message-Id: <20191210145345.11616-16-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 "reset" to scmi_device_id table in the driver so that in matches only with device with the same name and protocol id SCMI_PROTOCOL_RESET. Cc: Philipp Zabel Signed-off-by: Sudeep Holla --- drivers/reset/reset-scmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Philipp Zabel diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c index b46df80ec6c3..8d3a858e3b19 100644 --- a/drivers/reset/reset-scmi.c +++ b/drivers/reset/reset-scmi.c @@ -108,7 +108,7 @@ static int scmi_reset_probe(struct scmi_device *sdev) } static const struct scmi_device_id scmi_id_table[] = { - { SCMI_PROTOCOL_RESET }, + { SCMI_PROTOCOL_RESET, "reset" }, { }, }; MODULE_DEVICE_TABLE(scmi, scmi_id_table);