Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2634539pxb; Sat, 30 Jan 2021 08:58:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyg2cKCBRpq/f5yv/OTnaNJ1jUld4koVuxUmG+n7Db+Cb+gFy3yvxb5fDxVbkIP9fXtWAN1 X-Received: by 2002:a50:9dc9:: with SMTP id l9mr10699530edk.377.1612025906526; Sat, 30 Jan 2021 08:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612025906; cv=none; d=google.com; s=arc-20160816; b=G2qpuwaQHNrR6QP1pbk6FLbwgMgPLUDMKNC8VNxKmWTp8aa2GdRDamDmiPpnH05rXI /9Oj0JPJ6z+Sa0X2nU+9X+yedoetMAYaPyd5PcJnjQOVQZIPZ86w+FERpSQEh/VuN5Lx +hDRpkv1Tur+DgPAaqvyfsy7DaxjGAL8TFILvrmPakOAbh8OMXnTbKRVtbJA/GhwcvOt Aam7LIv+NQkMRSUMXKHgIP8hn9+7sA8nedpmLKEYcPCbmaq4Lf38TGJDZksSobOatHR0 9rY0+BCNsmSVjbZo2790n+4xvU4pqAPKYG1a30g0eXZMnkax5xAz3c0N/c+ugcULiAkt hWvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=FW1PIAWLlP/mUtUhVpc1wGSJOXNC9ICNRYLJ/n09dNc=; b=KM8hP+ADBmCqjV/a6DHfJjAEllW+5lGAiuKpVD/GisUIrIJ9isRJKb9uh4tZ/4lSq7 OEjKmvXc+1Aq3DKMMuivROuIL4iXgX7n0eUq5OOnG1nd0rUs773sWtRxcemkBsj5AhgQ i8tWH4Rh2Zv2+OmhXwmhBNTOwY7vUBYD+TP4eyNRbfesUosclUeFV6IqYXX8CQOsltgU NWPxRdUL+GHv+JPUoaWd1NjX13JwIJxsCyoO0rXID1sqjUNLyDr3aV+L9n9bQd54rw/M kxaTHNUW/JlyH5OJgof2bEOv/H336o+2b2y9UUTq6Ryes5YSkfF6XVghd0f3gL9wm78f bXgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oWV8Xdl7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si7286420ejw.631.2021.01.30.08.58.02; Sat, 30 Jan 2021 08:58:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oWV8Xdl7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231882AbhA3QzJ (ORCPT + 99 others); Sat, 30 Jan 2021 11:55:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231617AbhA3Qy7 (ORCPT ); Sat, 30 Jan 2021 11:54:59 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 626A4C061573; Sat, 30 Jan 2021 08:54:19 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id s7so9026615wru.5; Sat, 30 Jan 2021 08:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=FW1PIAWLlP/mUtUhVpc1wGSJOXNC9ICNRYLJ/n09dNc=; b=oWV8Xdl7iPHXJPwnER8l7PEH1ku1AEi8hG/gy//NINm5Abo3s+iwDp/9uFW8ICyuLe 76ZHXQcdtlXo3ZaAYr7vDiMQ5SVtF7kJrl5Q9bf+vQFhARQfLAz4sqGrTFmDG8+enjq+ wMW/T6D33RLzeoN2yqzYrAPN/nraKY7pAT0vmrv+Dasam4Hv4m0VzxYzwYJZIGmiWa17 6/LUXyuG/LDY3b95dL94zcSWXlDRyqREfHluETrHql67qBRyhPeu3VJR1404HZ2rY6oR oRJTrQKJeZeeodl+zHiY0GCM/igVvy5RDEaCKbfCoITaoCB00+JC+T3mbvkNXMrlfKki 2lnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=FW1PIAWLlP/mUtUhVpc1wGSJOXNC9ICNRYLJ/n09dNc=; b=GY1mWv7GnNVPtrOSUfAZguIOD9RVZeW5vxZOtrJiVK6Hx1ZTmFDVY22T7vtr6/z/pl lua/SR9/lsSa2AIJ2SvOKXGVH7vKwHmGecRisPAEnEOuAU6PTZ7I0n+bxHnw5jXMg0Md ZqAaDX0M6Pumhj2HRh3POguKkm7ILEWiTtp/icVbRKy3UgCrDruN6Zr+I1Y35XvJT0Jt qV/06F+be7sm9BOg0ANUdeze8LwwaGqFfu8MGINsz9769ZTm7Q+W+UXozSCKR3uimnYu uIK05Pl/qZFB/K8KvmhvH72sxe8aPCEXI4enXiDhOldQF1IwB+MAlePtYgAo3Lc8QgVO d23Q== X-Gm-Message-State: AOAM531sZiqbSGHYg5WhFUhrTHe98IlwvFeiwTj/4+7ht1i+hk9zSz7V 2Dkj/5+64Iow/WN99zfQsm0= X-Received: by 2002:adf:f2d1:: with SMTP id d17mr10163379wrp.110.1612025658090; Sat, 30 Jan 2021 08:54:18 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id p18sm14480246wmc.31.2021.01.30.08.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 08:54:17 -0800 (PST) Date: Sat, 30 Jan 2021 17:54:15 +0100 From: Corentin Labbe To: mripard@kernel.org, wens@csie.org, jernej.skrabec@siol.net Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: arm: sunxi: &83t: WARNING: CPU: 2 PID: 57 at drivers/thermal/thermal_core.c:563 thermal_zone_device_update Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello When booting next-20210128, I got the following warning on by bpim3 6.148421] ------------[ cut here ]------------ [ 6.153145] WARNING: CPU: 2 PID: 57 at drivers/thermal/thermal_core.c:563 thermal_zone_device_update+0x134/0x154 [ 6.163378] 'thermal_zone_device_update' must not be called without 'get_temp' ops set [ 6.171300] Modules linked in: sha256_generic libsha256 [ 6.176553] CPU: 2 PID: 57 Comm: kworker/2:1 Not tainted 5.11.0-rc1-00042-gf3788af62cfe #399 [ 6.184984] Hardware name: Allwinner A83t board [ 6.189517] Workqueue: events deferred_probe_work_func [ 6.194686] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 6.202438] [] (show_stack) from [] (dump_stack+0x98/0xac) [ 6.209666] [] (dump_stack) from [] (__warn+0xc0/0xd8) [ 6.216545] [] (__warn) from [] (warn_slowpath_fmt+0x98/0xc0) [ 6.224030] [] (warn_slowpath_fmt) from [] (thermal_zone_device_update+0x134/0x154) [ 6.233426] [] (thermal_zone_device_update) from [] (__thermal_cooling_device_register+0x334/0x35c) [ 6.244204] [] (__thermal_cooling_device_register) from [] (__cpufreq_cooling_register.constprop.0+0x184/0x294) [ 6.256026] [] (__cpufreq_cooling_register.constprop.0) from [] (of_cpufreq_cooling_register+0x40/0x7c) [ 6.267153] [] (of_cpufreq_cooling_register) from [] (cpufreq_online+0x2b4/0x8f4) [ 6.276379] [] (cpufreq_online) from [] (cpufreq_add_dev+0x6c/0x78) [ 6.284383] [] (cpufreq_add_dev) from [] (subsys_interface_register+0xa4/0xf0) [ 6.293344] [] (subsys_interface_register) from [] (cpufreq_register_driver+0x144/0x2dc) [ 6.303169] [] (cpufreq_register_driver) from [] (dt_cpufreq_probe+0x298/0x3b8) [ 6.312215] [] (dt_cpufreq_probe) from [] (platform_probe+0x5c/0xb8) [ 6.320313] [] (platform_probe) from [] (really_probe+0x1dc/0x3b8) [ 6.328231] [] (really_probe) from [] (driver_probe_device+0x5c/0xb4) [ 6.336406] [] (driver_probe_device) from [] (bus_for_each_drv+0x84/0xc8) [ 6.344928] [] (bus_for_each_drv) from [] (__device_attach+0xe8/0x154) [ 6.353189] [] (__device_attach) from [] (bus_probe_device+0x84/0x8c) [ 6.361365] [] (bus_probe_device) from [] (deferred_probe_work_func+0x64/0x90) [ 6.370321] [] (deferred_probe_work_func) from [] (process_one_work+0x1dc/0x438) [ 6.379456] [] (process_one_work) from [] (worker_thread+0x25c/0x55c) [ 6.387632] [] (worker_thread) from [] (kthread+0x124/0x150) [ 6.395032] [] (kthread) from [] (ret_from_fork+0x14/0x24) [ 6.402256] Exception stack(0xc12d1fb0 to 0xc12d1ff8) [ 6.407307] 1fa0: 00000000 00000000 00000000 00000000 [ 6.415478] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 6.423648] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 6.430301] ---[ end trace bd63a5c976f3611c ]--- I bisected the problem to ARM: dts: sunxi: Remove thermal zones without trip points Reverting this commit remove the warning. Regards