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 08C00200A6 for ; Fri, 21 Jul 2023 19:04:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47150C433C7; Fri, 21 Jul 2023 19:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689966264; bh=N0txIJK9m+Tke0rUyk9BBXW9NpZikMD7G70aXP5hwB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hnNdCGcWM5KyKEOOaNW+4f7HcKSSrVyLrc7E8a2kdKPo2qyG+g3KiAg9jmkTi3Ne7 qgMgLlwr2xSJYZ0395Is8LYGnTvlJKmbg8tz77TE5a4DOLilGxpCZKKyKVdCmHfzQB 3XAVbHIbF/NiMalX+RbNFNfyV0p/F+TMihq3xoV4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sean Nyekjaer , Jonathan Cameron Subject: [PATCH 5.15 255/532] iio: accel: fxls8962af: errata bug only applicable for FXLS8962AF Date: Fri, 21 Jul 2023 18:02:39 +0200 Message-ID: <20230721160628.177095841@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230721160614.695323302@linuxfoundation.org> References: <20230721160614.695323302@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 @@ -656,9 +656,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.. */