From patchwork Tue Jul 16 08:49:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 1132532 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45nvJp5d9Zz9sNf for ; Tue, 16 Jul 2019 18:51:38 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 440A5C21DF3; Tue, 16 Jul 2019 08:50:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id F1C1CC21E2B; Tue, 16 Jul 2019 08:50:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D5AB9C21DAF; Tue, 16 Jul 2019 08:50:08 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id 0DEC4C21DD7 for ; Tue, 16 Jul 2019 08:50:05 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45nvH06L2Dz1rY5W for ; Tue, 16 Jul 2019 10:50:04 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45nvH069SLz1qwLN for ; Tue, 16 Jul 2019 10:50:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id DLwfCiHF5pnJ for ; Tue, 16 Jul 2019 10:50:04 +0200 (CEST) X-Auth-Info: Kd6S6OdlBPFLVR6bxX7kPcixSqZjOXniTXfAYhEbYW8= Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Tue, 16 Jul 2019 10:50:04 +0200 (CEST) Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 0668518585F; Tue, 16 Jul 2019 10:49:12 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 03FE11A00A1; Tue, 16 Jul 2019 10:49:12 +0200 (CEST) From: Heiko Schocher To: U-Boot Mailing List Date: Tue, 16 Jul 2019 10:49:06 +0200 Message-Id: <20190716084907.1568340-5-hs@denx.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190716084907.1568340-1-hs@denx.de> References: <20190716084907.1568340-1-hs@denx.de> MIME-Version: 1.0 Cc: Marek Vasut , Sven Schwermer Subject: [U-Boot] [PATCH v1 4/5] usb, ohci: add warning if none on pci found X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Heiko Schocher --- drivers/usb/host/ohci-hcd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 23ea2af5d7..58aa824ec0 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -2047,8 +2047,11 @@ int usb_lowlevel_init(int index, enum usb_init_type init, void **controller) pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &base); printf("OHCI regs address 0x%08x\n", base); gohci.regs = (struct ohci_regs *)base; - } else + } else { + printf("%s: OHCI devnr: %d not found\n", __func__, + CONFIG_PCI_OHCI_DEVNO); return -1; + } #else gohci.regs = (struct ohci_regs *)CONFIG_SYS_USB_OHCI_REGS_BASE; #endif