Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4187751imm; Mon, 8 Oct 2018 16:54:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV63aKw+JV/2/+ei+II/B7HyoDNP4g3lNt0JSMX0MCvsJLr+QzbJfyi4uhzlAucpeXFS4bsCx X-Received: by 2002:a65:4385:: with SMTP id m5-v6mr21959687pgp.219.1539042881713; Mon, 08 Oct 2018 16:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539042881; cv=none; d=google.com; s=arc-20160816; b=R057nZDEDgI+E9XXVToodv9RFItDpY+lV7nYBPlyHyVRqZSQul4lV3UajLcdp00iHJ 1OOampHNQtrIvRy6tSTgjkZj6fSF+RvQmXNo5DocOlHGnpNVGMGbfeEhPZXlTIJ0B2r2 s4mlUb67cCDknKWNVr4z+GanJ5t4u5Kjvk3hKENUoGTCXWRXavT8e+k9QkcbrA2saoAC xEMAv5/RX1V1W6lKP779X/CIVoeOeGIxK7qYC4MZAsLxoWVSMhpOz+rQWjQYS9t0WxZS 1OWk+5AKdKechGXUbj2FQZ0WRGoINoCz6TfTzA193rJvva3to9Cv3cNezAXY8PS2JcbJ 40PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DdNmpRbk95JOLLRforiBceMLEdU3Qgy458szwJyea0E=; b=FWs6ndzPTKIP5wBEvXGMLrW/2J33nURwz4Y5j58nGPvZFYqUaoXOHYd36k+KWWNAYd 5acOUb0W8cIp02mfjtxrN4clvX4forakYHU3TkhwVYTiMSh+UyM3fESM/VSVPr97GGsu pCVLbFaaxs6t9uVFNixtqhiJKkhhqUkn5TgzEfA7EJzHxv3pLjBtpECEWG7g13IZE68V QeR1MN5nM43MoB45MPZ3j01LKks56395byQBBltzSgI6w0csflVxEuZx5xRJU34StotD 2Wf2N8Iu0a9E0VdwdpNnvktOdClegKJCdcyn0nDlpl10wABOd9jbiKN3BSjtTdhGFce9 zx+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RV6DGgJY; 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 j12-v6si21563178pfd.222.2018.10.08.16.54.27; Mon, 08 Oct 2018 16:54:41 -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=RV6DGgJY; 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 S1726770AbeJIHHE (ORCPT + 99 others); Tue, 9 Oct 2018 03:07:04 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:39431 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbeJIHHE (ORCPT ); Tue, 9 Oct 2018 03:07:04 -0400 Received: by mail-vs1-f68.google.com with SMTP id m5so5884568vsk.6 for ; Mon, 08 Oct 2018 16:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DdNmpRbk95JOLLRforiBceMLEdU3Qgy458szwJyea0E=; b=RV6DGgJYrPPInBGzaTItAwnP5lFCA0uHHfV04DGtGOHUhZYU5KRsD3Qy/RJeD8yz0w G/EagxGm4IAKSIqrfSlP0VxADkX8Cis6hmpKO+jlCuQ+8+p4WeXrUqhq2BwcPToKaXcL ktx00wWScuZMou63OKun9Au6dovmz8bJFK0x8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DdNmpRbk95JOLLRforiBceMLEdU3Qgy458szwJyea0E=; b=XuZ+L914zGxry0ZmgVPrbGphwTxd9+QFTvq1u6HH4Ck2UiZFWsJ6aYhz+Ung07324x 4qMq+aYGREldm1aQpaDmdCsrBqRF59k2EEOf8/nrzSHXB8pAZyYYfrh05CSgHuLg+3zG 8OrUvrZX+0vSZ47HyXso6qo8pOUaQyhi0c5cjs6uVWBmGbQlpq+Hilg3O3y+M2rC4Ami VJHve9FX6NAYJ329xbpaoEkujdZ12S7nHw01GsBjqtC47QiaDMmskM9AaANm7V0ONJiw gnvxM7HiH4rgvqGaXs/3j9GWHQO/ALvhWbP+KL2eBAvAGeIDUGNokF4pDg0DAUgLs9l1 agmw== X-Gm-Message-State: ABuFfoioK1z2Ile7C9qiaupwwtbvu8/8Zs/8x9jldSUmTeJSQfG0RhaJ QD1QuTPhsAuiDFwwNkQ3OXFH8qpojtM= X-Received: by 2002:a67:f84:: with SMTP id 126-v6mr9368490vsp.197.1539042771979; Mon, 08 Oct 2018 16:52:51 -0700 (PDT) Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com. [209.85.222.41]) by smtp.gmail.com with ESMTPSA id h76-v6sm1481709vsa.2.2018.10.08.16.52.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 16:52:51 -0700 (PDT) Received: by mail-ua1-f41.google.com with SMTP id r20so5304571uam.5 for ; Mon, 08 Oct 2018 16:52:50 -0700 (PDT) X-Received: by 2002:a9f:344d:: with SMTP id s13mr9872325uab.27.1539042770484; Mon, 08 Oct 2018 16:52:50 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <153904219713.119890.7463642233895152532@swboyd.mtv.corp.google.com> From: Doug Anderson Date: Mon, 8 Oct 2018 16:52:36 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V5 3/3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP To: Stephen Boyd Cc: alokc@codeaurora.org, Mark Brown , LKML , linux-spi , Matthias Kaehlcke , linux-arm-msm , Girish Mahadevan , Dilip Kota Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Oct 8, 2018 at 4:43 PM Stephen Boyd wrote: > > + mas->irq = platform_get_irq(pdev, 0); > > + if (mas->irq < 0) { > > + ret = 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 nothing 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 > Can you request this irq as late as possible in the probe function? I > worry there may be some pending irq line set and then this will cause an > interrupt storm with IRQ_NONE returned because the device is runtime > suspended. I'd rather handle the failure path then get the IRQ too early. -Doug