From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf2-f12.google.com (mail-lf2-f12.google.com [74.125.229.204]) (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 3482B3BB9FD for ; Fri, 18 Sep 2026 15:21:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.229.204 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789744868; cv=none; b=d4RZy5lRB+KtWc34OzFzZWR0HLBOkQ1JFy/00h8r2b6u5fPM0qrel6vCExnct8tXHY3XmGDg21960m7uEZPPbVBegVsr0K0wUHpRQSBHwAfc1P0nsFM5VKqvtbhBfSmQ7P3JxVUHySzxYu2mJhyrkne3+Dlk7NPQIKP1e20hB4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789744868; c=relaxed/simple; bh=UCOgywt/StEI+8ah0k8GYm8/I/C2yp8RVTAAhQ4Hwyo=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=SUxxSSayCU6WAQFHcTZjnvbAOcxqNePSQZ0fo9AeyM33CsOuAY+R9el+S2c9C+OITnHZah07k+K22OoZaDJPOOe0BOANHbtDFsHlbsFMSKK4IxyoXMer+jY0az+xqZz3x0rD8rg8xG1fAvG9G0nKNi4Nf8dY5sBQQAzIwHtShNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mmrOxgiP; arc=none smtp.client-ip=74.125.229.204 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mmrOxgiP" Received: by mail-lf2-f12.google.com with SMTP id 2adb3069b0e04-5b74dbc7359so785876e87.0 for ; Fri, 18 Sep 2026 08:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789744864; x=1790349664; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=UCOgywt/StEI+8ah0k8GYm8/I/C2yp8RVTAAhQ4Hwyo=; b=mmrOxgiPFnEtt5N55QEkzwkEvhtWWFhlSh1OSE1NAchmYA7b1JdQtey0zb1zFaJz33 JK9r/rbyDChNepptOi4qRoViCtT5hvDCUSUUTqe8kPtCJYklUtxeIapuOXOO3NLPESFI Axjedh0QUEyeO0qOppFFAtKFHTizzav2qkcWaY/gi++H1hYTY9xJRAxd5+/qPffl4Kib fTFqL00+InPvGYc80NxvPCKlYV3wKCic53LSU7CSGaLC9dwv5KX8XjaqVtpNm7eGvOHi Tqk1xDGXxG5/hdxkE/Jnvtf/1a4M8ozGk9GspMIiXtSOIcmpLPbHC6sQ7PQtEMKANOd5 ipfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789744864; x=1790349664; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=UCOgywt/StEI+8ah0k8GYm8/I/C2yp8RVTAAhQ4Hwyo=; b=GSwcsMZxez84QvzwU2HrPnQQGquOfHvQ3JJVGO6KEhtRZ09kaKD5BF0ewCL7anghd9 EZoEU7aoxtpMN8Z27lQkxp+aGsharJFKvnNn8j/MaB8MVpZchwjtAJHXFWIFya4oCeM2 nNpYDVzxBaaxYJJpYku2cIBqljS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b6:1a7c:59d7 with SMTP id 2adb3069b0e04-5b8c184c9aemr844940e87.49.1789744863829; Fri, 18 Sep 2026 08:21:03 -0700 (PDT) Received: from ?IPv6:2001:818:ea56:d000:56e0:ceba:7da4:6673? ([2001:818:ea56:d000:56e0:ceba:7da4:6673]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b8c270ea2bsm547830e87.8.2026.09.18.08.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2026 08:21:03 -0700 (PDT) Message-ID: <5cd6b31da1f8cbd5b004888cb0df22061fe86a2b.camel@gmail.com> Subject: Re: [PATCH 0/5] iio: dac: ad5758: fix DMA alignment, raw range, offset and 4-20 mA From: Nuno =?ISO-8859-1?Q?S=E1?= To: Arka Mondal , Jonathan Cameron , Nuno =?ISO-8859-1?Q?S=E1?= , Michael Hennerich Cc: David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arkamondalofficial@gmail.com Date: Fri, 18 Sep 2026 16:22:27 +0100 In-Reply-To: <20260918122032.134947-1-arka@arkamondal.net> References: <20260918122032.134947-1-arka@arkamondal.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-1.fc44) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2026-09-18 at 21:20 +0900, Arka Mondal wrote: > The first attempt to send this series on 2026-09-18 was rejected by > the kernel.org mail servers, so it did not reach the lists. The patches > are unchanged. >=20 > This series fixes four bugs in the AD5758 driver, all present since > commit 28d1a7ac2a0d ("iio: dac: Add AD5758 support"). The last bug > takes two patches, one for the binding and one for the driver. >=20 > Patch 1 marks the SPI receive buffer __aligned(IIO_DMA_MINALIGN), so > it no longer shares a cacheline with other driver state. The 2022 > conversion of IIO drivers to IIO_DMA_MINALIGN only changed existing > ____cacheline_aligned markings, and this driver had none. >=20 > Patch 2 rejects raw values outside 0 to U16_MAX. Writing -1 currently > gives full-scale output. >=20 > Patch 3 fixes the offset for every range that does not start at 0. > The +-20 mA range reports -32 instead of -32768. >=20 > Patches 4 and 5 fix the 4 mA to 20 mA range. The binding and the > driver give it as <4 24000>, which is 4 uA to 24 mA. The data sheet > (Rev. B, Table 32) and the original text binding say range code 1010 > is 4 mA to 20 mA. The old value is still accepted: the binding marks > it deprecated and the driver maps it to the corrected range, so > existing device trees keep working. >=20 > Compile tested only; no relevant hardware available. The binding was > checked with make dt_binding_check and with test device trees: > <4000 20000> and <4 24000> are accepted; <4 20000> is rejected. >=20 > Arka Mondal (5): > =C2=A0 iio: dac: ad5758: Fix alignment for DMA safety > =C2=A0 iio: dac: ad5758: Reject out-of-range raw values > =C2=A0 iio: dac: ad5758: Fix the offset calculation > =C2=A0 dt-bindings: iio: dac: adi,ad5758: Fix the 4 mA to 20 mA current r= ange > =C2=A0 iio: dac: ad5758: Fix the 4 mA to 20 mA current range >=20 > =C2=A0.../bindings/iio/dac/adi,ad5758.yaml=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 4 ++++ > =C2=A0drivers/iio/dac/ad5758.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 | 18 ++++++++++++++---- > =C2=A02 files changed, 18 insertions(+), 4 deletions(-) >=20 >=20 > base-commit: 08df884136f1c1197bab2a27814404fd329d9aac LGTM, Reviewed-by: Nuno S=C3=A1