From patchwork Wed Oct 3 20:47:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10625289 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B27CF1515 for ; Wed, 3 Oct 2018 20:47:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3A2C28F65 for ; Wed, 3 Oct 2018 20:47:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97A8228F6B; Wed, 3 Oct 2018 20:47:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9EFB28F65 for ; Wed, 3 Oct 2018 20:47:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbeJDDhi (ORCPT ); Wed, 3 Oct 2018 23:37:38 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:43713 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbeJDDhh (ORCPT ); Wed, 3 Oct 2018 23:37:37 -0400 Received: by mail-lf1-f68.google.com with SMTP id p34-v6so5154892lfg.10 for ; Wed, 03 Oct 2018 13:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=NknEfC0PezVrX2hAWkNRfRwi1ex083rgvX5OZjJ0pKo=; b=ZUX/rwCKUCYmRJ4vTHpuA4fPEFnuSuhNp97416OkPvFnpXsf7aL5gqMH3NC0ge5nTC wYptCkzLFbvLVEB5QdAdTvcw/ronCP/Mtq1nHm6MmDvBqan6IaaLkRS7kYO2OgkHvU4t 6ZyEvRg29q5tPIGAN/z49CVwgcU23wHMe5cle7rkNGeMyCI9b7ahuivv8dXdLSA8FBbD 81Vx2RXFYRkAT0hEdJHJL+w4KuZs8iAjXNLiEJ4IH7ULjcIAVM8LIqbuwsdUpSWjQ+ZC GoHG+VHOa/4nxLpp2bTbTXu55CObtNCAh9aIJlD0rJN/2NNsBwpF4mXLff4GqUL+9hD0 Wndg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:organization:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=NknEfC0PezVrX2hAWkNRfRwi1ex083rgvX5OZjJ0pKo=; b=CDoD9VmsH0LkiQZKHzXrSpN6J4YEBU091qm0bVvB6DDhQSQyd5/SsKiO/tXYjV+kEm iH3NVuNcXDbRgRK1r/EDnobFEtXx4T9EYrdPtbF0ZSW0evK2jFUr7ULFMY4XOXRKRboJ /jyeX8uYXJSLRzpBfwUWxyq7Kzoys6oOi2LYkcAnQ+rmL1fHQxvDGQKyzeqsWmsoi+aQ p6KydmtjgpYPLtQdixue/o1g1A8yQET1B1lBL4tbDz5F6J8+HWyyHuqREmT3LL//gVlm RUbw2OkuvuAOgknX+LcZJDleFiJ+PRKTERbrpZTY9pOaHyf5Xj+zHrW5bCH2Kfw+GShT sq+w== X-Gm-Message-State: ABuFfoj6XLT0ivtkoYMyhuvHfJoLVGvtzvtvh/lvZ9u9Cviq6BWtdil5 cN3qVZBf+xMQ9c/gB4PiAwoYFw== X-Google-Smtp-Source: ACcGV608YSRcnrhT1EbxZVM7XKfu2WeO/JJJ7ivZn9AtX7ZMUlxtUGJ3G5wukf/kHwqPgS/e0toqKg== X-Received: by 2002:a19:974d:: with SMTP id z74-v6mr1948133lfd.17.1538599656043; Wed, 03 Oct 2018 13:47:36 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.83.173]) by smtp.gmail.com with ESMTPSA id z67-v6sm552225lfa.14.2018.10.03.13.47.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Oct 2018 13:47:35 -0700 (PDT) To: Zhang Rui , Eduardo Valentin , linux-pm@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org From: Sergei Shtylyov Subject: [PATCH] thermal: rcar_thermal: fix duplicate IRQ request Organization: Cogent Embedded Message-ID: <34a21e56-22b0-3603-1aba-0800aa02eff7@cogentembedded.com> Date: Wed, 3 Oct 2018 23:47:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Language: en-MW Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The driver on R8A77995 requests the same IRQ twice since platform_get_resource() is always called for the 1st IRQ resource. Fixes: 1969d9dc2079 ("thermal: rcar_thermal: add r8a77995 support") Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman Reviewed-by: Daniel Lezcano --- This patch is against the 'master' branch of Zhang Rui's linux.git' repo. drivers/thermal/rcar_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/drivers/thermal/rcar_thermal.c =================================================================== --- linux.orig/drivers/thermal/rcar_thermal.c +++ linux/drivers/thermal/rcar_thermal.c @@ -504,7 +504,7 @@ static int rcar_thermal_probe(struct pla pm_runtime_get_sync(dev); for (i = 0; i < chip->nirqs; i++) { - irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); + irq = platform_get_resource(pdev, IORESOURCE_IRQ, i); if (!irq) continue; if (!common->base) {