Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13315702rwl; Wed, 4 Jan 2023 06:35:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXvyySP3biwR6AYqQx3KZ1l5OuurTnI2By0acZgJqvk5Dnvy3ji0y7iqQWZ8mXDOF3K1eVQQ X-Received: by 2002:a05:6a20:4e04:b0:9d:efbf:786a with SMTP id gk4-20020a056a204e0400b0009defbf786amr53847635pzb.31.1672842929942; Wed, 04 Jan 2023 06:35:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672842929; cv=none; d=google.com; s=arc-20160816; b=0FFqAGykXwfsS185aIFJS+aOkVAixAdEMXPFmXIiVPBr1Zo2W5FRDtcxJlN0oO/+Fc r6Uc35Zmjdnzd58+H+ZcTKeYN4WBOV2r3xhuMwMuVuPs0aDS7aBv9rFQtwJjfYaQKmZ9 yzjFWRJirRtsP/xCZ+EO/wVbdgl9aodfZ2eeUG1KE7ynlDnAzWpInZ4DdCswsWV/aJzO cxRzny1QSnn1JgiYAkpKUTnVSnBY7lxLvFyRuxfMQQGFtwUnkJPIKSBj9mTl4iGDAifA qVMwEswjcQX9WDhfwij4dXzmSqq+6KMhwpmZaujT4I9BygUtKuxq7i6DVB3kInMLKG0/ I/oQ== 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=/eUwWQ15d7VUdEIuD8uF1iyq67VohAjYoXxB5W/oBnA=; b=bR2gTQOS3FZBkOHjxoIljANq3MD5+BrbUTyLEE0PYGaOx+D62gaTpYDK5OUV7nfF57 Ydte30en5wq40TcrKgueVR7Q3qu60c7tjetu0NJ6IZZBVSbjB4ecNmv7lBr8qgrp7l+U aMS8RkAfrd9BM2jL1pjvnoCtLSfBG3r9HBXPq/Ghu1iXZkwTYYjZBQ5/h7WR4jwQgMJv /VXNicJvfRCyJaQcrc3SPCQijxeSmPY1tbewz+TO/Y6ab9xZichTynSv+8/KN8wfGr3K ljRE4ygqfrjH8/JlKtw1PB5Mi6oEwy8CKpmagL7hv9hK4udVfJdi9GPdDoppjMjX7s7V 4xBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EKnYONBu; 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 x20-20020a170902821400b0016d2e8c2233si33074957pln.333.2023.01.04.06.35.21; Wed, 04 Jan 2023 06:35:29 -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=EKnYONBu; 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 S239173AbjADOYk (ORCPT + 58 others); Wed, 4 Jan 2023 09:24:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234370AbjADOYi (ORCPT ); Wed, 4 Jan 2023 09:24:38 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5922938AE7; Wed, 4 Jan 2023 06:24:36 -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 dfw.source.kernel.org (Postfix) with ESMTPS id EA31B6174F; Wed, 4 Jan 2023 14:24:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94FD8C433EF; Wed, 4 Jan 2023 14:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672842275; bh=Tvw/x+3j2FJAWZR3JbN82C07+AuFNwia8+xecuq+n7o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EKnYONBubZJiYy6kZ8vRWQ/SbAeQv9KoLLlPxd9bWLvQIoTy1BlvGVcZlAy3fwaq8 z5bzWeviSu+dbwbSPiCg8TWN1h0dUcAlNJpnl9nNdqiPO1P5fau758TiuvtSspQ98D +vJit1TLPZwQjmk7e5vdRuAVu6loCrA1Nt8mRzJzB6JeDn/eQSVu4ZP5/mXiii59Jx Tnrkor/SEYD3++iM14vWT5Tm4d0ZoUHa3B6Ke/0SXLkkd8cakxD5yFF7ZnDs4FOsD9 lWCCyBPzRvzfU19lmLdqe6Hp77AJmMEaF40AShtrNdVnsYQwMc7zXYnsBy3P6Pdj/B usLzYJDtDbNRQ== Date: Wed, 4 Jan 2023 14:24:30 +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> <20230102162227.523d2a73@md1za8fc.ad001.siemens.net> <20230103212059.5c80fecb@md1za8fc.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230103212059.5c80fecb@md1za8fc.ad001.siemens.net> 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 Tue, 03 Jan 2023, Henning Schild wrote: > Am Mon, 2 Jan 2023 16:22:27 +0100 > schrieb Henning Schild : > > > Am Fri, 23 Dec 2022 11:58:13 +0000 > > schrieb Lee Jones : > > > > > 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 > > > > --- > > > > > > What happened in versions 1 through 3? Please provide a > > > change-log. > > > > Not too much really, but i will write a changelog and cover letter > > when sending again. Mostly commit message stuff and later a rebase. > > Lee please let me know if you insist on that changelog, in which case i > would send that same patch again with a cover-letter that will carry a > not too spectacular changelog. > > Or get back on the rest of what i wrote earlier, maybe we need another > version of the patch and not just the same one again with only a > changelog added. The change-log is not the issue, and you don't need to provide a cover-letter for a single-patch set. The issue is that this 'solution' is a hack, built on a hack, built on a hack. There shouldn't be a requirement to check Kconfig options from this driver. In an ideal world the thread handling the -EPROBE_DEFER would not create spurious logs to trouble anyone. What is it that's writing those logs? A User or Kernel Space thread? Dependencies are almost universally controlled with Kconfig 'depends', which is how this problem should really be solved. Taking into consideration the large backlog (nearly 100) of reviews I need to do and the fact that there is already a precedent for this behaviour inside this file, I'm tempted to apply it; however, I shall not be doing so without giving myself (and others) a little more time to think it over. -- Lee Jones [李琼斯]