Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp589149pxb; Thu, 23 Sep 2021 06:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+JjWZSlaaZo0Mmc1/mWDKlmRwOG5LwYW97nvl6GFxvKowMMaVQx1XCyGauSbUgkpWLIKg X-Received: by 2002:a92:cb11:: with SMTP id s17mr3850973ilo.90.1632404692491; Thu, 23 Sep 2021 06:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632404692; cv=none; d=google.com; s=arc-20160816; b=ekDWSexHaaJx/ts0CsMwYpR/uSZ/IWT0caMpvfhQB9i1c2dp9re9RKvQZYtlDeG/qK 5Mx0GCqRx8G8lt4+uvFFaxscv1rJauWl1j/OP+Xbh6+XfwZrLBGrUk6te83tIEyzSpdG Q4DRjg79GP+FP5FFbFtbJlyS3mcpHdNm25kgfuyBLO/C2uq97brsYtYSyfQkFtaUHBwR IIyeIHrtjEaj7obWe6H1GQoh3Fsyzd25Y3jMl690A6qrr9wqYov5CFyMQniJ4R5RWQbU haDOXb6/59eyC/2YJbRtWGu3Q5CQ+IH31Nru+chWCHN4XtHO9XC2jNSAHHdvLjKnLpzS eW8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4vvUL3e0KnaoXbHygff1j5G+RP+eVvUFadYzHbYM5yg=; b=B7IiG9f6xdFSM8Sx2BCh9+EjaIZTXjaonDF9vs/Kl9Czf0HmAbt9AmZU0CZBG3ggNp +bYqR002bgjSVDcr1A2e9Nhi8hUfPZj/S97J6MFx1dpGrwKM8UqPf/l0Tg/mwhzKPUGh bMPvWr1pLjdHUjzZqK89W6E2ZfphLt5sswb+iXoJuK/Rwz+/TOkCIpoSFFVxEpnLWLh9 MjgMz2Nj8UE4bM2MxOrJDJtTPW9o1WKSdReRwGg0VbYQ4il8QZWoVuOvSWJDPuTwOzD+ LczpvG+ajqewW4KLe0XLB7nUNBsLN8Po3M4GonseptU/ovFyR8W2KgnDA4188C7gJqJy yhvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bJ/9dqxY"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si5875526iom.65.2021.09.23.06.44.22; Thu, 23 Sep 2021 06:44:52 -0700 (PDT) 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=@linaro.org header.s=google header.b="bJ/9dqxY"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239161AbhIWNpF (ORCPT + 99 others); Thu, 23 Sep 2021 09:45:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232316AbhIWNpD (ORCPT ); Thu, 23 Sep 2021 09:45:03 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C858FC061756 for ; Thu, 23 Sep 2021 06:43:29 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id u18so17380589wrg.5 for ; Thu, 23 Sep 2021 06:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=4vvUL3e0KnaoXbHygff1j5G+RP+eVvUFadYzHbYM5yg=; b=bJ/9dqxYZ+yDeJTQt2kNS4H2m8IPsSvr9qIFTk33V/6+ygT7/5ahVdLEEZZSShC60o MiOTpF9eTEClXfv+gm+DVrZ0z+iec6EG+gat7i0Pq0zMXe54QqEzadUAZpOxEV9nqCOu gHIQ0ZGhiDk5ccIVm07xCff/D6+VdOO2mBmy7KHNqBcXdnHEk0HhkUyH+MgTJGhBcSOU hX/HkVPy1WmOzUtMSV8N1MdYMMEfYPQhqvXj0BJMBRU91ov0UAkO20oemTFKzBw0UhvV CctiqQi+Pr4MKa4Nq3NFkHA+ozl5LK8uqW4szRAzXmP2B44jyAurEvNnQvsbpmnGZnoi MzDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=4vvUL3e0KnaoXbHygff1j5G+RP+eVvUFadYzHbYM5yg=; b=1tLFAo5+rVUIJ4AlkEzFSLZJVsxcZ6pmHc7ryOPJHe5ueOTUiMU/KQHEy0V9mQNel+ 6J3nyUq77inRgTY//Gj9R4ccSx+/Y+9WgSQJG57S6l0DZ38jiV5XhKcrlni+VP6Rmc82 VcmazvPi9tCUk8YV6zmWdHP5C8V7FkR9Sof1yWQzjNcrcBw3Nv2dpnZUTwayX3eRFmNR FB9NbggXOvudlqo3ltz9rKhnXrc+BUg9qZIT2N02Wp07Za02Y5bns/qK4TXPcnoQvP/u BlxQholiyceN2JQF95K5U1saxVDqsT+oPRBRqe+vx4DLUFAGc/6ES/j6l/kyp24UYiz6 CIHQ== X-Gm-Message-State: AOAM531mpDyNAYmH2ShCSIG1wG5N2na9ga0FkamzykWpywNR8xeuErZI KerkbMVmKas8hfBpgMzJTyJP0w== X-Received: by 2002:a5d:5042:: with SMTP id h2mr5145969wrt.57.1632404607073; Thu, 23 Sep 2021 06:43:27 -0700 (PDT) Received: from google.com ([95.148.6.233]) by smtp.gmail.com with ESMTPSA id a3sm5435583wrt.28.2021.09.23.06.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 06:43:26 -0700 (PDT) Date: Thu, 23 Sep 2021 14:43:24 +0100 From: Lee Jones To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Daniel Thompson , Jingoo Han , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] backlight: propagate errors from get_brightness() Message-ID: References: <20210907124751.6404-1-linux@weissschuh.net> <4bb3051e-2550-43c3-afed-d4b00850126e@t-8ch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4bb3051e-2550-43c3-afed-d4b00850126e@t-8ch.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Sep 2021, Thomas Weißschuh wrote: > On 2021-09-23T10:48+0100, Lee Jones wrote: > > On Tue, 07 Sep 2021, Thomas Weißschuh wrote: > > > > > backlight.h documents "struct backlight_ops->get_brightness()" to return > > > a negative errno on failure. > > > So far these errors have not been handled in the backlight core. > > > This leads to negative values being exposed through sysfs although only > > > positive values are documented to be reported. > > > > > > Signed-off-by: Thomas Weißschuh > > > --- > > > > > > v1: https://lore.kernel.org/dri-devel/20210906215525.15418-1-linux@weissschuh.net/ > > > > > > v1 -> v2: > > > * use dev_err() instead of dev_warn() (Daniel Thompson) > > > * Finish logging format string with newline (Daniel Thompson) > > > * Log errno via dedicated error pointer format (Daniel Thompson) > > > > > > drivers/video/backlight/backlight.c | 22 +++++++++++++++++----- > > > 1 file changed, 17 insertions(+), 5 deletions(-) > > > > Applied, thanks. > > Hi Lee, > > thanks! > > Also I'm sorry about my nagging before. No worries. > I was not aware you were on vacation and saw you respond to other mails. They were in the queue before this one. I had hundreds of emails to get through on my return! -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog