From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1916A33F1 for ; Sun, 16 Jul 2023 20:47:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8ED05C433C7; Sun, 16 Jul 2023 20:47:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689540453; bh=G0JELBG+eTpjG3XjdxxENXCVDNvJrB7/CZ6lP7dUrLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnG0ziboyhdseNJG5RDmtYJTrhNsjc2YnoL4oU1Ev9UF/XqBoBd/sF3cJQiUwaFbc OEWhzSjYJSLGfkTrDPLmEDef73ZET68NY+j7ojFF8KmKwFmfC9K+nDGtmgZjTuhcl6 4r6ZzXCYENtWpVSDidRsqwucLoUEb+Ix1kBNVp9k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sean Nyekjaer , Jonathan Cameron Subject: [PATCH 6.1 368/591] iio: accel: fxls8962af: errata bug only applicable for FXLS8962AF Date: Sun, 16 Jul 2023 21:48:27 +0200 Message-ID: <20230716194933.439692711@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716194923.861634455@linuxfoundation.org> References: <20230716194923.861634455@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Sean Nyekjaer commit b410a9307bc3a7cdee3c930c98f6fc9cf1d2c484 upstream. Remove special errata handling if FXLS8964AF is used. Fixes: af959b7b96b8 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads") Signed-off-by: Sean Nyekjaer Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20230605103223.1400980-2-sean@geanix.com Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/accel/fxls8962af-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -905,9 +905,10 @@ static int fxls8962af_fifo_transfer(stru int total_length = samples * sample_length; int ret; - if (i2c_verify_client(dev)) + if (i2c_verify_client(dev) && + data->chip_info->chip_id == FXLS8962AF_DEVICE_ID) /* - * Due to errata bug: + * Due to errata bug (only applicable on fxls8962af): * E3: FIFO burst read operation error using I2C interface * We have to avoid burst reads on I2C.. */