Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1878471ybn; Thu, 26 Sep 2019 03:39:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNpompARrEM0U/t4ggDxmEzTvygOU8Ql78PKbHYCIRcBaGU5FVcgesWEoZUL5kqvEH0doz X-Received: by 2002:a50:b884:: with SMTP id l4mr2717817ede.295.1569494345311; Thu, 26 Sep 2019 03:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569494345; cv=none; d=google.com; s=arc-20160816; b=ruhv8CuhXMZP6ao/3odOKB7fo/ufDXnR2lZtM5p3cD0aeqdSyYorr09Bskzgoo/EnQ yKmB/PwtVW7OZ1EDHkRLLN3vgEwII0k27kiT+O/EOUIq76Gpq02tHh19n88T+whFriE7 ZXtW3CBv7SKgMAAvye6WkRqpBsR5ej1nQv3A2BZ8836D3BzhH16SnsDe7pgYIPS5wjRU XlCzeIRBS3j22qpzK3UvuBQCMOVwuDAOuJGfK2quoGqKQCVksEOkthPBZuAL5Csxh80H VobNwGJcGSCnjHqU6VskDz6vviRwhZMt78ZdwiDSVChzHD4hq90sHFYSocdWvKmEBQtm C+uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:ironport-sdr; bh=phkgvvKIsJFeREkbwgOSfoffiAOTRHOOIOt2QD6iqhM=; b=nl4CvQJ9SQQtdyYTYRmShwuRys5Y5jVKzh9kxirzmj9I4RgdLgbS62DmzF6yh/AYTa Yao5o34urm1Trl+4niqX3Q4xIpk2D5obf9UxwnZcOXcAnO4N56r8zXjDhDQwNbj3iM8B K/Svh8IIrZEgsOhOQS0tAc6YUdnaAVYGWjZm5dfBE7XA86EIzoxMGBGu1dNr8iY8JPjt foTWRCp1Sf36fFYusHGYuozaZUyrZ8d5d3NPP3IgvqMsUrume6QCF4IOZ76W8hroms1p xxAmU+PFYFKxaJXOny3GlhVlKdFEod3tF9DP40q+AjNdepAnMVG67B388IknXaKlwFxw bE/w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t26si735049eju.238.2019.09.26.03.38.41; Thu, 26 Sep 2019 03:39:05 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726874AbfIZKZp (ORCPT + 99 others); Thu, 26 Sep 2019 06:25:45 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:7162 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726519AbfIZKZo (ORCPT ); Thu, 26 Sep 2019 06:25:44 -0400 Received-SPF: Pass (esa2.microchip.iphmx.com: domain of Claudiu.Beznea@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa2.microchip.iphmx.com; envelope-from="Claudiu.Beznea@microchip.com"; x-sender="Claudiu.Beznea@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa2.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa2.microchip.iphmx.com; envelope-from="Claudiu.Beznea@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa2.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Claudiu.Beznea@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: kuTEBVO5mat0bWcf8a4WUFA2aMY97JikdthveT3f7hfCRrFI6dxZimH9+Ggbq37CCurs4kZuq1 n20IDb0F/EZESYspkqd53q3qEvfnA2iDUKzmBESHmKbTyy369vzKNx43tB6q/KPjFVPmj+JGlJ spItzd1r66BppXGV6cAqYN5fbt6aSuRfSn5zW6IfFEY5gyDjtIfCn+VHiyOR9jawoSZAanr7iv TWn6rTz7xRoFsJPu4Zpn1Gw0qhu8hN1F6JKJd3OZTfpuldGHw00QvvQkXHG7xxcdxuLLNpu4eu lWQ= X-IronPort-AV: E=Sophos;i="5.64,551,1559545200"; d="scan'208";a="50409875" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 Sep 2019 03:25:43 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 26 Sep 2019 03:25:43 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.85.251) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Thu, 26 Sep 2019 03:25:41 -0700 From: Claudiu Beznea To: , , , CC: , , , Claudiu Beznea Subject: [PATCH] power: reset: at91-poweroff: lookup for proper PMC DT node Date: Thu, 26 Sep 2019 13:25:37 +0300 Message-ID: <1569493537-7612-1-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Driver has been enabled also for SAM9X60. At the moment the patch which did this has been sent to mainline the PMC for SAM9X60 wasn't integrated. SAM9X60 has a new PMC compatible (see commit 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")). Do to this we have to look for proper PMC compatible here, in SHDWC driver. Signed-off-by: Claudiu Beznea --- drivers/power/reset/at91-sama5d2_shdwc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c index e341cc5c0ea6..1c18f465a245 100644 --- a/drivers/power/reset/at91-sama5d2_shdwc.c +++ b/drivers/power/reset/at91-sama5d2_shdwc.c @@ -269,6 +269,12 @@ static const struct of_device_id at91_shdwc_of_match[] = { }; MODULE_DEVICE_TABLE(of, at91_shdwc_of_match); +static const struct of_device_id at91_pmc_ids[] = { + { .compatible = "atmel,sama5d2-pmc" }, + { .compatible = "microchip,sam9x60-pmc" }, + { /* Sentinel. */ } +}; + static int __init at91_shdwc_probe(struct platform_device *pdev) { struct resource *res; @@ -313,7 +319,7 @@ static int __init at91_shdwc_probe(struct platform_device *pdev) at91_shdwc_dt_configure(pdev); - np = of_find_compatible_node(NULL, NULL, "atmel,sama5d2-pmc"); + np = of_find_matching_node(NULL, at91_pmc_ids); if (!np) { ret = -ENODEV; goto clk_disable; -- 2.7.4