Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp391130imm; Thu, 31 May 2018 02:18:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnvRe7xFABUHF8l5nL0Sbhx7czLmAarbfhHK9vFAYfTLr8NcfC6sVnsELtIj4eYWgdl4i6 X-Received: by 2002:a65:608d:: with SMTP id t13-v6mr4832503pgu.266.1527758294336; Thu, 31 May 2018 02:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527758294; cv=none; d=google.com; s=arc-20160816; b=QOHYmC4rO6mpJ5pOBxY4+Sqpc3J886WTcxsBpPHnJ/EAqvyUX6+Qzh7ufJ8uguerWw pFLRJfUByNppZgw/OZeDGTZNy89CnunzpCcdfdU8Fv2/73XPp7fACT8rRm9rGtieNWTF qIaiPxq+9m6gathjU3cB9qgFSeVyFbEbjE0CA2b5s31Digbmjb4CXZly7BxmudrBwdRx ktAKQOP7yMnFW1w/mYXAXjEC4lJKutaxsmTXUgo76zibGFhTuqxNDzv+I3Qy2EEbKIxj hQDqfjhqNyjtl1zrZeaVDAun09T6Sl8qumfG1I1UmZ1QlBoa5Xdi46Ds8D9UlFPF87mO dMrQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=5IwVUps8s5Usg5qH64Tyo8J9XrnMi1PNFjNFhRBdZhY=; b=T69vNCPTJo+WsLsQcjGlNK8jAeVX4WGv5Jq4htrYb3/Na8pg3rwl6hvZR9um+/VIWi f3C0sQ1RTwjLWAjynXaJWU8P/0MHwBFe5UMphcoUyxQKci9dNyI1fIBodPl5yXjvahkM KP/xx6r3Ecwo91n8/mUL3lNORAaby4Iwaz4qgoHgaWA0ThLe4rsQXehRHDgBNZT5a5f8 BfViXxWAySwAdphwEUc9XHqeFlDsub7BKwO/IZwJT2zXO3iT8lLmt22JJ+cCUVt3jTZG JbDXPYoFb5b7CAselZF1CRuJfhycjXCeu5dDH2ijVFDyvKhWLqffkuDpJkgNk2QkpPbu QNzA== 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 w9-v6si38390591plk.28.2018.05.31.02.18.00; Thu, 31 May 2018 02:18:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754154AbeEaJR2 (ORCPT + 99 others); Thu, 31 May 2018 05:17:28 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:10874 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbeEaJRY (ORCPT ); Thu, 31 May 2018 05:17:24 -0400 X-IronPort-AV: E=Sophos;i="5.49,463,1520924400"; d="scan'208";a="14728133" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 May 2018 02:17:24 -0700 Received: from [10.159.245.112] (10.10.76.4) by chn-sv-exch04.mchp-main.com (10.10.76.105) with Microsoft SMTP Server id 14.3.352.0; Thu, 31 May 2018 02:17:23 -0700 Subject: Re: usb: host: ohci: fix sfr kernel warning in ohci-at91 driver To: Prasanthi Chellakumar , , Alan Stern , Greg Kroah-Hartman CC: , linux-arm-kernel References: <1527285896-12811-1-git-send-email-Prasanthi.Chellakumar@microchip.com> From: Nicolas Ferre Organization: microchip Message-ID: <525dc6c3-8654-50f8-264f-1b375664204c@microchip.com> Date: Thu, 31 May 2018 11:15:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1527285896-12811-1-git-send-email-Prasanthi.Chellakumar@microchip.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/05/2018 at 00:04, Prasanthi Chellakumar wrote: > The USB Host Controller driver 'ohci-at91.c' reads a Special Function > Register - OHCI Interrupt Configuration Register (AT91_SFR_OHCIICR) > for bits SUSPEND_A/B/C. These bits are defined in sama5d2 alone, so > sfr register mapping is done with compatible string "atmel,sama5d2-sfr". > This gives a kernel warning 'failed to find sfr node' with non sama5d2 > cpus which is removed here, thus leaving it up to having a proper DTS. > > Signed-off-by: Prasanthi Chellakumar > Acked-by: Alan Stern Acked-by: Nicolas Ferre Thanks Prasanthi. Best regards, Nicolas > --- > > The AT91_SFR_OHCIIR register is read for USB suspend and wake > up control. The OHCI driver has a sfr register mapping for sama5d2 > alone. The USB suspend proceeds only when there is valid sfr regmap. > So SFR access in boards that it is absent is not required. In such > boards, USB suspend control requests is processed by usb_hub_control(). > But there is a kernel warning with non sama5d2 cpus. This patch fixes > the kernel warning, changing to debug message(dev_dbg). > --- > drivers/usb/host/ohci-at91.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c > index af0566d..ce11c47 100644 > --- a/drivers/usb/host/ohci-at91.c > +++ b/drivers/usb/host/ohci-at91.c > @@ -214,7 +214,7 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver, > > ohci_at91->sfr_regmap = at91_dt_syscon_sfr(); > if (!ohci_at91->sfr_regmap) > - dev_warn(dev, "failed to find sfr node\n"); > + dev_dbg(dev, "failed to find sfr node\n"); > > board = hcd->self.controller->platform_data; > ohci = hcd_to_ohci(hcd); > -- Nicolas Ferre