Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp686128ybv; Thu, 13 Feb 2020 07:45:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzJsLeu8fa/tB2WZoHAnIHLUJOs0vPjvgqWsrsKoCSHUMUOTM4zHcLbuOxV0ZrtflAbnWMs X-Received: by 2002:a9d:2ae5:: with SMTP id e92mr7701418otb.72.1581608741729; Thu, 13 Feb 2020 07:45:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581608741; cv=none; d=google.com; s=arc-20160816; b=vbRLSR7Ivowq9C2VuBY/ga8A9k7chsbzRxWyTV6eYNYDLTe+3GzNRHWPfBIIeVGjSq jtQsDvJkka6f6Lw+ZP7LQMcvnZcT4MZCMtQhQzg0XwnibWvijZf0JwtWN/tW7bLhRYJU m1OeQAkCKU9NiL6poEDR7lauZbcoan9C9TzfW2AjZz/FAPJ54InYDL2TzAlIOUOsPCGj w557WYEA839H/+Xd++pRJmycAjoZEuY31yuHI3M8FeMWYx46L+FjLA5qg3mNw29e12CL +0auK2q9mxKRNkJDGQxwMJrffXsUNMqxGrVexqMak+x5jcuUcy5EpGoTNE1qD31i/8pM RWOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i6GKxHxu4fofxcKwmZon5fsnS8+TkygtyfRKYsGsTiM=; b=Z2dhbYSW+aaS+X26PhEaEIjfy0P5tUnHW6bP/jcJW2sN/opmYUrI+eM1lRyF9bG4L6 KacSM8t6WTIjOUm0IvkHACjgFZJKnLc0d7If3NujvEwUwf/7J62I6rPr2IlQAqdqBIun jL9hD9baY+SIN37SNRKvA4dfxwSSlQRjzz9tVfhI3vOeE9dMkD+JmNzky35bt/1B5/Fu nWopOoGFAAoaCn0rb5+M7uqnoELB4vE2vdjdseakpdWqTh1YRKheF5eB07MBbOoO+sYw Gjva8ePMgyabH5BRp0ZPVYPhy0lhReEPcGApFZocOk97/4JAq0sSbOWlwhsN9AaB+2Bi xvTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aeioqHO6; 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 r10si1213179otn.241.2020.02.13.07.45.29; Thu, 13 Feb 2020 07:45:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=aeioqHO6; 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 S1729226AbgBMPo3 (ORCPT + 99 others); Thu, 13 Feb 2020 10:44:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:52004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728398AbgBMP1l (ORCPT ); Thu, 13 Feb 2020 10:27:41 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A7082467D; Thu, 13 Feb 2020 15:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607660; bh=g3V5GqFuvHm9hAAo7i5DEoNIqNDkI0QlDyTVfPLRz8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aeioqHO6QfJGfgLughkx5ysvUbUxld9xVObTTjF7wd2YDDZzV/Q6uNyHmYTO9+CLT I0tCU7IF4KlzZBfWgtU5+Ld6dWRfqWTvEhLrMF5NjUKee9CXfKrOFZYhKpj7SVeker xqKVJyYi7xU7X3Sq5qE474HJAv3Hv0TJHIhF9LX0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Alexandre Belloni Subject: [PATCH 5.4 61/96] ARM: at91: pm: use of_device_id array to find the proper shdwc node Date: Thu, 13 Feb 2020 07:21:08 -0800 Message-Id: <20200213151902.636412094@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151839.156309910@linuxfoundation.org> References: <20200213151839.156309910@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Claudiu Beznea commit ec6e618c8c018c1361d77789a100a5f6f6317178 upstream. Use of_device_id array to find the proper shdwc compatibile node. SAM9X60's shdwc changes were not integrated when commit eaedc0d379da ("ARM: at91: pm: add ULP1 support for SAM9X60") was integrated. Fixes: eaedc0d379da ("ARM: at91: pm: add ULP1 support for SAM9X60") Signed-off-by: Claudiu Beznea Link: https://lore.kernel.org/r/1576062248-18514-3-git-send-email-claudiu.beznea@microchip.com Signed-off-by: Alexandre Belloni Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-at91/pm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -691,6 +691,12 @@ static void __init at91_pm_use_default_m soc_pm.data.suspend_mode = AT91_PM_ULP0; } +static const struct of_device_id atmel_shdwc_ids[] = { + { .compatible = "atmel,sama5d2-shdwc" }, + { .compatible = "microchip,sam9x60-shdwc" }, + { /* sentinel. */ } +}; + static void __init at91_pm_modes_init(void) { struct device_node *np; @@ -700,7 +706,7 @@ static void __init at91_pm_modes_init(vo !at91_is_pm_mode_active(AT91_PM_ULP1)) return; - np = of_find_compatible_node(NULL, NULL, "atmel,sama5d2-shdwc"); + np = of_find_matching_node(NULL, atmel_shdwc_ids); if (!np) { pr_warn("%s: failed to find shdwc!\n", __func__); goto ulp1_default;