From patchwork Fri Nov 30 08:00:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 152494 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3362134ljp; Fri, 30 Nov 2018 00:01:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/XkYx9XMDSuD/MadDqz+zyWpzMFyllw2FrUxXW+xf+MrDmHEE4xi20CDFRFRazys0BKXoFu X-Received: by 2002:a17:902:780a:: with SMTP id p10mr4843353pll.54.1543564867985; Fri, 30 Nov 2018 00:01:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543564867; cv=none; d=google.com; s=arc-20160816; b=VJj1IP6DaM7r6KowfP4b+cAoVS+rqsNzcEyJVEaCsaFJ2utsxaM6j/JAbn8vOjvYUP BTdHJJFJSN2hAka7g9Rv1ZC4pBdHXbFF02A+lJlvVqfny8tU14/wb3OfQU5eWKHV98FE t2T4ESi1XdEOn7NKyhZB7vyq5H7YOADXAJ9UIYCxZtQj9wZhsLbbC2coKUf0l1cNRVQz MhrwKZOQYa75Ki3Dp9U+pV2EkU/b+/XUL0ngS5/YhmAWw5iRxPwMHJtmwuii7WoWAhNo rfsYVF9WNqh59rTdpuC6VP43pRuq7l14JIdhpGCJk7fJfxC+tmjlr+GB6B7/jAo0X0kk qm7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=QRSPgOw55/T6zE4Vz5EM77WSQ9yydjg6bR6Qzgn853o=; b=icuUiPLNH6bt/ZHbgsYs4C/oZGGsOmhHNxPEE545//Z2CcJuFxR3fvULd0n1K2MVfO 261g/TvwWRtzztI31arED27wRGjQuBTUd5gd94G7fU4H3UMq0evPnYJQ2KaWAFX8iXNU XugFzHZEz0h+spR32vSDt9EFkIG2qFIJfr4XzTF3T7OQ9/1Hz42wz3czmvQSGfNpEnxZ +yNEYDbUbsUfCJUFlEgFAFpWOGx88pw/OxtNxlEAdQh8+vASJTvgE8VBBlqIA/+MKox2 XT6Ie6fBjO81lPA+K9i1nGnd0YdCdiAtsq9KrrMLGM5K6Eg259sOpVN6LYok5X0Tm834 HYkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hFavkEnn; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i198si4878474pfe.289.2018.11.30.00.01.07; Fri, 30 Nov 2018 00:01:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=@linaro.org header.s=google header.b=hFavkEnn; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726706AbeK3TJc (ORCPT + 11 others); Fri, 30 Nov 2018 14:09:32 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51147 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726572AbeK3TJc (ORCPT ); Fri, 30 Nov 2018 14:09:32 -0500 Received: by mail-wm1-f66.google.com with SMTP id 125so4796522wmh.0 for ; Fri, 30 Nov 2018 00:01:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QRSPgOw55/T6zE4Vz5EM77WSQ9yydjg6bR6Qzgn853o=; b=hFavkEnnGzUvkMspt+c2pT9GINHR2fnxTsznYqafuiSowCA0OZ9DpYfC+0tIwTtpvG zcFcp8nj96AHs7++DOXqsWGWEq0PQqwWp39hfwE8J9bBYhHuw5/MgWvpNRg6F5iWfIP9 oTKoV+7feei4R7/kwxrSa5j5LbOXqBegNR/qI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QRSPgOw55/T6zE4Vz5EM77WSQ9yydjg6bR6Qzgn853o=; b=RhroxELkoJOSfz7INLesAGUd9BbmIEAlH6wa+EKxTHd2yDTaWWNnCT67PKeWXMdHfu IsFO5GR/AVBcI//g/9TVzdnWvjTpZOVO6Qw6w4cibcvXIeqkxmHx8fGprqHr+GFYhuF6 xDhxEiWbEO0DnTo8+9+TE1kZWBa4jSKMJMFIdsLRzBBCNpbJqMstKcwuvNdjrxdPdQB1 0TwhmftnC6Hob2qczTBR30qiHrCdgkZ5kYHx4W+DF4TOBi+GcQvzAdu7Lq6OeeeGE2Vx 2PIQUGXLnm0FNcg6CHRXhq4/hFx7k79nkOwln2Kl8PbX7M6Q4BEbmjoerr3I8i++R/0G aRTA== X-Gm-Message-State: AA+aEWZZFN39dqwI27U/nGh1QIYv7M/IuWRBzOvyceMoHhd93ncPPqkh CDU4ew11iGOrb8ILECLdMF9gqQ== X-Received: by 2002:a1c:5585:: with SMTP id j127-v6mr4224100wmb.127.1543564863997; Fri, 30 Nov 2018 00:01:03 -0800 (PST) Received: from localhost.localdomain (118.142.136.77.rev.sfr.net. [77.136.142.118]) by smtp.gmail.com with ESMTPSA id h16sm6212393wrb.62.2018.11.30.00.01.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Nov 2018 00:01:03 -0800 (PST) From: Daniel Lezcano To: edubezval@gmail.com, rui.zhang@intel.com Cc: vincent.guittot@linaro.org, john.stultz@linaro.org, linux-pm@vger.kernel.org (open list:THERMAL), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] thermal/drivers/hisi: Fix wrong platform_get_irq_byname() Date: Fri, 30 Nov 2018 09:00:31 +0100 Message-Id: <1543564833-643-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Without this patch, the thermal driver on hi6220 and hi3660 is broken. That is due because part of the posted patchset was merged but a small change in the DT was dropped. The hi6220 and hi3660 do not have an interrupt name in the DT, so finding interrupt by name fails. Fix this by returning back to the platform_get_irq() function call. Fixes: 2cffaeff083f (thermal/drivers/hisi: Use platform_get_irq_byname) Signed-off-by: Daniel Lezcano --- drivers/thermal/hisi_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index c4111a9..50f4d00 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c @@ -589,7 +589,7 @@ static int hisi_thermal_probe(struct platform_device *pdev) return ret; } - ret = platform_get_irq_byname(pdev, sensor->irq_name); + ret = platform_get_irq(pdev, 0); if (ret < 0) return ret;