Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp475884ybj; Wed, 6 May 2020 23:47:42 -0700 (PDT) X-Google-Smtp-Source: APiQypK+l0iPadRYnMEq8dg6MDuKy5rZ4nnG0Ro5khKFp9khUYy+CSY31UYCOnQ1nijkwYMo6g1f X-Received: by 2002:a17:906:8611:: with SMTP id o17mr10471694ejx.221.1588834062352; Wed, 06 May 2020 23:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588834062; cv=none; d=google.com; s=arc-20160816; b=OfYlL4jTuXdfzK+iMMpociXHKj6XSjiN1Au03b03fbomvqx2McHyQqynee2OfxodgP GVrOUohGCuHjnFttOFs3NtEGfEBa3cJaJ4CSoklXq3gXTZUq8TfB/jdwUA3MK+nhJIFY B1qJv7C+e4MzCCS6HHFBJnlsEb3nVtCRTfaDgUlLyyk4cYE9+CmuPm3U2SNIJoRZjzkR 4qjb5qpSfV5ySHVowzJApNKuIpYVx8ja7uFZb4rP0iSajIix7CjSJx6rGKi98r6jkkxZ sBF94d1NBG/DvXJ6Dv0kNMeVARyITstFhamZd2qG6S69RWwPPHTbHxvAhubMSHZ5T8Y9 ZSJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=v0/FRAV4ltdwDKvEF/Tu3HsDdhJ0MeN4ke3GO5MfknY=; b=SEAuiB2+24eJuEoQAXQu0Q1o/8kjlhrlJ3/8p8/c0pJomB6TKAt2ZbpmDIBnjeQUj3 F7L8VD6tUEKiAAW0z9ZT6d8bIPe21wX1+GRdIOOgsrFSh3447yR6bCucjxl8V6zMHcT5 OV6Ecx3usLGV3SmyuGd6FRk3EReS03Xk74IW5+Vre1agesBYzQS+7Te1lGg7gdnHxz07 y6dCRNsCYbPLcqetpz433FVP35MCiTPopuiAMcQiUxebXS/CKvDXoVB/xpjNH6dqrjlD PgrBJya2k6mGCxr/mXlwo1y0bwox61hzKt6SglrmgxVrDE5rXzVnnMrWIzDgTTfl++0w 0Aug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XPvD8Kgw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si2504304ejn.336.2020.05.06.23.47.19; Wed, 06 May 2020 23:47:42 -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=@kernel.org header.s=default header.b=XPvD8Kgw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726555AbgEGGnT (ORCPT + 99 others); Thu, 7 May 2020 02:43:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:57196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbgEGGnT (ORCPT ); Thu, 7 May 2020 02:43:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28B3620753; Thu, 7 May 2020 06:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588833798; bh=eoewxEcztPKZgseIqH5a8ofrxeV00nYAqCkx5/jYb3Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XPvD8KgwxMH5sL4bPiyyMBBEfy5TBjmlq04Aw0XMsUJjEQ8jvSzlTzfHiEmKlHW+r 2ahOmscHtP7Qc1qH/Is0de9nXTf57xUtlFyEC5mTta8lWBwRXQFeYPrT54AURx+oOT 36QF7pPCbOA45gItKGPKpB0Uf6Mka4US0fky+UOE= Date: Thu, 7 May 2020 08:43:16 +0200 From: Greg Kroah-Hartman To: Alan Cooper Cc: ": Linux Kernel Mailing List" , Alan Stern , Andy Shevchenko , BCM Kernel Feedback , DTML , Krzysztof Kozlowski , USB list , Mathias Nyman , Rob Herring , Yoshihiro Shimoda , Andy Shevchenko Subject: Re: [PATCH v6 3/4] usb: ehci: Add new EHCI driver for Broadcom STB SoC's Message-ID: <20200507064316.GC777100@kroah.com> References: <20200430111258.6091-1-alcooperx@gmail.com> <20200430111258.6091-4-alcooperx@gmail.com> <20200505110036.GB93160@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 06, 2020 at 04:23:01PM -0400, Alan Cooper wrote: > > > + irq = platform_get_irq(pdev, 0); > > > + if (irq < 0) > > > > "<=" right? > > The example in the comment above platform_get_irq in platform.c says > "if (irq < 0)" There is work to fix that up on the mailing lists, 0 is not a valid irq :) > > > +static int __init ehci_brcm_init(void) > > > +{ > > > + if (usb_disabled()) > > > + return -ENODEV; > > > > You check this here, so why are you also checking it in the probe > > function? > > Good point. I'll remove the one in probe. This was another thing that > came from the ehci and ohci platform drivers. About a third of the > drivers in this directory do this, probably because they started with > the platform drivers. Do you think it's worth me submitting a patch to > clean this up at some point? Yes please. > > > > > thanks, > > > > greg k-h > > I'll wait for your response before sending a V7. Never wait for someone who you have no idea how much email they get :) thanks, greg k-h