Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp998475imu; Wed, 16 Jan 2019 10:56:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ub/0V+RxX1QtNp4FR3LDsgGJF+S7OqF+DVcWx9/4BJUDZl+pnpdnVKas5svF5fFv9EanD X-Received: by 2002:a62:f247:: with SMTP id y7mr11303516pfl.25.1547665013870; Wed, 16 Jan 2019 10:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547665013; cv=none; d=google.com; s=arc-20160816; b=UfrmK+eMGeOPOBXBwrolS0ig4XIq13lowmxE8WkvBUBcJRk/PyPXdXLbKzaWuS2LL9 JhBvSpbAUdHj0tJuZQPHTqLHOU4mxnyB32EheewIsmUcwuIc+95DZdmWbTLLKcHXHSBZ G9AVuIVfGafKYKCUXsbSKEZ0a/tXmPrZNqL6euyLCy90SQmQ9PEQUzVTm1Jz4WvO6VtY 8IBUYLYUuTUkXMWvQ11Gbp3yG71aVcxMW13NK5lgDmB4jeXMtSskyMVLkYHhSAsLlb1+ 5atl43S5oSzRKv8YX8jxk4/gtKuCScP5ylpMV7FxV8OecrNpubVDRh5Op/EyWC1K7Og1 SRJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=5SJ4zDUDJqgMV5oL9XrRdY1PATmTTNDw/A3oSE9qCQw=; b=MJakj/Qk0fpL8+QqbcNv7mVd5BL/RvOAbbJZ4Q0fLdm3p4PF21SXm4Zvd2wNgHYN4u TMjpy5sk3/w8f0PtkwJfjZZn/GbhJeUaKMFSmNrMWu2r6UtVoycC2tnW7LAOv3upu3ox 4Y0o6KjEw23pC0UEllthYY+NK4FE2+WBtVcAc3q9fnfwL6gbFta9+TzA+U5QDEOxOUVm EaMKdDiS37SziVnKTqjYSAfjGVvZT2xlCNUUwKyyQyhmzKaF4ucB8C1lbGldW/YZbrdt 1YkiZFNH3nRN04eljp12DINWiiEeagN4Fk+VL5TKwGy2PXwzNRRU+MxrA1wqu/QrLk0W /Y+g== 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 o12si6902281pgn.145.2019.01.16.10.56.37; Wed, 16 Jan 2019 10:56:53 -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 S2404077AbfAPJ6P (ORCPT + 99 others); Wed, 16 Jan 2019 04:58:15 -0500 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:49657 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404057AbfAPJ6J (ORCPT ); Wed, 16 Jan 2019 04:58:09 -0500 X-IronPort-AV: E=Sophos;i="5.56,485,1539673200"; d="scan'208";a="25551589" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 16 Jan 2019 02:58:09 -0700 Received: from tenerife.corp.atmel.com (10.10.76.4) by chn-sv-exch02.mchp-main.com (10.10.76.38) with Microsoft SMTP Server id 14.3.352.0; Wed, 16 Jan 2019 02:58:08 -0700 From: Nicolas Ferre To: Alexandre Belloni , Ludovic Desroches CC: , , Sebastian Reichel , , , "David S . Miller" , , Alan Stern , "Greg Kroah-Hartman" , Rob Herring , , Nicolas Ferre Subject: [PATCH 7/8] USB: host: ohci-at91: add sam9x60-sfr definition for ohci Date: Wed, 16 Jan 2019 10:57:43 +0100 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: 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 Add this SFR compatible definition for the sam9x60 SoC and manage its use in ohci-at91.c driver. Signed-off-by: Nicolas Ferre --- drivers/usb/host/ohci-at91.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index ec6739ef3129..fc35a7993b7b 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -141,8 +141,11 @@ static struct regmap *at91_dt_syscon_sfr(void) struct regmap *regmap; regmap = syscon_regmap_lookup_by_compatible("atmel,sama5d2-sfr"); - if (IS_ERR(regmap)) - regmap = NULL; + if (IS_ERR(regmap)) { + regmap = syscon_regmap_lookup_by_compatible("microchip,sam9x60-sfr"); + if (IS_ERR(regmap)) + regmap = NULL; + } return regmap; } -- 2.17.1