Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2349285rwr; Fri, 28 Apr 2023 09:10:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ63rQfCLTIMXhnKOFtKgaZsPu3A2uvvXAeGrJ0Yuf/aOmoF++baFplMrYuNSiEq5s8TJjUV X-Received: by 2002:a05:6a20:43a1:b0:ee:73bf:425d with SMTP id i33-20020a056a2043a100b000ee73bf425dmr5856290pzl.39.1682698218405; Fri, 28 Apr 2023 09:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682698218; cv=none; d=google.com; s=arc-20160816; b=GJJJSbWcncGe1qpQtWRF32sb2LMRxABawfPHa3LA+7DWYRfrMGjZFBPHzibH+Wg+PT j0rbBToMOxVVdZHny4NxcuDosRE3BdJerNamEhmlVQi4jIjS/BRA6EhwZnguv45X3L90 ERUkOiExseGwUBvpi709llD4VLNQPISEh66Qm3I1L8c5PajmxmSV8kknTX2fXACI08Xj y0FitRhDcWFcPHwa3bSlkOBVgGSnIqGlZkudrZC8QasWRHPDf1dYtdISsbqcvzGb7LGr P8KlM6WN9uLehopPzH1cX55IK6XRa/r9S+skMStLyLkhelV24hVt54f8VQnU8GETXaiT CsgA== 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=+HL4KAymGBMqMrHBLsuQhgtxSXIJ0s2eaDBfHUn3g8I=; b=Yjgx0vB66Tfx7nCcX6/W8YOg1o/lF5ENUH/k6A7PxjYfB9A8UTvfBX9jYgUC+YPSCF ewWEpIb6H5ZWEZVUAluvnxQfrZKh1RC/idE4DW+juwEvui/0jsFfqGlVnogg0Oykz6vo Ev30d/v01a82x9eSd6SYcWyP8f+RbBWl0TEPimdYcM/qeKn3hVoDSSZ0HXxKZeeWPUBt STqy6n/8mV2/Gzb7gppcB0yS5LYx/nJwIlw12Za0vQDYNqMgnNr4/5IOKXkDzlYbRtqe PvXlGHFCSDtI/+KmVWTK/LRJsLnL5S4Y4wkBRdFhO7J8KFbE3Lxu1qUPfNPdh3TtxbUA EslQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=YdKQkX4g; 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=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i23-20020a63d457000000b00513dd391d42si21937117pgj.657.2023.04.28.09.10.03; Fri, 28 Apr 2023 09:10:18 -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=@z3ntu.xyz header.s=z3ntu header.b=YdKQkX4g; 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=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345535AbjD1QHC (ORCPT + 99 others); Fri, 28 Apr 2023 12:07:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbjD1QHA (ORCPT ); Fri, 28 Apr 2023 12:07:00 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 127375BBB; Fri, 28 Apr 2023 09:06:52 -0700 (PDT) Received: from g550jk.localnet (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 185D6C5EDB; Fri, 28 Apr 2023 16:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1682697981; bh=H2ZopAaOaipo4s98rSRyLSqJBKSYIs1cRJ7qufNhEFQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YdKQkX4gT87XWqXdCdKZkie+EnWmT6j18T9qh4Xix6woowAR6puqI4OtJE8/ASwr6 LSlgtfQvaTxHMZAQyI81kwec9hCdcS/8PCq+wcVwe9gCjc9HD4GFpnAcHk1SOr/G97 LCWC15LqIZAYZlzy2mmFhynXPQvo46tDjNpa5dMM= From: Luca Weiss To: Brian Masney Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Sebastian Reichel , Andy Gross , Bjorn Andersson , Konrad Dybcio , Brian Masney , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 3/4] Input: pwm-vibra - add support for enable GPIO Date: Fri, 28 Apr 2023 18:06:20 +0200 Message-ID: <8250064.NyiUUSuA9g@z3ntu.xyz> In-Reply-To: References: <20230427-hammerhead-vibra-v1-0-e87eeb94da51@z3ntu.xyz> <20230427-hammerhead-vibra-v1-3-e87eeb94da51@z3ntu.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Freitag, 28. April 2023 01:29:27 CEST Brian Masney wrote: > On Thu, Apr 27, 2023 at 10:34:28PM +0200, Luca Weiss wrote: > > Some pwm vibrators have a dedicated enable GPIO that needs to be set > > high so that the vibrator works. Add support for that optionally. > > > > Signed-off-by: Luca Weiss > > Hi Luca, > > Thank you for picking up this work! > > > + vibrator->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", > > + GPIOD_OUT_LOW); > > + err = PTR_ERR_OR_ZERO(vibrator->enable_gpio); > > + if (err) { > > + if (err != -EPROBE_DEFER) > > + dev_err(&pdev->dev, "Failed to request enable gpio: %d\n", > > + err); > > + return err; > > + } > > + > > Take a look at dev_err_probe() to remove the -EPROBE_DEFER check. The input subsystem doesn't like dev_err_probe for some reason, you should quickly find examples of that being rejected on the mailing list (or see "git grep dev_err_probe drivers/input/") > > With that fixed: > > Reviewed-by: Brian Masney Thanks for the reviews!