From patchwork Mon Oct 30 16:21:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mike.isely@cobaltdigital.com X-Patchwork-Id: 13440755 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A5EBC4332F for ; Mon, 30 Oct 2023 16:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Mime-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=PwLXr7MJIxokwipxl2hsvafJd7M4MFy8P8DdkSFOb6w=; b=dE+r/CObdU4TU8 2l1d5I5Hxuz4/IevSsGI6zNcGt/wvTBDn42LUMHuE+ZQKOiqrreo97vSwHA+CM+t/6N1f1uqBAHoA Y3UmrBWB0y5/FuvM5Lh+KZe3yrvKx4lQsDB+WGyTVhRAydUfOKRVvF+EIoVMYLXMPpLyY+CM9sJrP 2p0EzhW4w9OvEZIZeIrsPiE/9ZBHSwn8NkNQUFJXksvMw8LBm2YLC25YPfz0d/Bm6kVCt3Tz/k61b vvp2ZrvEH4evf8BE3TdBhvnCqJfmp/Xuk4W9kv8Wl+kDXM1fYzJYXl9jj2tWpLts0nq4kncVGmKCm gvthw95lwpL9rLMNpmAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qxV6C-003dgc-1P; Mon, 30 Oct 2023 16:26:44 +0000 Received: from cnc.isely.net ([192.69.181.175]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qxV68-003dfK-1Q; Mon, 30 Oct 2023 16:26:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isely.net; s=deb; t=1698682891; bh=yfEzguf+zGpDH2x/gZ3OO2CO6rmHu/YpBrxxePlvktE=; h=From:To:Cc:Subject:Date; b=BplNkoX6hh+QLoF208UCPGUKLMS4PGE3nYIRktVv00iCxN2ZcRN7mJQcj3khbLq4P Spu8hicV4/noL0iEsimvDEKhRgukw7PUyGbc2pJD+eB805i2RB3MxoJV0zb7nTDPKg v6W1D6+1PO5Wy3FrlKzHTFGuIEjPcQKf7cTTGcVZZCqyvQhHcsPcb6RceCFjE Original-Subject: [PATCH 0/2] Fix error-leg bugs / misbehaviors in i2c-bcm2835 driver. Author: mike.isely@cobaltdigital.com Original-Cc: Mike Isely , Mike Isely , Broadcom internal kernel review list , Ray Jui , Scott Branden , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Received: from cobalt1.eng.cobalt.local (ts3-dock1.isely.net [::ffff:192.168.23.13]) (AUTH: PLAIN isely, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by cnc.isely.net with ESMTPSA id 00000000000804E2.00000000653FD80B.000079FD; Mon, 30 Oct 2023 11:21:31 -0500 From: mike.isely@cobaltdigital.com To: Andi Shyti , Florian Fainelli Cc: Mike Isely , Mike Isely , Broadcom internal kernel review list , Ray Jui , Scott Branden , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Fix error-leg bugs / misbehaviors in i2c-bcm2835 driver. Date: Mon, 30 Oct 2023 11:21:12 -0500 Message-Id: <20231030162114.3603829-1-mike.isely@cobaltdigital.com> X-Mailer: git-send-email 2.39.2 Mime-Version: 1.0 X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231030_092640_563896_2766271D X-CRM114-Status: UNSURE ( 7.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Mike Isely Correct issues that arise when a slave select error happens, including incorrect hardware cleanup & missed interrupts. All issues were found and debugged on an RPI CM-4 which actually uses a BCM2711. I2C hardware apparently is compatible with BCM2835. Mike Isely (2): [i2c-bcm2835] Fully clean up hardware state machine after a timeout [i2c-bcm2835] ALWAYS enable INTD drivers/i2c/busses/i2c-bcm2835.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)