Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3953210pxu; Mon, 12 Oct 2020 05:55:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuPfDtScrEVwQNhK4qgBFMJSU+aPOlxIBzmQyEPngB5CxOt+7D7P2v+YBHBZD2LRadNmON X-Received: by 2002:aa7:d1cc:: with SMTP id g12mr14217257edp.195.1602507358540; Mon, 12 Oct 2020 05:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602507358; cv=none; d=google.com; s=arc-20160816; b=0zPp/QlTTO+2i7cbJUOcJBORr/biSwwD1lBSfHpKaNUu4vfD82ONkM24eQ7wUKU+Uf 9fwXgkCiRdgAXC3G9Y8E7Zkj47xkW6nBp4Ov0DpqzFkgMnxL9IocAt6008peBF2GTJWN +zCFYKzFS7XGCHvvEwhsm/S078RF3tqpk9Dlf8pY/EVaM5yaE+QGwgcrNpTNyU6oDDWS a1+kmvkMWDe4171AY++jC9KvkD9McB9NJ8LKQVS9QosGi6iAUkwUwwOuZ6nrFv25Vs6w f0Zi3MMiCUHdDnAKDm2BuusEwuIW47fRjhEcwOcN0W+2WHC99gZdLvNQHbyhJeJ5UhjJ IxIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=EeOk5U7dM/ZinVPm0g5IDyfXmSWU4mN+EyyeLXE4LW8=; b=cFZzqiSilIyu2L5uIyCFfF/3wcThW/n5c6vqNbsNSEt0Q6y7otFdrox+RIRAv9/2Cj 07iMbWH+f17UlNEEWLY8yem12Z3YSwL1kSLHPbt3OY9ONLbw5a1tyXpEemEwNOa+sVCk jnH49sOTL3/TyW97Fn0G4fezMxJf6inlVrA7PBtywtEVVvgaJ3Z/9EDtrpiuqWi5CnEF 6N0Vhe9PYQy4fXqPpnipN15lHW5cmjwpXv46YEuQIxkScJTMi8yreKEB1QqUV3fZ5KEo KltWHOkCGFsQqDVxmaKAHHySJAxhPYRmgz46xgP1dAP5Ftw76/8KnYsLv358TiqoePW6 2odw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kVxYbLtv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si12344130ejk.629.2020.10.12.05.55.35; Mon, 12 Oct 2020 05:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kVxYbLtv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbgJLIQQ (ORCPT + 99 others); Mon, 12 Oct 2020 04:16:16 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:53760 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbgJLIQP (ORCPT ); Mon, 12 Oct 2020 04:16:15 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 09C8GAZ6018397; Mon, 12 Oct 2020 03:16:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1602490570; bh=EeOk5U7dM/ZinVPm0g5IDyfXmSWU4mN+EyyeLXE4LW8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=kVxYbLtvw+ZF2fY4XFWqHjZEV/S9XBM3rBLDcTiwGvqut/VZvrGUNv030v+iLOHUu jcAlOpSYIlEI0DEfwMeN5PkpMuA8HKrL8XroxK0v9HVLV4ob3RBLUrouYlohZ+IwLA Pr1D9HYVtibuibATSZDibtKP5H+Wm3EY1Gmv0kvA= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 09C8G9kS082697 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Oct 2020 03:16:10 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 12 Oct 2020 03:16:09 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 12 Oct 2020 03:16:09 -0500 Received: from [192.168.2.14] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 09C8G7ex087114; Mon, 12 Oct 2020 03:16:08 -0500 Subject: Re: [PATCH v2] usb: cdns3: Rids of duplicate error message To: Pawel Laszczak , CC: , , , , References: <20201012064256.8344-1-pawell@cadence.com> From: Roger Quadros Message-ID: Date: Mon, 12 Oct 2020 11:16:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201012064256.8344-1-pawell@cadence.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pawel, On 12/10/2020 09:42, Pawel Laszczak wrote: > On failure, the platform_get_irq_byname prints an error message > so, patch removes error message related to this function from > core.c file. > > A change was suggested during reviewing CDNSP driver by Chunfeng Yun. > > Signed-off-by: Pawel Laszczak > --- > Changelog: > v2 > - simplified code as sugested by Roger Quadros. > > drivers/usb/cdns3/core.c | 10 +--------- > 1 file changed, 1 insertion(+), 9 deletions(-) > > diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c > index a0f73d4711ae..85ef3025b293 100644 > --- a/drivers/usb/cdns3/core.c > +++ b/drivers/usb/cdns3/core.c > @@ -469,22 +469,14 @@ static int cdns3_probe(struct platform_device *pdev) > if (cdns->dev_irq == -EPROBE_DEFER) Shouldn't this be if (cdns->dev_irq < 0) ? > return cdns->dev_irq; > > - if (cdns->dev_irq < 0) > - dev_err(dev, "couldn't get peripheral irq\n"); > - > regs = devm_platform_ioremap_resource_byname(pdev, "dev"); > if (IS_ERR(regs)) > return PTR_ERR(regs); > cdns->dev_regs = regs; > > cdns->otg_irq = platform_get_irq_byname(pdev, "otg"); > - if (cdns->otg_irq == -EPROBE_DEFER) > - return cdns->otg_irq; > - > - if (cdns->otg_irq < 0) { > - dev_err(dev, "couldn't get otg irq\n"); > + if (cdns->otg_irq < 0) > return cdns->otg_irq; > - } > > res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "otg"); > if (!res) { > -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki