Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1340981rwr; Thu, 27 Apr 2023 16:31:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7frEVTG//Id6UxLKc4y6nT3laO6aVrrwWNOSeqWlHbzRRdS1AN6K+7F8NTgyBFaU67laLk X-Received: by 2002:a17:90b:390d:b0:24b:3123:8dd8 with SMTP id ob13-20020a17090b390d00b0024b31238dd8mr3487215pjb.27.1682638296738; Thu, 27 Apr 2023 16:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682638296; cv=none; d=google.com; s=arc-20160816; b=m0pSEciyX+fTDKWrn17y/zGezRySThPZ6d/SVDwFIla2e9II7pfnOtaieYsNQlVmM3 9AiT/2/iXZ8ZDJDBwz05mwfm0xUo0aFpAMAhWZoURD9a5jjsINTGV9y0wxA2EV3VxGSl d+HtJllY/XpLIy1WinvNWUh/q8SqOtPGx89Yt3iI+oq45T4zVtLg35HiFh1hS09yjvus I8Ox8CQk/0cegDSRox/ULfG3hBoZpJiyNBw2ni9ftVUeFazJ1GT5F07bfCvqg0XFk1sw T4GjhSP218OzPN1uwNM0A7QsIAVSuvh0ScFdc/VWZoYFE2CwETtC7Yj/+CFPD/t7iRUG aulw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vcFglKyPAkh5dZyTCVBzEYjy5B4nwQaUU2WoJAnQQj8=; b=stFChbICx6tryiapGCLa/b9WRyzkDWxBU9BRb8lFxguG/SEfOlQOcLfXhoFXCa0Cvf ysr/xxLHRP0/8Jb47wCcAXXQDaTezdoV1ttpV89UFAuZZIobqy7DTsF9Ye1bFHqq6iA9 wuSPdem+xFfDWDZmaqreuy3PzeBlMLrfECMTZZ0UeUPUnn7t7CTd6tuCP1y7xy98E4Cs 3c/UEAGsGNtjUP3xySSSJduqCuoYmJqlvl6xNHkWFh/SowmhPd9OnlYgKiGPa941nOjb HDBDQzszOeNq8uSS8Cipo+pbW47YlJ8EnKBYuUNm1f/tkCoyipzh2a59u5FTFQUcEQCl atsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dsWiFJM6; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg24-20020a17090b0d9800b0024b630117a6si17868100pjb.163.2023.04.27.16.31.25; Thu, 27 Apr 2023 16:31:36 -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=@redhat.com header.s=mimecast20190719 header.b=dsWiFJM6; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344371AbjD0XaU (ORCPT + 99 others); Thu, 27 Apr 2023 19:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344375AbjD0XaS (ORCPT ); Thu, 27 Apr 2023 19:30:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 163303AAC for ; Thu, 27 Apr 2023 16:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682638172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vcFglKyPAkh5dZyTCVBzEYjy5B4nwQaUU2WoJAnQQj8=; b=dsWiFJM6hNbh2NvD5vpY/XQZdhD3Z9VfkQN1nBPV+B+3XGILYnwtDzFmHEtTnIpnjmjibe gizXWI1o2MB7IBzCm9yTYvm/I9tuCwOhTB87dFKP1AK6HZSA3UgpcqZFxC7CmVFV29FsI2 ItS5SHfCSpQLIZyrDGyPu3A35SWyeDg= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-584-_P_NwuKKMp2bzyh6__WT4g-1; Thu, 27 Apr 2023 19:29:31 -0400 X-MC-Unique: _P_NwuKKMp2bzyh6__WT4g-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-54f8af8b8f1so151897467b3.3 for ; Thu, 27 Apr 2023 16:29:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682638170; x=1685230170; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vcFglKyPAkh5dZyTCVBzEYjy5B4nwQaUU2WoJAnQQj8=; b=dzFQeRoyyQ2Ll3AJr5rmvM+LzwO/u49kK811PVcySbHLUw37YCkR+eY12mlaiLfh6B nqZdiQb1MaBwKn4LP0eTx+/sAtomrWNQwJ1qmDFUuwJkGMsjF2hAnpHtPje8d6emFKQY F0emX6OGAXuIkOOqQKy320S5Uc8Oi5Jx6vlGcgriMj283VnbjV9kycG7Jw9rwmqVGhzH l1Hyr4qX9/53toNUMWqldNnXrOOFfXEqyhFsTlO9sHV2ait9djxvDq6tK/XKPbKnTUND NoubPnFBqv1Gs7qxx4terdE+a6ef+0jooyspdCwW1F0l4+2Pd9OXpUuen5MaKzTfPTle GDfA== X-Gm-Message-State: AC+VfDyLUq0bTI1vZ0arVNN+Cfkn0iYo8/peWVqImB80aKYvV36s7DYK 3+8bWNgS7Mt8X/BhJbueQ/gKx/YFG29NN89Ps32qru5j2GntBSDITx1bSgMEO+0gy9p7Va2D1wx MZnQAg0IlkImjq4xEVNQTsT8m X-Received: by 2002:a81:918a:0:b0:54f:8e64:e47f with SMTP id i132-20020a81918a000000b0054f8e64e47fmr2532268ywg.31.1682638170524; Thu, 27 Apr 2023 16:29:30 -0700 (PDT) X-Received: by 2002:a81:918a:0:b0:54f:8e64:e47f with SMTP id i132-20020a81918a000000b0054f8e64e47fmr2532252ywg.31.1682638170263; Thu, 27 Apr 2023 16:29:30 -0700 (PDT) Received: from x1 (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id d201-20020a814fd2000000b0054f8b7b8514sm5092922ywb.128.2023.04.27.16.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 16:29:29 -0700 (PDT) Date: Thu, 27 Apr 2023 19:29:27 -0400 From: Brian Masney To: Luca Weiss 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 Message-ID: References: <20230427-hammerhead-vibra-v1-0-e87eeb94da51@z3ntu.xyz> <20230427-hammerhead-vibra-v1-3-e87eeb94da51@z3ntu.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230427-hammerhead-vibra-v1-3-e87eeb94da51@z3ntu.xyz> User-Agent: Mutt/2.2.7 (2022-08-07) X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 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. With that fixed: Reviewed-by: Brian Masney