From patchwork Mon May 14 11:42:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10398111 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F1A3060216 for ; Mon, 14 May 2018 11:47:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF09D2910D for ; Mon, 14 May 2018 11:47:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3B5429115; Mon, 14 May 2018 11:47:01 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 7D9B52910D for ; Mon, 14 May 2018 11:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752089AbeENLnK (ORCPT ); Mon, 14 May 2018 07:43:10 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:22384 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752177AbeENLnF (ORCPT ); Mon, 14 May 2018 07:43:05 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20180514114303epoutp013c7f15893d5982d44e9e6801a3c51a72~ugBxy2dU60435504355epoutp01e; Mon, 14 May 2018 11:43:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20180514114303epoutp013c7f15893d5982d44e9e6801a3c51a72~ugBxy2dU60435504355epoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1526298183; bh=Z2yCr218mfuIbfPj7QC2z53faZt8du9X5nOhsVrFfL4=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=GwOAcH6c4STBQ9CRwW3n2wpho+Qltl8DkFXUQHpJtQ4ENGNkUlSeaXvcqpebnRfKh QfSGRb01PCJM78PSSAfTVeFatbpeQDDTiwrGuotCI3kDI6lHx5CzjtRM9xqxQHojdK doZu7hLCMVKjJxO/JxVzNp17PSK3fvWyruxICRGM= Received: from epsmges1p2.samsung.com (unknown [182.195.42.54]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180514114302epcas1p3a22e5c5647eb26bc079564c8423810e8~ugBxBHv3r0726307263epcas1p3R; Mon, 14 May 2018 11:43:02 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id EE.B4.04135.64679FA5; Mon, 14 May 2018 20:43:02 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180514114302epcas1p1890ad3296302900a736262b5d67aa10e~ugBwrpXO80370903709epcas1p1Q; Mon, 14 May 2018 11:43:02 +0000 (GMT) X-AuditID: b6c32a36-b6dff70000001027-34-5af97646d941 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 98.EB.03822.64679FA5; Mon, 14 May 2018 20:43:02 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P8P00KHHV793330@mmp1.samsung.com>; Mon, 14 May 2018 20:43:02 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Eduardo Valentin , Keerthy Cc: Zhang Rui , linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH 01/14] thermal: ti-soc-thermal: fix TALERT IRQ handling for DRA752 Date: Mon, 14 May 2018 13:42:08 +0200 Message-id: <1526298141-14045-2-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1526298141-14045-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsWy7bCmvq5b2c8ogz+rZS02zljPajH/yjVW i1Pbm5gsLu+aw2Yxe0k/i8Xn3iOMFk8e9rE5sHvsnHWX3WPxnpdMHn1bVjF6HL+xncnj8ya5 ANYoLpuU1JzMstQifbsErozWS1cZCz6xV+x9083WwPiOrYuRk0NCwETiZv9yIJuLQ0hgB6PE vyUtzBDOd0aJ5XMfsXcxcoBV9S1VhIjvZpSY0b6OBcL5xSjx880edpBRbAJWEhPbVzGC2CIC bhKzlvwBs5kFpjJKbJpQD2ILC4RIXO3tB4uzCKhKbOvfA2bzCnhILNp5ixHiJDmJk8cms4LY nAKeEhvaX4KdJyEwgU3ixpb9zBAXuUj8aQ2GqBeWeHV8C9Sh0hKXjtpClDczSnzbsYcZomYC o8Se9UIQtrXE4eMXWSFu45N497WHFaKXV6KjDarEQ2LFwussELajxN+dW6H+ncMo8XnlLNYJ jFILGBlWMYqlFhTnpqcWGxYY6RUn5haX5qXrJefnbmIEx6SW2Q7GRed8DjEKcDAq8fAGLP8R JcSaWFZcmXuIUYKDWUmEd7fRzygh3pTEyqrUovz4otKc1OJDjNIcLErivHOUvkYJCaQnlqRm p6YWpBbBZJk4OKUaGBu3Fdx75rkkdM/BlkntXOFvcnaIH/w8ab6v0NJZUfOULm/4/WepQQXT lLUTP93/xppswbSLWfiRiegUo2eqB7j65Rm2VcZcd1b+s//Mh0afkywn2VqW6EW5Sl84db7r nfmfc1xFrVWRe66FqeXeal5iyReWv3cDS6PI3GNHGzZ7cxnJxM+WtlRiKc5INNRiLipOBADF RLzwxQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42I5/e+xgK5b2c8og3eHuCw2zljPajH/yjVW i1Pbm5gsLu+aw2Yxe0k/i8Xn3iOMFk8e9rE5sHvsnHWX3WPxnpdMHn1bVjF6HL+xncnj8ya5 ANYoLpuU1JzMstQifbsErozWS1cZCz6xV+x9083WwPiOrYuRg0NCwESib6liFyMXh5DATkaJ SV0b2CCcX4wSrddesHcxcnKwCVhJTGxfxQhiiwi4Scxa8ocRpIhZYCqjxORPp9hAEsICIRJX e/vBilgEVCW29e8Bs3kFPCQW7bwFZksIyEmcPDaZFcTmFPCU2ND+EqxXCKjm9u8WtgmMPAsY GVYxSqYWFOem5xYbFRjmpZbrFSfmFpfmpesl5+duYgSG0bbDWn07GO8viT/EKMDBqMTDu2Ll jygh1sSy4srcQ4wSHMxKIry7jX5GCfGmJFZWpRblxxeV5qQWH2KU5mBREue9nXcsUkggPbEk NTs1tSC1CCbLxMEp1cA4S6d72tnFC1ea+vPJKn2wVV646AMTn+Qcgzqmbe8YJf9dye4+eybp A3NQeFdL6dMPyr0b0vdMffQs/sOUB96TN7wzSl+5JqLo9oZik2sLBex+9muHlT0RnPbLxVOD ZX2oyfKAnElLHr63XhL5XCCi18HZ5Y9Lfuip2yqnhN3X1H4wWX8m0DBeiaU4I9FQi7moOBEA JLnhpR8CAAA= X-CMS-MailID: 20180514114302epcas1p1890ad3296302900a736262b5d67aa10e X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180514114302epcas1p1890ad3296302900a736262b5d67aa10e X-RootMTR: 20180514114302epcas1p1890ad3296302900a736262b5d67aa10e References: <1526298141-14045-1-git-send-email-b.zolnierkie@samsung.com> 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 .report_temperature is not set in dra752_data which results in temperature updates not being propagated by ti_bandgap_talert_irq_handler() (it doesn't make much sense to handle TALERT IRQ without reporting temperature updates to the thermal core). Fix it. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/ti-soc-thermal/dra752-thermal-data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/ti-soc-thermal/dra752-thermal-data.c b/drivers/thermal/ti-soc-thermal/dra752-thermal-data.c index 33a3030..e8ab7e5 100644 --- a/drivers/thermal/ti-soc-thermal/dra752-thermal-data.c +++ b/drivers/thermal/ti-soc-thermal/dra752-thermal-data.c @@ -338,6 +338,7 @@ .adc_end_val = DRA752_ADC_END_VALUE, .expose_sensor = ti_thermal_expose_sensor, .remove_sensor = ti_thermal_remove_sensor, + .report_temperature = ti_thermal_report_sensor_temperature, .sensors = { { .registers = &dra752_mpu_temp_sensor_registers,