Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7019950rwr; Tue, 2 May 2023 08:26:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mCrJ8tzfR9XKPHFG8fof5aD1jRV3gU25dMDW+ik6un/rMi+OmgzKdoY2QWqEc+c9+Iqpt X-Received: by 2002:a05:6a21:3281:b0:f1:fa94:ee65 with SMTP id yt1-20020a056a21328100b000f1fa94ee65mr23681145pzb.4.1683041201017; Tue, 02 May 2023 08:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683041200; cv=none; d=google.com; s=arc-20160816; b=ZN2jPMFadlubLlX+oMX9VT2nhGY57dYmoJuecGEYD0P6CRUbn264LS8HoH7CRTnB+m Yh2E3+3vYaS5GWwILU9wXG2dk5FXAVe96Qn9416STHfyKzFQ6ncU13y8LT6szJlb5zW/ jUGYpa3MwMIqPja4hdAXitRzv28SbE7Zvflz3laZ78RyJ5/9o8Lc0hP1H7huIgfZ+Sot NhiM97SRN7ghuEv3h/yPWwYxowEyI3Z275ja+VD4Oj4mHFP+fsiZbrF97tQNU+Z7ZpnU oinDCwcsJyfOq/82LvpnqkLba3mOKlZS4PiWNeaTKoZxq/3VNlOOrFKZ+Hb76A/zFcNC ZYrg== 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=JRgKinXrn4xVf/pmbNhzY/SDElnRn5VFkSigcOAs5hI=; b=sYBxDs+uatfY0DHxQwRWW1jOZxLrvHOjgJpVtkiKIXzfzIkgPk3hYQ4u6zEdLe36nF J0pXzdH2htim7jav/ghNzCl2Kc2/nEhWct0xKByalpmb7FJczuvECCzAIJRSc0dIfySE 2IMLxoRIn585rmuAaqUyhROmMzOuPyWVIeey7cBkGyE7oDR5TGOacK2m9VGVub8zYW3a hX3h60Xw5BiQiogIOV2EloJM2Y0z6JJxrJqa9eFh8nmQsei2tGgC/Kz9/8UYQUmRzoNn +9CV9bvOBVf+DCggbxL1eqHPmHfbIWvm6DUsfFqb+yWQgyeT0ekSapSD8R6Kb2DIP8oZ RXLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=TJEg+z4W; 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 n7-20020a6543c7000000b00528948f640bsi14031916pgp.12.2023.05.02.08.26.27; Tue, 02 May 2023 08:26:40 -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=TJEg+z4W; 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 S234584AbjEBPY5 (ORCPT + 99 others); Tue, 2 May 2023 11:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234555AbjEBPYs (ORCPT ); Tue, 2 May 2023 11:24:48 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 974C2D7; Tue, 2 May 2023 08:24:47 -0700 (PDT) Received: from g550jk.localnet (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 770B8C76A8; Tue, 2 May 2023 15:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1683041085; bh=I4YH0QUgucwT4uc2YEZJwhH8Sc7vUD+EOfEVy1pje6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TJEg+z4W2c402E+BIoIKKoPkijwmwHPsPKWhrXs0GUDZ0zsFdZ4p7acjJtX38lYwE TEQbmNXprxLn1/p6gGejI+iD71rlqCEkmN6HNuypI3kyS5//fLkH6LLt50Ypc7IbZW IcOklYrjDGto3mpf6AEGQrkARMhHum6umHdZ7m7Y= From: Luca Weiss To: Brian Masney , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Sebastian Reichel , Andy Gross , Bjorn Andersson , 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: Tue, 02 May 2023 17:24:44 +0200 Message-ID: <45489141.fMDQidcC6G@z3ntu.xyz> In-Reply-To: <8a54d0ec-8a22-9ffd-43a4-55da988fbeb1@linaro.org> References: <20230427-hammerhead-vibra-v1-0-e87eeb94da51@z3ntu.xyz> <8250064.NyiUUSuA9g@z3ntu.xyz> <8a54d0ec-8a22-9ffd-43a4-55da988fbeb1@linaro.org> 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 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 Dienstag, 2. Mai 2023 12:39:10 CEST Konrad Dybcio wrote: > On 28.04.2023 18:06, Luca Weiss wrote: > > 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; > >>> + } > >>> + > > Looks like your email client messes with the replies.. perhaps it tries > to round them to n characters forcefully? Quite possible, I'm using KMail with Options -> Wordwrap turned on, otherwise I have to manually wrap everything but with this on there doesn't seem to be a way to get over that limit, even when posting links etc - or when quoting existing text. Regards Luca > > Konrad > > >> 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!