From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F8E714CAC3 for ; Fri, 23 Feb 2024 22:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708727265; cv=none; b=I2H0OGzeh/p3SG3tyCtSH1Jo4zIow+yCnOOxjq/Jhoo0Zjxuk30W/QPWSBa+Hfy8P2vVUiwvhBzK/Lzqvt6OZkSjpP6twGyPcZnW4Qdp8CM3nY+r242EDhtehB3d1Ml9fjNkfZlI7j0eggkRceMR/aUoAHiV2Tz9KoMHeu9ZFGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708727265; c=relaxed/simple; bh=C09P/fYLTlcYhPEKEzo0c+Q8OizrnciIo0/Ml29193w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IXtRHHBN3/PI60nKuj7CPbl9OiefVm1QqpYBCtqbE6w7PLG6oj7gbt80BH+5vOcx7oToj67efGPSwJTVlXsfIdM4IyezSGAfqohGH9kYeIxxDIO132w2kLPXXUoYe8JO4vg511H4pwepcvyQR3c5hGZZb2XxkRbgGgM1H2Gkg4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ncM61nZw; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ncM61nZw" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-41279203064so6009575e9.1 for ; Fri, 23 Feb 2024 14:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708727262; x=1709332062; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HppqBtas3L0GcMMoGYXdcb8iGGz9VbwRhKoehMa5r/A=; b=ncM61nZwUBE0kw04qfJek0hqnl0zi1YNSQKEw81OX4N2Q5Jpd+NW9Sym1YaLbDjcjW J7l0Ft9LU2sTMO2lk+Ydl9vbSKnmhd0MV1RRQoe1lk6R2FlX/qtRNlOvANOxw6sFSY8T 6dvnOjQRLk1Qs0EEo8Ijs9RbOx9Wd3+Uyjjfbqzo6LZ6EmyBEf2WeJdyBQ5P0FrxrXK/ AN/ZTN7EAdA+m30AKG+xNJVE4tWgSLIkNApBFeTDdOGgOkqMpmmOMIQh73ALTlCuXI0Z YfJBc6JgPJZ4/PcX+u1PNsPilkrMuUkTDNH/1vqxv0LP5oXP1S5asCigfr/UcqUEnmQ+ KyDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708727262; x=1709332062; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HppqBtas3L0GcMMoGYXdcb8iGGz9VbwRhKoehMa5r/A=; b=Nh4QyGKjyELDeVr3W73dX6Xxc4l87A2PbZwHM6MGkClrD/4hAcAhC2aA1TWRBxN2q5 YoH4/rC4ALFJUrvJVJp4f+9KU6P9Up4jj0PoJNqjdFpCibIEya0pvCKolVP3MA4IfaJg MPeulJvOxyolrCi20bpPFKTiJd62r51XfAy8r26lgRtAg8VxTHgydi+AZy2giGKL7SfM gAgtyE+nJJuAxDTKauqrTdJcAPA3yV4l2pfkm+I3iY5b5IoCkFAtRQQdmXL3zb2tnfgU q65EvtFFn0uT9LjWpbmhFCQSm0JvCSuB0qUzEnSlH8DF2CM8zt+Ir1VeyyOIlft+etdr a+5Q== X-Forwarded-Encrypted: i=1; AJvYcCX2Tc7PFGY02IrnQ++Z4YPu6qHiL7nKrV9biS+JWE00qO66EBzYcw4E6mjtTSho7k41MZ5qqjNMo80PbCMZabe8GrvA6mWQjks= X-Gm-Message-State: AOJu0Yz/vWBOgthZfI+QafA7THDXDfz3+iG+l4Lri4EXeI0jM1oHrbjK tr7qPo8Jsi5dOlMF4Goe0XWLcdQ8ISo5S+8hINCVUMUDv1oG1khcCaJ23szQz8s= X-Google-Smtp-Source: AGHT+IGMPQ9dJIjGP5P9kCYlzJvqtkW8nMIE5M35DaKFRXMNDeLKnqDZqpvxZpfruPGst+gPon/EuA== X-Received: by 2002:a05:600c:4e8c:b0:410:8d28:800f with SMTP id f12-20020a05600c4e8c00b004108d28800fmr782327wmq.9.1708727262323; Fri, 23 Feb 2024 14:27:42 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id bp4-20020a5d5a84000000b0033d47c6073esm4959045wrb.12.2024.02.23.14.27.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Feb 2024 14:27:41 -0800 (PST) Message-ID: Date: Fri, 23 Feb 2024 23:27:41 +0100 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] thermal/drivers/sun8i: Don't fail probe due to zone registration failure Content-Language: en-US To: Mark Brown , Vasily Khoruzhick , Yangtao Li , "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Hugh Dickins , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org References: <20240123-thermal-sun8i-registration-v3-1-3e5771b1bbdd@kernel.org> From: Daniel Lezcano In-Reply-To: <20240123-thermal-sun8i-registration-v3-1-3e5771b1bbdd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 24/01/2024 00:33, Mark Brown wrote: > Currently the sun8i thermal driver will fail to probe if any of the > thermal zones it is registering fails to register with the thermal core. > Since we currently do not define any trip points for the GPU thermal > zones on at least A64 or H5 this means that we have no thermal support > on these platforms: > > [ 1.698703] thermal_sys: Failed to find 'trips' node > [ 1.698707] thermal_sys: Failed to find trip points for thermal-sensor id=1 > > even though the main CPU thermal zone on both SoCs is fully configured. > This does not seem ideal, while we may not be able to use all the zones > it seems better to have those zones which are usable be operational. > Instead just carry on registering zones if we get any non-deferral > error, allowing use of those zones which are usable. > > This means that we also need to update the interrupt handler to not > attempt to notify the core for events on zones which we have not > registered, I didn't see an ability to mask individual interrupts and > I would expect that interrupts would still be indicated in the ISR even > if they were masked. > > Reviewed-by: Vasily Khoruzhick > Acked-by: Jernej Skrabec > Signed-off-by: Mark Brown > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog