Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp229170rdf; Tue, 21 Nov 2023 00:28:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsqUFHN9BzDKo7/cJ82zhb+C3qa17otoGkAP9NIs4Td5Dj1TWGLXnZnlv/lrF+ApfrY/oQ X-Received: by 2002:a05:6a00:1514:b0:6cb:bbb3:a598 with SMTP id q20-20020a056a00151400b006cbbbb3a598mr1955160pfu.4.1700555318924; Tue, 21 Nov 2023 00:28:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700555318; cv=none; d=google.com; s=arc-20160816; b=a9GOSuRpufVrjGkbk/YxAnyJE4JBB2Ktv4GjVPpuYH/iAz1f2jvNqzgp9dyGkeYPru 5Us9FuUdlacRX4Gov7zBA9zGvy1Uwo1VEhHd2a92G/AaF4If6E8Q4rnKf8P4FrJRZB4j +/6GbD9neKkwsi/HkoF/Fhp5+h3Esw2JcB47EXqHRvkr+0DhypC+enoNof+p6z0IqSpg 1e7QMyClChO4uLK0HzHhmWeidJWFs9c80RwsPeHFcTvZ90/iZiDFwB81Vr0fkNZtVq10 undVp5TkdC4PAxLjEi0fCPp83A2CPcjxUQKWWgRBrgPVq2lD5mu7nZ7wFbbfl3J++pHA VN0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=x7ivu4kC1mI8jw3B3gKcs6J9+AFizYUlZrFAvXJ7eVQ=; fh=OBVLmxMyGeDGfFGXfWa1PRDqnWZrLhPzdhkrnt9DaHw=; b=ex7qtY7rpci3vwhUff5XpbDP8FsbNi7w4mFAiQlO1dSZBSZqblpODWMsEDdyfqYFks SjiUHXgiZ/Xcs1bCZvZSQNRGrUaWzq4h5PDYHItNLAatHcEYTJmFRtXn239R/kIsB1pJ bF7l+b6hgWzwrlTJcgpjBDbEx1apBZa1sPeJRxZNGykLK7v78yb0L33Ew/9LoVwHq4ua 23oKAJ29MIbDXbqwdELAZzeO4cEaqAFU53QurX/P7iGuLFohRjMSh2x+RpBGefUQ8uYK KcPFcWYujIWtAxhuxaqxlwqUvzF1ZK+afBbGXRuE0iYflPr5X2EIvYvt+AgxqyF+ZJue u1vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RM4nuFG8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f189-20020a6251c6000000b0069342aef90bsi9589416pfb.3.2023.11.21.00.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:28:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RM4nuFG8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1F0DA803D8FE; Tue, 21 Nov 2023 00:28:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229492AbjKUI20 (ORCPT + 99 others); Tue, 21 Nov 2023 03:28:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjKUI2Y (ORCPT ); Tue, 21 Nov 2023 03:28:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF4CEED for ; Tue, 21 Nov 2023 00:28:20 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 997BDC433C9; Tue, 21 Nov 2023 08:28:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700555300; bh=yrkU8VJB5SKAtcRYFYmhxNO9FCZg2MU9Fl1s+k0LICs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=RM4nuFG87Gcs2ajeJCX/i3p1qsayRyuOYvoGfMXS/tDcjXP1r7zeMwgMvpa45t433 TETW6Sxp+5LTEQDnsvlY1dvjOUz9UdCf+q8qOE2p8THl/kYvrzHhqUpUEItYPcJ+ag dMcg+BIdMfvzFnIyr/AB5gy6IlxXOjYyj7eRU10dwAF7VexpfB50WG8hHznY5tYMiD JwIbJ1jC4JxeBo6DOoH4x/qeX0/VrU64cetOkgF9JMkQOyDSGkk6qQplgjPs7xzXDb LrWh1EfEntQWYealAN6SmbHCgR3u2m0e/9j3AO0ldtaP35PULqK2jx2IXLMkvPN0f8 NcWrF7EWRqNdw== Date: Tue, 21 Nov 2023 09:28:16 +0100 (CET) From: Jiri Kosina To: Johannes Roith cc: sergeantsagara@protonmail.com, andi.shyti@kernel.org, benjamin.tissoires@redhat.com, christophe.jaillet@wanadoo.fr, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, rdunlap@infradead.org Subject: Re: [PATCH v7] HID: mcp2200: added driver for GPIOs of MCP2200 In-Reply-To: <20230921164928.170383-1-johannes@gnu-linux.rocks> Message-ID: References: <20230921164928.170383-1-johannes@gnu-linux.rocks> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 00:28:36 -0800 (PST) On Thu, 21 Sep 2023, Johannes Roith wrote: > Added a gpiochip compatible driver to control the 8 GPIOs of > the MCP2200 by using the HID interface. > > Using GPIOs with alternative functions (GP0<->SSPND, GP1<->USBCFG, > GP6<->RXLED, GP7<->TXLED) will reset the functions, if set (unset by > default). > > The driver was tested while also using the UART of the chip. Setting > and reading the GPIOs has no effect on the UART communication. However, > a reset is triggered after the CONFIGURE command. If the GPIO Direction > is constantly changed, this will affect the communication at low baud > rates. This is a hardware problem of the MCP2200 and is not caused by > the driver. > > Signed-off-by: Johannes Roith Now applied to hid.git#for-6.8/mcp2200. Thanks and sorry for the delay in the review. -- Jiri Kosina SUSE Labs