From patchwork Wed Dec 18 11:17:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 181984 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp504088ile; Wed, 18 Dec 2019 03:18:08 -0800 (PST) X-Google-Smtp-Source: APXvYqw/a+PwT8WWhYvFKqBogA+PG4Ug8+GJTN9OutiHeTrFx9nf2wTMwdpBzK+kCJtEN7/FWqnw X-Received: by 2002:a05:6830:1db3:: with SMTP id z19mr2156809oti.152.1576667887928; Wed, 18 Dec 2019 03:18:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576667887; cv=none; d=google.com; s=arc-20160816; b=aBC8lkbFxuz77JgS/T5ygYccmtmrkb3VUx0vEPdQ5m3uwTZKK7PT6lSklKjvWF02Sz yRRtX3briPFt5Yi8da83DtmU48M7g1Dmd2UH96YyAwrSb9FVJHboeahHYiBRtgK4HqBR 78TZ5eD4B3PbmHcY4EhzJSsfFLn7y2/osS+WO9+2teydSw1OsxsCh1AjJcy4eZqU1NAg PGxxuyLXk6y1S62+cjrOnV2os/AOpjnbcHGtviCn4OnIhmwRGOBYL4shtkIYL4ds8pH1 WCmzPf7B5Vx6iv8TPDPHC5XKGLZHG9bcqJy+1JXLDgT98tQXqNGOKX49WuiDWSr6+QT0 mE7A== 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=usjd1l6S7zWI8hrAm4qHti1z/KE82dSPr+9qJEVndf4=; b=a9oZdjxicGS+KBuPbHd91w706o+aWwO3s+byaQMnCTt80Y0qt1kel2k/UvPPQYp+sN ctYirDPtQOsWGX2UyY8rlZWXh1YacCc8zjACO5IBDSMEthelNPmgn/93Np/eQn5zDLCr la3Mn24Y+YH0cqP2dQhgjk1M8XiCewa76p/XQP6yKTALCYDh5QPwBZdyd06hJchji2bs jRl0vhW9uX7hn3m9xVVm2Wm47rQ3NtKqcA9PHvsZGa8xo60vjrpiMZZ0Lk7Urt6kAJSo gczBId4O1MOW7L3qJWSCefp8+8Umh/6ZCk80i2wCUi3wSrerdU3X39WsA5oj3cLhAR++ yMQw== 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.07; Wed, 18 Dec 2019 03:18:07 -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 S1726948AbfLRLSD (ORCPT + 27 others); Wed, 18 Dec 2019 06:18:03 -0500 Received: from foss.arm.com ([217.140.110.172]:42404 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726922AbfLRLR6 (ORCPT ); Wed, 18 Dec 2019 06:17:58 -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 0FE0511B3; Wed, 18 Dec 2019 03:17:58 -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 561303F6CF; Wed, 18 Dec 2019 03:17:57 -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 11/11] reset: reset-scmi: Match scmi device by both name and protocol id Date: Wed, 18 Dec 2019 11:17:42 +0000 Message-Id: <20191218111742.29731-12-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 "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. Acked-by: Philipp Zabel Signed-off-by: Sudeep Holla --- drivers/reset/reset-scmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 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);