Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1746805imw; Tue, 5 Jul 2022 14:53:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tXJUTFEgXE3NB+Q/k5faOgOOcQdfqn/gQwHszlYs0dx7E9JEYRMrTr/O62IVJ01UmgbCAy X-Received: by 2002:a17:906:9bef:b0:72a:e6c3:e1fc with SMTP id de47-20020a1709069bef00b0072ae6c3e1fcmr4774131ejc.453.1657058029582; Tue, 05 Jul 2022 14:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657058029; cv=none; d=google.com; s=arc-20160816; b=mSHfP3rD8StFDXS48bCKKpeXgxLL6oauiIbn8oP/TWOR9Zshu7Y8hHTJUtJrb0XR1A R7BIVWZS8hhTL6sig7X05Q3tm+TnSLO/8FVbti2IhpIfrdKizZN20e64oOAcy63x2N1l 5j7LhTkv/GSJ+XpJKhdnSL0sp+jov+0yGsbNYkFekUJmB4BS06JfcCbaqxYXTHlxMegS o+QH5YgT1D0sYAkxgQjDXaZai8U/AJbOig2DmjDhzCNEhbigsREJ86LRSL7FqHJdHnUk m/LzrLB15rGm6EQ6LLdlkogTdyMj57c3yNiU375cBcsgZpzHmcU8X/wv+964CTSGZ+XT G2YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bQMwaeYKMT6usnwDyo75UwU6twU1bHQlELRjvpkCaBs=; b=sdbyr3A4ayGu1iHROy6Jt7AazhEaoLzmlXPByTejM3p6COg6GFze5p7mFewkgiFroY CKf+wS+uDGQy99dWQ4YYbMN8r3Dz7eFwh924gybB/A3sQITiOGRYDhszakgpMc7W72iE zF+64r2YbH/PWD97w+4BNey364ZAu54KzjBswIfzALQckqmJ3lO6ucTPxQ5WcumxEkyJ /P+ikWA+twwzn21IV3eqL8loJQt42yYuvFp+XQleYM0G7HNy7c972Ur4/tn3ckPDR4WX YKl1wH6FTTfabubVLfPVmHhiZgg4v9bLl3P8pWifpISdyUH6RHHpUs5Ln+1wwI4H0Q3G JNUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=lK1lQTBf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho19-20020a1709070e9300b0071216d32d8dsi18173819ejc.673.2022.07.05.14.53.24; Tue, 05 Jul 2022 14:53:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=lK1lQTBf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232259AbiGEVBw (ORCPT + 99 others); Tue, 5 Jul 2022 17:01:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbiGEVBt (ORCPT ); Tue, 5 Jul 2022 17:01:49 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 200A6E76 for ; Tue, 5 Jul 2022 14:01:49 -0700 (PDT) Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 593A742442 for ; Tue, 5 Jul 2022 21:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1657054907; bh=bQMwaeYKMT6usnwDyo75UwU6twU1bHQlELRjvpkCaBs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lK1lQTBf8Tbaa1/LDM+pOCGZOUWU0jDHdZUI8aomWLnlYPFkws2WHrFbJzmg7vrL/ Uo6Fdp5RdJ/9PVssQQTRd/XJZaGIy6v59KxeSPAtoMEdkb1gogVEdL9JPzQsy8Mb36 qVXcw3CRVe2nfP9r9Gdn6ho0CwnrK0AwPcR68p2xnreM4TmxunH8Xdf27KPHIUG9yc HERR+Uts/3wm1dGXYxEzW++XElnWNUBXKYxij4Pt6S357pyPMfdqBcY5Iyv1nkT9kQ yZTokfs+ChLQ90BPp+sBMy7mjKq5illHZtVY7yQDzRaBMYpkv2d6sqtJ9b10MOBh9n iNYfdbx0agCkA== Received: by mail-wm1-f69.google.com with SMTP id n18-20020a05600c501200b003a050cc39a0so5737532wmr.7 for ; Tue, 05 Jul 2022 14:01:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bQMwaeYKMT6usnwDyo75UwU6twU1bHQlELRjvpkCaBs=; b=ofZcEDKG3PJOMXZEwlvsGA9aCmlpyRMOk33bZ+NNSwR90QH40QrwGX8LoEyUPWkHz0 56kAQ3oRRnGq4sJ0oTxpNDBXr2FIfUeryOBhVOwobEbvDsamLI+ATEgQrNQLlnuIARWo vqek7EB/2ce3X7I4qptpsX2/ymfhOrDEyIAb7LvHWHlB9zfqkJmP3Tw81Cdx9mnBA+Ja 1yD2r1KYc8kJRo7WcfL8x/n956IgY0+G0Iv+sDR9BcHEn46QNCaRLyBg1vksPJiJupSG aH0fvlt+re34gaN8Nousf1HL6yNXoptLxxSKo9FqUajmJazPPw8vCPb/BturhfJKoA8S EZlA== X-Gm-Message-State: AJIora9BuDgtG6JLXdzsu7RRq9cdoM2A70tQ//D4xmd0mXDo//FQI7/S yJHZvH140dcdJM6Zqob54hQg74HXzeYpn0W21uf6vjlPns79OnhM85dgPfaKvKiP4CoxMQAuqui y9s5JyJSWiYX4N2TpTQOKPPXX+nM/Wa7bgny2xYEu5Q== X-Received: by 2002:a05:600c:3caa:b0:394:8fb8:716 with SMTP id bg42-20020a05600c3caa00b003948fb80716mr39682333wmb.105.1657054906775; Tue, 05 Jul 2022 14:01:46 -0700 (PDT) X-Received: by 2002:a05:600c:3caa:b0:394:8fb8:716 with SMTP id bg42-20020a05600c3caa00b003948fb80716mr39682293wmb.105.1657054906543; Tue, 05 Jul 2022 14:01:46 -0700 (PDT) Received: from stitch.. (80.71.140.73.ipv4.parknet.dk. [80.71.140.73]) by smtp.gmail.com with ESMTPSA id r15-20020a0560001b8f00b0021d74906683sm2517667wru.28.2022.07.05.14.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:01:46 -0700 (PDT) From: Emil Renner Berthing To: linux-kernel@vger.kernel.org Cc: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Vincent Pelletier , Bin Meng , Aurelien Jarno , Ron Economos , Qiu Wenbo , Geert Uytterhoeven , Stephen L Arnold , Jianlong Huang , Mark Kettenis , Sven Schwermer , Andy Shevchenko , David Abdurachmanov , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v1 1/4] leds: pwm-multicolor: Don't show -EPROBE_DEFER as errors Date: Tue, 5 Jul 2022 23:01:40 +0200 Message-Id: <20220705210143.315151-2-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705210143.315151-1-emil.renner.berthing@canonical.com> References: <20220705210143.315151-1-emil.renner.berthing@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When requesting a PWM it might return -EPROBE_DEFER if it hasn't probed yet. This is not an error, so just propagate the -EPROBE_DEFER without logging anything. There is already dev_err_probe for exactly this situation. Fixes: 9fa2762110dd ("leds: Add PWM multicolor driver") Signed-off-by: Emil Renner Berthing --- drivers/leds/rgb/leds-pwm-multicolor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/leds/rgb/leds-pwm-multicolor.c b/drivers/leds/rgb/leds-pwm-multicolor.c index 45e38708ecb1..eb67b89d28e9 100644 --- a/drivers/leds/rgb/leds-pwm-multicolor.c +++ b/drivers/leds/rgb/leds-pwm-multicolor.c @@ -72,8 +72,7 @@ static int iterate_subleds(struct device *dev, struct pwm_mc_led *priv, pwmled = &priv->leds[priv->mc_cdev.num_colors]; pwmled->pwm = devm_fwnode_pwm_get(dev, fwnode, NULL); if (IS_ERR(pwmled->pwm)) { - ret = PTR_ERR(pwmled->pwm); - dev_err(dev, "unable to request PWM: %d\n", ret); + ret = dev_err_probe(dev, PTR_ERR(pwmled->pwm), "unable to request PWM\n"); goto release_fwnode; } pwm_init_state(pwmled->pwm, &pwmled->state); -- 2.37.0