Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3702466imm; Tue, 29 May 2018 11:57:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqtsdwx8W1MdelQwK4W+M7vp7V67Zt2qbvMGDzH6VQ2h4S/HTo7W9jCyI2ZOAmk6wR4OY4n X-Received: by 2002:a63:a553:: with SMTP id r19-v6mr12881678pgu.147.1527620252709; Tue, 29 May 2018 11:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527620252; cv=none; d=google.com; s=arc-20160816; b=waO6S+dsaeLpmbxP3oQCW2bSlV1vg8u3yAEbDjmOydUObibLQ8pPMQwW4z9Y+kbrEv qHh2eK1pQ9K9WYevejzhFLbrCeHx04vZ1S+s/QQXBRFJQFsopMblu6RalBM2f+C6VEGv Bw8Tl9E5zTHN5EZpHvXg+uDYnj7ELqXDxEm1vIvz11wTijC1lZ5vq9nCZ/7aTri0Zx6V ta4dU5bWPD856uOuNZs0j3YK6GEH5rHOK5zZBM8J+y4LcyzE0zOcc0C7r+TTX9Z3EqGZ HyYd8qq1fy8sZB4g4yVWX164Erb+cvFINzej8x4Ttohhpz3lmxdT9vcqNolJZga/0VMm kKkQ== 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:in-reply-to :subject:cc:to:from:date:arc-authentication-results; bh=KyILC28NZXzieFIIa6Hw7kuqCmp4DVD8/lZuMdB4URo=; b=vBbu2didhRovl8Wh66Sk+jBbnQq6xM6uPNyouJwRgFTcZACgtMDqBXu4lP9XIMRbaI 7GgdbopxqwedDAx/Np+lio8sJ/2bZ31TO1sJMxCRFo8njIINgqTrtXfTl43eFscmV3wg 8GLsMycboIbBoxW3RFuBQo1LQ5T0lSyX/8UaugiOH9jUO+WMgMala/WsAZ6DhPAnExPZ BEC3LVEcl5URR+Fm9pvyI42fISubc+GUk+lJLbHDiPtwFhr1/FPL0cyonO98lK7BHCvb x7HMghqSMcql/OuXtrMj51RWfUsCyLsqmJJXytwe/cItsGdqB3JLRvhxY92cn8/N1fKI lOEw== 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 31-v6si31713634plk.191.2018.05.29.11.57.18; Tue, 29 May 2018 11:57:32 -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 S966325AbeE2S4F (ORCPT + 99 others); Tue, 29 May 2018 14:56:05 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:46592 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S965746AbeE2S4C (ORCPT ); Tue, 29 May 2018 14:56:02 -0400 Received: (qmail 4625 invoked by uid 2102); 29 May 2018 14:56:01 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 29 May 2018 14:56:01 -0400 Date: Tue, 29 May 2018 14:56:01 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Prasanthi Chellakumar cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Subject: Re: [PATCH] usb: host: ohci: fix sfr kernel warning in ohci-at91 driver In-Reply-To: <1527285896-12811-1-git-send-email-Prasanthi.Chellakumar@microchip.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 May 2018, 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 > > --- > > 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); Acked-by: Alan Stern