Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5067569imm; Tue, 9 Oct 2018 09:13:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV61q7/0UEgc/MTC4pltDreJhtofet1SFitrNECwaAFxthqqZspEdLOK1jNAzLkr8hA4hqQ2b X-Received: by 2002:a65:4882:: with SMTP id n2-v6mr25058430pgs.225.1539101583266; Tue, 09 Oct 2018 09:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539101583; cv=none; d=google.com; s=arc-20160816; b=TZLYtE7XW67BYgVDDxqoQpVU55ssk7krDQAMHoNqYKomSBcRfnVQ0fzuRFH8f0diVE RxSHaJy+jONR0v3xPUE9JaNrGLNxfKlReXpJd88PVWwzfXxSYVRjiTKAOL272DXQIzmk Cd9dOUl4p1IaHpfv75Y+BrffwCuVeeLAqSNX0NLyAd29qQIsJpBpD+AuzVx9/o4akhnL HSlUcJXEtKl6UE9DBoyezOV3SqZncUM8ECZ0k5O/El3V/ZCH8siEgZomFc4HHbBUBhvr w+OfntLY8JwnYK0QymM11wPk5nERiHYq717mVFksBivQSFEEJtPa9W7OKrJ00s4aJevw +kOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature; bh=1y5p9Odrxdk4dikh1SyZD0JhPP23jfvmQAWmeNz0h7o=; b=rOPz9nV+wgICYOndqhUBpH9/m4Loopni6wyf5lSdcNOJduNrTOXL0tBrCHVccz4ORs D52xV540AiJKczRIHUUndb2dDKHSprFD6thEMTWslITYUS7rOKyPARsLNTdKkoH6YbNe 4Va03Z3B2Ypoqc1DolNcdatMcuB6IUaF1DP41J9BUGv3O8GK1h0tDYaoDUI3z+1719zE HoaKFidJF18/HoGFU11TTPFyqXuqWT0j9+WlaseIC96oy9WRSsMGfc4gOWX/ENx8RQJZ u56o/mBalqKqhj1vmTKZhKrPXQNQtaAgAENp+/3aQqJK7VMABtlLRINS1hueMf0fkSgV wkVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HPmfd+aj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s63-v6si12418803pfb.217.2018.10.09.09.12.48; Tue, 09 Oct 2018 09:13:03 -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; dkim=pass header.i=@chromium.org header.s=google header.b=HPmfd+aj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726770AbeJIX3s (ORCPT + 99 others); Tue, 9 Oct 2018 19:29:48 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44732 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbeJIX3r (ORCPT ); Tue, 9 Oct 2018 19:29:47 -0400 Received: by mail-pg1-f193.google.com with SMTP id g2-v6so1031784pgu.11 for ; Tue, 09 Oct 2018 09:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:to:from:in-reply-to:cc :references:message-id:user-agent:subject:date; bh=1y5p9Odrxdk4dikh1SyZD0JhPP23jfvmQAWmeNz0h7o=; b=HPmfd+aj0ScRFHvp3GAfACDrMAuAidWvFkdUeDFKmZpnlrXadWzliMx351/6fe3KbP sAV1J8xpEDZkEUADOmFYQpYMhOMnOtpj5Zc4lsrEpNhB4EoxRZ+ba2o6zExozXT8G9ns a88NnfbR5og4iv4fqo4Q7ljHDVRW3LDbQ9mJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=1y5p9Odrxdk4dikh1SyZD0JhPP23jfvmQAWmeNz0h7o=; b=LvgHcTDnqCnmHzR5W2gG9QpmLePbidoMipStijFmz9dhOSg9DvbmC12cHPkfMwIvbH YlDUBRP/5ID0lrNkjjRyvAnwZnKLQXSG0Mx6HDwUhsdGKFLwbYA2DD4csd8hP2DSiu52 jul6diJIQbkpip9bQcxlgmqGigyor+g6jG3l+P+PCJhhGM+qQJqFOclkyj9aPt3opEJV dleAvtTHxJzYiGJ0cQg0BaKbsY/DURDx0N3Acb/fY/Z1hOL5IdiMwOK5wuOsyeu9CpRU bOScfBrV/DLfNbkX7hO1Vm2Bye0qBsxxFFqYabbPxwB5BjP/T554CQ3U79XVBDwLrDuG K2BA== X-Gm-Message-State: ABuFfohagkJZHsbUe4u7FC/v9vTLJ8d/eX8BKgcSSSRmRMLeIxAKLMSC YfrZaIKm0ZIMVxZYw26BQCsUmw== X-Received: by 2002:a62:b286:: with SMTP id z6-v6mr31215534pfl.79.1539101527440; Tue, 09 Oct 2018 09:12:07 -0700 (PDT) Received: from localhost ([2620:15c:202:1:fed3:9637:a13a:6c15]) by smtp.gmail.com with ESMTPSA id o9-v6sm33484092pgn.30.2018.10.09.09.12.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Oct 2018 09:12:06 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Doug Anderson From: Stephen Boyd In-Reply-To: Cc: alokc@codeaurora.org, Mark Brown , LKML , linux-spi , Matthias Kaehlcke , linux-arm-msm , Girish Mahadevan , Dilip Kota References: <1538574265-30235-1-git-send-email-alokc@codeaurora.org> <1538574265-30235-4-git-send-email-alokc@codeaurora.org> <153904219713.119890.7463642233895152532@swboyd.mtv.corp.google.com> Message-ID: <153910152600.119890.14820584405992384926@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH V5 3/3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP Date: Tue, 09 Oct 2018 09:12:06 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Doug Anderson (2018-10-08 16:52:36) > Hi, > = > On Mon, Oct 8, 2018 at 4:43 PM Stephen Boyd wrote: > > > + mas->irq =3D platform_get_irq(pdev, 0); > > > + if (mas->irq < 0) { > > > + ret =3D mas->irq; > > > + dev_err(&pdev->dev, "Err getting IRQ %d\n", ret); > > > + goto spi_geni_probe_runtime_disable; > > > + } > > > > Nitpick: If you got the irq earlier before allocating anything then not= hing has > > to be put on failure path. > = > I think this might have been in response to previous feedback from you > suggesting that we should get the irq as late as possible. Ah, here > ya go: > = > https://lkml.kernel.org/r/153780767551.119890.9339380838620508307@swboyd.= mtv.corp.google.com Yes I suggested we register for the irq as last as possible, but I didn't suggest calling platform_get_irq() this late. It could be called earlier so that if there isn't any irq then nothing to do besides return failure.