Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6655133rwr; Tue, 2 May 2023 03:44:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YON7A+d/yrvCF9u1J+qxyJ3xIHilp+SGNXijtWhIBuNhLVv5IRBs6xiTYzNFr5shuA2qi X-Received: by 2002:a05:6a00:22d3:b0:63b:89a2:d624 with SMTP id f19-20020a056a0022d300b0063b89a2d624mr26556780pfj.12.1683024286197; Tue, 02 May 2023 03:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683024286; cv=none; d=google.com; s=arc-20160816; b=B553mmji5Crp8q49kLtUsJSAYwnSaS269FicDYDqhoVmsYzVxz+J90nkSuUxCEY828 MoPAMhY0HucDOf/TrgkLLxOWPAfnRCq0DdObjSV3zlceDv3bBXJ4wZ2pTHcLH8w4AxR5 zmNKVgD1rG/n3WvdidGh301/vvJZ1AdHiI+MPDyJh9g8x96PMbwSgFWykqLVDz2huXLC ZjDFB2k+ZNpxg05PKrNptIviDKfKGUVuvelNWTDXnyXx5Iu0I/81yCyd8vADp8pP7O3Y H8GhOVHw+pFOhKfyKNySErknQhNrkuchEf64Lr7v/qnj9n62gT6wkBUkvsQX2yVmjF6j FASw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lfApgfkvfKa0zHY7COCQ25fltZLWlP80il9qIf2gk38=; b=kyA6jQ45CdBH3lMdBzpcKcntn1lh3tj7uJRALfOfKicfj/g0b/U3kqsphU7QbbAlAL 5Fba4Lkw041FjzRmgxM/3BQe2dPoWW28LHO2vJipXFbRcDf31ooHiC2II44mzTYtT/X1 ZpVqGOoTLSlVefVGoOjXXQILq9OZGTWcXw4xV2RScyb5oiophyPa6v+8+Xld2pJllqlR gZfdbEVdeBRpJ5f/OR8S8Ey3AIIgeUvGr8vkjrg7boseuLL551c1ZyBcqWUBeWw0yPGb V10JpChXs07zVhsU2HbgVVxw8JbF9ckPNQINr+8U7II//At6HThZ4D69yIDBGfv1wz9a iXoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="i/VabHSi"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020a63e507000000b005285958c85bsi19985318pgh.807.2023.05.02.03.44.34; Tue, 02 May 2023 03:44:46 -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=@linaro.org header.s=google header.b="i/VabHSi"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233618AbjEBKjr (ORCPT + 99 others); Tue, 2 May 2023 06:39:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233711AbjEBKjR (ORCPT ); Tue, 2 May 2023 06:39:17 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EBFB4EDB for ; Tue, 2 May 2023 03:39:14 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f00d41df22so27393591e87.1 for ; Tue, 02 May 2023 03:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683023953; x=1685615953; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=lfApgfkvfKa0zHY7COCQ25fltZLWlP80il9qIf2gk38=; b=i/VabHSiZcXg+qtH7T6Zx/wUpNCbz5CC7Y/wzTiHYu4jVuPlfKQPFc3Iq2UR0mc/cf 3XF3U8tNh+1Keb3TKi0Awm4wfDctOlRxXJQ0AAnHTWymY34R+PYWcOSE7WZq8y9K5XN+ QqfRHhdxpkkv45U9C2cZU96bjMveYgTmEWWcBhurZCAKtonLtUHz1rsTOhVLeE11afbF 28H/YsGYHl8nwIKeCqjkGkUO51rMlDez/ZwMCUjhKqjuiQ39UVJi5aeWs/jEOyT5fcxR t0pdes+teZYn40Uu1dfokTvAxReMsY10GxF5q0e/LXS+nvl06gQpaoLshwOVmCSzJJH+ 28fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683023953; x=1685615953; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lfApgfkvfKa0zHY7COCQ25fltZLWlP80il9qIf2gk38=; b=UJ8vpAFOXBLfId8LBFGtNvDsn8IW/9W2GHhNuyUDveoR7Zb/ntcCQWIIJBKg3m1Tyz ewfVNYaNfnGyFFPHK/WkwhozbKH3AEQKGw7Kn4ed6zKOYU4ewtW9JzW4+JEFZccxv6DA RSkyWIOum7fg1DB3Lh8s2WYcZjQmwfMB9S794pC545qvfpn4f8NvMT3qu20dnfWb+BW9 Qhu2GRX59vFOHMIt3QOFfsjTX61QuzeWNVxFJdnisr5LpZcw0P6rAtRiZVf08R6WItZi zhaIlXeqmCbvTvrVBeZpQ+/eqeShwmJWZEULqo1nJvFmlSjuBBLXaoaWQdMljLfMVFL5 lpsA== X-Gm-Message-State: AC+VfDxNtFIkR8PAjLxIOjcm69ykWm2ANY+/dn2lsumj+iJ0qvQiRbBI GDlg6uAwVENIt5Q253G56SmQXQ== X-Received: by 2002:ac2:44a2:0:b0:4ec:9310:ad4e with SMTP id c2-20020ac244a2000000b004ec9310ad4emr4833335lfm.33.1683023952816; Tue, 02 May 2023 03:39:12 -0700 (PDT) Received: from [192.168.1.101] (abyl248.neoplus.adsl.tpnet.pl. [83.9.31.248]) by smtp.gmail.com with ESMTPSA id w3-20020ac254a3000000b004f0c9120a41sm1349688lfk.214.2023.05.02.03.39.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 May 2023 03:39:12 -0700 (PDT) Message-ID: <8a54d0ec-8a22-9ffd-43a4-55da988fbeb1@linaro.org> Date: Tue, 2 May 2023 12:39:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 3/4] Input: pwm-vibra - add support for enable GPIO Content-Language: en-US To: Luca Weiss , 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 , Brian Masney , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20230427-hammerhead-vibra-v1-0-e87eeb94da51@z3ntu.xyz> <20230427-hammerhead-vibra-v1-3-e87eeb94da51@z3ntu.xyz> <8250064.NyiUUSuA9g@z3ntu.xyz> From: Konrad Dybcio In-Reply-To: <8250064.NyiUUSuA9g@z3ntu.xyz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 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? 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! > >