From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E593E18027 for ; Mon, 20 Jan 2025 02:46:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737341194; cv=none; b=suRupL/wjGUBt7XEqPOMYjrY4zLnmP2yzU9CdcSmJz/1/RUwW7H15c00yrS82jSeLniEcpjmJTExv8WmAOHhBUiaZ4X8qUlvpUkKHiACeaRfEXLldmisDofwej/SWtLKDn4fpO4h1PHOoKgR1bZV/xvxQRqo6O+zJp3NZtVautE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737341194; c=relaxed/simple; bh=6fhS6jrdP+M3izc4tiFS+22WyRmuQafYbnTLyIItfGU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IKZUFYESztto2TQAEMKHzMRaUP7dw6JXbZfTlsld0gWtr3tODxyeZDtAHkaf11wzP0BIWnUktZtcyPA3820GjOKZDiHZeBg/mhzozhzT+lkhGhepZnxo4v9vLHxHtxjIBkgZrsWj+Lxw8m6jo7JoyaDnkVhGLEh/NboqvUsGyxQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=HA4QQHRH; arc=none smtp.client-ip=209.85.222.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="HA4QQHRH" Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-7be44a90468so488870085a.3 for ; Sun, 19 Jan 2025 18:46:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1737341189; x=1737945989; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6fhS6jrdP+M3izc4tiFS+22WyRmuQafYbnTLyIItfGU=; b=HA4QQHRHFC9KgsXyegZZ5il0CLAYTB91wk0gmDzWVxuEhOPhYjcjGnHQ3nZ9NOP/Re EeZ6fpzvXVTvc/MgcSCs9mA73qSWy8e/Uttyydj9sPuchJGlRsnvKbQMXE5BTGMtgflZ 6L9WzINkl9Bb2FKQRsmOfyFXsgHvF3Aki83Jq2MCPf+G06YaWyzjei8CyE7/xpJxQ5yH naj+CPeb54kHsNUxHLuaePw3NmKLx9wQVCX7K7pgs9g+ggMlxPafHE63voGOPAmpSr97 r19vGtg8Z0qyVKpTeRcv3RirKKyPWZYSo0iRtgd17km0C5jI3I90O5TSzhq4cZ4qX3bj peqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737341189; x=1737945989; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6fhS6jrdP+M3izc4tiFS+22WyRmuQafYbnTLyIItfGU=; b=uWOrVK0Be2+7T8677uRtuIc9h53NWvER5U5rU/BA01vj58U2U3sCThV/fjhMzrsNka FT8TwU/Q2/uKAVoynL5IeuuziMayYSQOFcBNqg8068zYaXyMItK6o04WQx4/9aYTwDhl eDUUL4qye7SleF6+iAzAyBfF/K2alu5UWQAB0pPtmLBrvwW5lsB2funsiKRZ1hsmiYGy +ft4KxpmjWDUk3NG5/UPn/NXdTCSGaBEDCqOTYEJ2ZGJhlzovy+66lCcdAr5HAPNRsmd ypH3P8Yp290+d/KADt2M2NKJfCvU5X2M2URTBNv9XdwRmtNXkBnJNjv73PqXoxOY81Mv 2BtQ== X-Forwarded-Encrypted: i=1; AJvYcCUc6HxhybRIg0ofVCxLJ81PDuFBQ6J+3fOFE8eflWJ7yPNgAderJEAfcxedgFLlxF1PIWxN0T6BqD706dA=@vger.kernel.org X-Gm-Message-State: AOJu0YyIv9aAXBSgwln1TqvB0w8NgEkWRe3HyxqgalTpBergWYoFiTXY v7dcyymHMBLr0VieecWnIiJ2100tcLWiJzP3w0J0dE9LML4sz1O/LmAFVEQ2vUc= X-Gm-Gg: ASbGncsxt8Igr2WHj4hR/zgzU6h2V47pobSS+0izauJnd67zBxXAM0BWyPfXsYnqAMq kCVvewb8AnFIOMlca7I+gMP1oh8Vf6X+cJa76MOfavi127O5kexm+P1Q5GvUfuqLgAgJQep8XeU 96TgYQiFOBDDSIXgV+cclorOLz59dSZmyaViOM6mZnBsEUFhOXdtIVVL6cQCwCCumcUfKc/EbVy O4t3Zbbr/05z/mcNZOKbxD+wBy1hkThGF1VMSAECG8nd9PFPRS7K8vE3/ibbkJe3yKbcZ+Is0rk IbnTgcVFBLXCw5/lV/tmPYQOjd8P39R0QbdH8A== X-Google-Smtp-Source: AGHT+IE2ZGER+m/DBiuD42NI+mSvyZfSA4KqOfJnyolbuLDFTgazWkkrS8GH8HYzNIJKP5VZaB/L4Q== X-Received: by 2002:a05:620a:394d:b0:7b6:d643:59a9 with SMTP id af79cd13be357-7be631e56a9mr1776362585a.11.1737341188805; Sun, 19 Jan 2025 18:46:28 -0800 (PST) Received: from [192.168.40.12] (d24-150-219-207.home.cgocable.net. [24.150.219.207]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7be614f0096sm395114685a.112.2025.01.19.18.46.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Jan 2025 18:46:27 -0800 (PST) Message-ID: Date: Sun, 19 Jan 2025 21:46:25 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/3] iio: adc: ad4695: make ad4695_exit_conversion_mode() more robust To: Jonathan Cameron Cc: Lars-Peter Clausen , Michael Hennerich , =?UTF-8?Q?Nuno_S=C3=A1?= , David Lechner , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20241113-tgamblin-ad4695_improvements-v2-0-b6bb7c758fc4@baylibre.com> <20241113-tgamblin-ad4695_improvements-v2-2-b6bb7c758fc4@baylibre.com> <20250118171236.782bcb0b@jic23-huawei> Content-Language: en-US From: Trevor Gamblin In-Reply-To: <20250118171236.782bcb0b@jic23-huawei> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2025-01-18 12:12, Jonathan Cameron wrote: > On Wed, 13 Nov 2024 15:52:59 -0500 > Trevor Gamblin wrote: > >> Ensure that conversion mode is successfully exited when the command is >> issued by adding an extra transfer beforehand, matching the minimum CNV >> high and low times from the AD4695 datasheet. The AD4695 has a quirk >> where the exit command only works during a conversion, so guarantee this >> happens by triggering a conversion in ad4695_exit_conversion_mode(). >> Then make this even more robust by ensuring that the exit command is run >> at AD4695_REG_ACCESS_SCLK_HZ rather than the bus maximum. >> >> Signed-off-by: Trevor Gamblin > Applied 2 and 3 to the testing branch of iio.git. > I'll be rebasing that on rc1 once available. > > Thanks, > > Jonathan Thank you!