Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp17480imm; Fri, 25 May 2018 15:05:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoJJhwomKWYxIZ+hpPjCfpSxAxee8qKGN4WF91Y5A0Iq2UaZaBic+9hcgSjMPs6e05w5YlP X-Received: by 2002:a63:6fc8:: with SMTP id k191-v6mr3320453pgc.153.1527285957059; Fri, 25 May 2018 15:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527285957; cv=none; d=google.com; s=arc-20160816; b=mX6XtKup6IxDBk+6QDZUP/sBY7F6pIftjdMhItvBt2B8mQeR0JzvSi7powF+PNY2kv yLhIsdEuYEpG+Oz0cAt0Lh5mpBOaw5JMFy+MZ7T5xJKREE4R6wwwI7E1uOBMcLt66uY2 gJrY/M2XITjaUcOlLD5NXNUGmMORtd1/7fGymOtO+8HhbGs66OBHYmHSI0eiKM38J6tr dO2tR75deipmWILu3kdWGQVsihw3sCmux5GTNlJ1P5um6Nu4nlh5otmjOJAN4CNncUvR g/5Ht1Z3+QJnxcptBCtH6acm37ytGocY2wIij3j031htdjzARHhND5ZZ2VGFi3e/bLMx tMSg== 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:arc-authentication-results; bh=QMlFA4Cz4QeVR4YPat9giVC7ES/hZymUD2Tw+H2ToG0=; b=xzLiKTiL1QW5l+dHl81r+4ibK43iJhtd98kIxIDktRvRs9Uo8CEIWaL3McsWZ8oINU TaXaWys+52XCkBTipF/SQTQKMR7z3wd9YpgDmKbSEbWnzMny8uWVGB+qAofVeXInxbTB H8VGMo78NfUGz5RoA3enUdglng2xmDNX+tZ5syI9czFyuPnwXofgZWN5jyo0fPZ/G2X1 +/MhSQHAKPFyx5Lp1P15MieZ/ZE7mxf2ASZjzV0orKbfKKgG2pv09FzNfmXf0PSq4Nam o6Jaor4jrsw2vqjODldX17mxt19iqSK7FNf/FvdHWwdL3vLw2eA+eY9MJzqiEgpy7FFQ z3eQ== 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 r59-v6si24177095plb.314.2018.05.25.15.05.42; Fri, 25 May 2018 15:05:57 -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 S1030735AbeEYWFb (ORCPT + 99 others); Fri, 25 May 2018 18:05:31 -0400 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:60893 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030394AbeEYWF1 (ORCPT ); Fri, 25 May 2018 18:05:27 -0400 X-IronPort-AV: E=Sophos;i="5.49,441,1520924400"; d="scan'208";a="11927773" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 May 2018 15:05:27 -0700 Received: from prasanthi-HP-Z240-Tower-Workstation.microchip.com (10.10.76.4) by chn-sv-exch04.mchp-main.com (10.10.76.105) with Microsoft SMTP Server id 14.3.352.0; Fri, 25 May 2018 15:05:26 -0700 From: Prasanthi Chellakumar To: CC: Prasanthi Chellakumar , Alan Stern , Greg Kroah-Hartman , Subject: [PATCH] usb: host: ohci: fix sfr kernel warning in ohci-at91 driver Date: Fri, 25 May 2018 15:04:24 -0700 Message-ID: <1527285896-12811-1-git-send-email-Prasanthi.Chellakumar@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 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 --- 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); -- 2.7.4