Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1646841rwb; Thu, 19 Jan 2023 13:31:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXsnWMMbXMDV2yeQic0C9hCeZh93q0I9NUZbMWeTMbvBiJ6zO4GYlQnfBMQWTtB6CaMyS3s/ X-Received: by 2002:a17:902:edc5:b0:189:9e91:762e with SMTP id q5-20020a170902edc500b001899e91762emr13724685plk.57.1674163918797; Thu, 19 Jan 2023 13:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674163918; cv=none; d=google.com; s=arc-20160816; b=MA7Y9mTmI+hPArWrWPIl9lhth4GVAWtOcWisgAGClBUishXQ2OQbPnEyqXHAQPyRHH O/AD9+kENhB2eUXGHLksr2YSwyA9f9UBDmlgQWWt9KSj92Fw6Dfn04IDuPxQImtSxrTG jqRU8H8JY3HaXhwx3Qfofn7StHrIJii2fkJImchvYeSzGq9uWtWoUzvmeyoXSnXv0Dlu dz+xyuclXi3/P39JMK4vmMTrjS8cO2pU2IRs+2NwBs15r2DW0Y1b7woO36PkhwyJnTVK ABvSqMzjivVS89j3zGxyl4zorqOK52rLtGu6gUIa4NVwu2VKMcYEHIGomcVokrtq1rOY FqaA== 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=Ily7Xvzjvw4CGzk+N3cZpIDK6xIZqBm1i5WnGmmxlPs=; b=KxEP/S3z0gVH+JVuCcjxerlwVds4ZXmHhWV7UbpuVK2vsz4lBJeIu6T5ENMnN2viEa DGLWh88R5dR2g1Yp8xTnryKEALZaxu+Q9GtIJs1ka8V/lX8Q8rkkXucZevxzIKD+63cX GwuLOoXvH0GunSK3l0/h03Tt6tX0qU+deuclHw/iJAZsiazna1VAX90gM4yKKkYHtLy0 xHMWfwXgawUO300jgRVcjncD+wkRHs4gMQnbcWwxSOzsc33ETcTxPtM6tlJWT3L/0Zba qoyWVUdlA63HBPW4/xIlz3D9qJDjG/ieTepCsg/G3CpGh/EzOlz3kbJ07hrxtr8bsFWe wWeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ub1SDnk2; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170902d31200b001926fcc7389si36796530plc.424.2023.01.19.13.31.52; Thu, 19 Jan 2023 13:31:58 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=Ub1SDnk2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229813AbjASVKb (ORCPT + 46 others); Thu, 19 Jan 2023 16:10:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjASVJ3 (ORCPT ); Thu, 19 Jan 2023 16:09:29 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 202D2A1010; Thu, 19 Jan 2023 13:02:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 7C9C6CE25B1; Thu, 19 Jan 2023 21:02:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5F97C433F0; Thu, 19 Jan 2023 21:02:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674162165; bh=Gl+Z25/Z/2UsEtuRKbFkcBEiWO+If4DwRr3vxCyOQNo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ub1SDnk2kwxWunkh+eJXGbifSHZ2fNMd9GrSFrsjepV7ErDo4pp9WzqkJhNcKW0jM QfKHsmHnnDwO7avjf9WZLShAspoOqWSY335WaR6JRqq4REnBuJ01LoxauEceqzOcej o67J4+AccHWF+g51KnyJ9Z6IZZ+i6BZq60AmO4Y5lJkizFeags2gApN1R+ogPq3vfV 0MGKdwyAb67KwPvt2lX2lGEWXrPbY6IDVKl0kqg5yUvcMnCsNfUH9vp4bWjK0OFGBQ bx8L/l8V+C8sH823lgC/Jw3cuhU3Xsnu1G5tV8w/siWI9UnK6jCcmzM3vDypQM0BD7 MLUh78Ttm+Mmw== Date: Thu, 19 Jan 2023 21:02:40 +0000 From: Lee Jones To: Henning Schild Cc: Andy Shevchenko , Pavel Machek , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v4] leds: simatic-ipc-leds-gpio: make sure we have the GPIO providing driver Message-ID: References: <20221007153323.1326-1-henning.schild@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221007153323.1326-1-henning.schild@siemens.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Fri, 07 Oct 2022, Henning Schild wrote: > If we register a "leds-gpio" platform device for GPIO pins that do not > exist we get a -EPROBE_DEFER and the probe will be tried again later. > If there is no driver to provide that pin we will poll forever and also > create a lot of log messages. > > So check if that GPIO driver is configured, if so it will come up > eventually. If not, we exit our probe function early and do not even > bother registering the "leds-gpio". This method was chosen over "Kconfig > depends" since this way we can add support for more devices and GPIO > backends more easily without "depends":ing on all GPIO backends. > > Fixes: a6c80bec3c93 ("leds: simatic-ipc-leds-gpio: Add GPIO version of Siemens driver") > Reviewed-by: Andy Shevchenko > Signed-off-by: Henning Schild > --- > drivers/leds/simple/simatic-ipc-leds-gpio.c | 2 ++ > 1 file changed, 2 insertions(+) FYI: I'm going to try my best not to take another one like this. Please try to improve the whole situation for you next submission. Applied, thanks. -- Lee Jones [李琼斯]