Received: from mail-dl1-f45.google.com (mail-dl1-f45.google.com [74.125.82.45]) (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 E86FC2EEE69 for ; Mon, 29 Jun 2026 13:54:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782741270; cv=none; b=JAjUrhIHREcFE52CzqUh0rZ4s1kuJ3RgJsnmM3cJ4qnpyf7kcFMN5sgCYTI9n3Frjd/sqyTYXvYBcf4nF2nlouyjQJoav5TMLVTuFRnJ/vvPWVjvDL/nyTmJrlnaZxxUP2Klc7r/hna+SzBQLg+yWl67Xbq6xuos+ZL6w48Nlc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782741270; c=relaxed/simple; bh=mmvZx8tXB/04kbZ8uiKIiB/SZgxdLfSTkp/PWaUbNnE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V33//n6h7P3JsQwyKQshf9a3vk8o63ttlKRLAnYAGVLMBEk/i2j+3OFeo/ADfcMJC8sm1hQ0qdaEoeNLd0pZqkn8EnQ3qffJuFBc7L4WQHwvODVCbr8GBZRPJ1WC9dd6O8Aa6euTrYuwgthJbqun7mXaKuanfdwYnbUoiI7ZxD4= 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=iczIh8gu; arc=none smtp.client-ip=74.125.82.45 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="iczIh8gu" Received: by mail-dl1-f45.google.com with SMTP id a92af1059eb24-139f1dfc9faso2524175c88.0 for ; Mon, 29 Jun 2026 06:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782741268; x=1783346068; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XqXwpO+u6NQn7hrl2HFC4aT1KAj8WhmZm/KJcTzQoAc=; b=iczIh8gux/yihNbxmQ3VcRpkLc55qhOgNF2frD+cuf9m3ULIUCJUqyrqV4QvdNl86M UrPFFcm/T3FW4mCtunYylgT1AbcWAPNkUS6GkCXF0LzFq8sJU6eYn9PkIMuzitP3cvsF UO2jkUZnqV/CdIUsBlTUvqbiEFuE5iFBugQgJnsssR4H60+TulPp102e4gf08P0V19FR vQ5iquGRqe0YiYmDYxgXOMEEIReWKPIRlXl4z9sLZWm1hRKdMHcNpoBSryCYQJivm7og 31ttKK0S3BJ+q2DTxDs3Y+0C4YXcsR1PAOWGolkngW9dGU8DrwZ2NcojP2zfemYoTWs5 gVgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782741268; x=1783346068; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XqXwpO+u6NQn7hrl2HFC4aT1KAj8WhmZm/KJcTzQoAc=; b=ZFzBdiErXLIzh6aRPxD0hOYWTREPOvI2LLjecvOir6Q46ODXmm3nt/9wPmcvEuYEHs ptiNhycv0u2JS3fdHdU3f+t7UrNSDuVGizW6SjBP6PHCZKVFCkcMoDl2RVITaTajGvk0 +7fN2JvllGkvekQNcDsD7IztKhJzWkzN/igiiBV+8f3dHMWePzlkDf3GOhMh+qs6KP4u 8dS9VVAnRq6ataKE3ObqxMOuo4yw5td4nf/09xaRPs63jfGK5FcGvwAbCERVu5YOWV2f Y6eMZo8LfjAisOmLIp/9D20TAotow9l40jeFFlgRfQFzHjQEYguPT9yN7HvWM+EWvj4j PIcQ== X-Forwarded-Encrypted: i=1; AHgh+RqGKzP8D/TqB2p4ByH1l7s6Rfx4RxX1esb+BCY+iUXACGhmgi1HGlrvVOWEEh5cvQz/3p7tfmLuiYjaKGk=@vger.kernel.org X-Gm-Message-State: AOJu0YysJ4jaXkt8cWrtFREh/UMCoCS31BCVfrgqKI0nc/ra32vM5MJj fnGsTOxFw41JkjjrtWTgikYVJuD3HlbMlN9TR/OVV4xf6x9TqdzffJzl X-Gm-Gg: AfdE7ckGI8iyk5smRpj2VDzzzDaGblqN3uEtln0J0kUSwIuRzMsNw+9ZVcmibuq3P8D hbj8ypwLWaMI7ceenJ60h2fGOABjTQfClAf5EsXbeMzXzbVwYiJTSfyHqHp3po96iGScf0D2tmb 4IMkBLXfCsKAv6ggd6h/uwef2uHsSmeb3ZlW7EJaZjcuzDZoctzOE1BTH50IK3/Kvf9mzulRh+e RZgcFUlZ4vGRguTPqrvRFVfnjNdM8/y/5XGEDyuD/TjATIbocrIqOcrDj5kDHR/9I5EHuvtHvIy q5TRMPzR7y9v/qMrr2nTjot/Jvcyq0bST82RG13Xh0vRDfqr0P5SPrxS7N0LvaYj44L9+CKyaZa EsHu2WZsaKT3zw+zEoJ3WLIW/Zjj+WRAdWNqxKVSDzOObk9J/sVwNMkFRdyFrA/U4fpShL8KprJ 2NW6Z1EquxblC7ruS0REoGu9rwLt2+ X-Received: by 2002:a05:7300:fb87:b0:30c:ab4d:3822 with SMTP id 5a478bee46e88-30cab4d3b9emr8549670eec.36.1782741267771; Mon, 29 Jun 2026 06:54:27 -0700 (PDT) Received: from archlap ([2409:40c2:7015:9e0d:90:b70f:356:1d57]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30ed34b4146sm7993554eec.12.2026.06.29.06.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2026 06:54:27 -0700 (PDT) From: Shashwat Agrawal To: Ian Abbott Cc: H Hartley Sweeten , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Shashwat Agrawal Subject: [PATCH RESEND] comedi: ni_pcimio: set PCI-6220 dio_speed and ai_fifo_depth from NI specs Date: Mon, 29 Jun 2026 19:24:04 +0530 Message-ID: <20260629135404.19835-1-shashwatagrawal473@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <96a226af-23c7-44a9-9a60-8d5f88ff4691@mev.co.uk> References: <96a226af-23c7-44a9-9a60-8d5f88ff4691@mev.co.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The PCI-6220 board entry was missing .dio_speed, unlike the PXI-6220 and the other 622x boards in the table. Set it to 1000 ns to match those entries and the 1 MHz maximum DI/DO sample clock on Port 0 in the NI PCI/PXI-6220 specifications. Also update .ai_fifo_depth for PCI-6220 and PXI-6220 from 512 to 4095 samples, matching the documented AI input FIFO size and the rest of the 622x entries. Link: https://www.ni.com/docs/en-US/bundle/pci-pxi-6220-specs/page/specs.html Signed-off-by: Shashwat Agrawal --- drivers/comedi/drivers/ni_pcimio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/comedi/drivers/ni_pcimio.c b/drivers/comedi/drivers/ni_pcimio.c index 4be9ca4f4828..299e2a0e9474 100644 --- a/drivers/comedi/drivers/ni_pcimio.c +++ b/drivers/comedi/drivers/ni_pcimio.c @@ -685,17 +685,18 @@ static const struct ni_board_struct ni_boards[] = { .name = "pci-6220", .n_adchan = 16, .ai_maxdata = 0xffff, - .ai_fifo_depth = 512, /* FIXME: guess */ + .ai_fifo_depth = 4095, .gainlkup = ai_gain_622x, .ai_speed = 4000, .reg_type = ni_reg_622x, .caldac = { caldac_none }, + .dio_speed = 1000, }, [BOARD_PXI6220] = { .name = "pxi-6220", .n_adchan = 16, .ai_maxdata = 0xffff, - .ai_fifo_depth = 512, /* FIXME: guess */ + .ai_fifo_depth = 4095, .gainlkup = ai_gain_622x, .ai_speed = 4000, .reg_type = ni_reg_622x, -- 2.54.0