Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6182962pxb; Mon, 14 Feb 2022 17:57:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJymxPwko8slSQQBAvVGNDjEmjEpnrNJajv4ttKTsrl1Nzg23KNwa8/4iFD3+h/ThXQVNZTd X-Received: by 2002:a63:160b:: with SMTP id w11mr1584375pgl.421.1644890248805; Mon, 14 Feb 2022 17:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644890248; cv=none; d=google.com; s=arc-20160816; b=Gte43cV4HLIJIYPytFLZvheFG+Q9XzA2+tEtM99GbNeclkrra78pbgnRGk3VHbnHcz iHrq2xOHY5DKCxvycfzR09x4JaakB/fYpo0PbKsbfnrYCspGB4KSCn+IZsDY0/bgejK3 jShR7YvFIoYdtAu3puv+6geJpsE61OZr9bXudkQEVkQo9N/DtllGFbxc2JtOC9ZiB+2o LUBJ43nAiwdUn3YZUYgV92PTH2EoHr5FYzQErIOJ0fk78cylM4FMZ9T+0qdQu58gO5QM m0E1FhKHXeY894lwt8bq0nE78dDAPZYUo2l53s0y99lzQltEndH5HhwyrBLm39HpFYs5 cWig== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8DlJCsnfd+wYmafUT7cWTHIARElMuTvXKz5+zgBNWHA=; b=i29FOry5vQ7QvrBScmlbl0P5ZVaFJZIM/uH9acUdI1PRFrSN4NITWrO5ZXCVNtdQKR OS7Q1J6feBdqQabD30WueVE+Gl69+EPQ0JWFd6QdEyMAxQEbWP00u/fDcCbxwib+sqcO jACqGBFrEI31GFiJHFswA03lMb0A6nSKi++u+5SlRIK7nRndRb1qfoZ7HQzhzrxn2oFD 4kFZAuEQLOVe1XH4UDBf428svEQxuLCRKvjMl0rpG+UvuR60BHNnuhOTr1IJtnzn4ow8 IRpzBA5FOKoOWCLqEMPOL03PkPPya+F942xh8KAaMLXQJwu6ab9iPfJT0kMmndRi00fR 2vdw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1si1751077pgu.609.2022.02.14.17.57.12; Mon, 14 Feb 2022 17:57:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231961AbiBNWm4 (ORCPT + 99 others); Mon, 14 Feb 2022 17:42:56 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbiBNWmz (ORCPT ); Mon, 14 Feb 2022 17:42:55 -0500 Received: from hs01.dk-develop.de (hs01.dk-develop.de [IPv6:2a02:c207:3002:6234::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72EC215DB21; Mon, 14 Feb 2022 14:42:46 -0800 (PST) Date: Mon, 14 Feb 2022 23:42:38 +0100 From: Danilo Krummrich To: Krzysztof Kozlowski Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org Subject: Re: [PATCH 2/2] input: ps2-gpio: enforce and document open drain Message-ID: References: <20220211233137.99624-1-danilokrummrich@dk-develop.de> <20220211233137.99624-3-danilokrummrich@dk-develop.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Mon, Feb 14, 2022 at 10:50:21PM +0100, Krzysztof Kozlowski wrote: > On 12/02/2022 00:31, Danilo Krummrich wrote: > > The PS/2 bus defines the data and clock line be open drain, therefore > > document this in the dt-binding and enforce the particular flag in the > > driver. > > > > Without enforcing to flag at least the clock gpio as open drain we run > > into the following warning: > > > > WARNING: CPU: 1 PID: 40 at drivers/gpio/gpiolib.c:3175 gpiochip_enable_irq+0x54/0x90 > > > > gpiochip_enable_irq() warns on a GPIO being configured as output and > > using IRQ without being flagged as open drain. > > > > Signed-off-by: Danilo Krummrich > > --- > > .../devicetree/bindings/serio/ps2-gpio.yaml | 14 ++++++++++---- > > drivers/input/serio/ps2-gpio.c | 9 +++++++-- > > 2 files changed, 17 insertions(+), 6 deletions(-) > > > > Bindings as separate patch, please. Are you fine with adding this additional documentation directly to the patch converting the binding to a json-schema or do you prefer it to be a separate patch? > > Best regards, > Krzysztof - Danilo