From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f174.google.com (mail-dy1-f174.google.com [74.125.82.174]) (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 3D878273D6D for ; Tue, 5 May 2026 04:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777956329; cv=none; b=lqIHbTbrEOrSjGDgQK+f9qqPbeAfvk9Ok2oskdkmJEa3Cjh3ZLByA+7hh3Y3eJGjLRgf4ODJNwlzQAqAULkP6EDJ70EV+2K/7oiMQwCqrGE3r32Y/Q99dCUYIm+6atErTlDwb7GvSni9IUurowgUBW3zLctpwh6SaJ4zWmsJlNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777956329; c=relaxed/simple; bh=QlNQ1CHW07FnLlbPXvDmNwAFbmH5P+YPv/EZqeHbcAI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mWqULsaGbLKVDzNP4w28tAKc6/WxFG7zeCEpqTdBU2ww3T68/wSJPnZVMJ7t2Sqo4odotI7JATqw5L2rJZLv/cRndS0i+dIGuXdv3b3HLuJmMibWSuneqUPe7v8yXPtTY75S+Fu2cqX2JqWAv9WUF5zJof7Wb9HELgF1xdnEE/Y= 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=g+bAjIEh; arc=none smtp.client-ip=74.125.82.174 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="g+bAjIEh" Received: by mail-dy1-f174.google.com with SMTP id 5a478bee46e88-2f0ad52830cso3284386eec.1 for ; Mon, 04 May 2026 21:45:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777956327; x=1778561127; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Kc0Sy8vq6FNzAEiI6/Rmeu/zFs4QicwXo3tqvVWtkD8=; b=g+bAjIEhB1SaZf26lNKgGUzuHjpN5QKWnsNc+o+o61AHhQTaUm7dfpypcGplgRZGuo +/cVvSK4YzlrIZrTLnhg5vKPJPgC5uJzyzI8QUD3FJTzqWfcaUEXBLOe2FEMWROVSkGL ms6D5timZBcSAezIC9j9otElTJ7pMqTfkS9yjQQIxCAZQ7yjIvoIi2E8Osi5tFcJdZAx gSfYER3d7mrixvGSmLFchmmM1bAOQLJfrgJe77enSuycVmkodt/vT+tc/UtL6AnlGVoM Kw7ZVCWNI37ZQCzaG+9PwDDu7MZjWto2AdBMV09fwPuY1jrwLF9B7QQP+op0RGnqt1LN DmTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777956327; x=1778561127; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kc0Sy8vq6FNzAEiI6/Rmeu/zFs4QicwXo3tqvVWtkD8=; b=VV9UfxfhDOwiWipxMXwxqZaY2Gffmn4vuc+e17RPZctGKc2Y3+SF6CXWPDpIBCfGxP 73MCxmhvNMuQALoiGeZIlXNihZJKP8/Zk4r9c7WjqhbJcFE2NKzMokakIT0eER6+E8Pm 2hZbJQxZ7ZBAx9vsArlzZuswlJhtJBbgGea8zLmARIR06xYmbTN0MeaeQ6A9zs40X/jJ oour5UuastOrs/AboYITLM7ZUIXaqDAV61MN4E/qADY+qncmd0tpZKvx+CQaHpmB6ZYI 6FMP+Ynfkbij8HiD2JGVVa5cqmFQ171IPGyqlaa9vCkxSEt8OFiD7wOqk0NyrE2sQpa4 b38g== X-Forwarded-Encrypted: i=1; AFNElJ9zvwUfrq9AKoZstWynJMulajU5pggweHL0JJ/3njnDsFqrBBjuXhfNw/dkfsf2MKUW6uVjhh4QJVGaKLU=@vger.kernel.org X-Gm-Message-State: AOJu0YyHcYRVkDNzbzNckv4CffZzFAuqYHDfHhPFggQbocI6cDSQoU3K 6mnyUBBrrdqZrGNQcV6wEwfBBPslqcAkRhVnRwIGgY0jNPDLE13LQsyR X-Gm-Gg: AeBDiev79BK/g4XLGeDKSQI9PqEkcYzw9Jo1xJGMxd26cOYtxnx1T+eZr1M3qiGzhdu KO/kK/GrakU+f0Fv3pCFrdaooJ0p3Nn4H6z4rw4vGOMsQd4HQ3g7/MHiWJ08lgLpmjqjun8ND1g oMbvLOdvdFPPVZsyrXorNxur8vC+Ji/ao9Ored057nOP9khISeG0CaXv3mJjNHrt8KFe3Nr1pew wqmigeFf79Xe+PyGXjXo2fwsNeM3KDL69bmDc90Wrfeq8w/5QryQ3+s8FCrwgz5Pwvv3h66CHfJ DSyDVZAw1sRkKlZ0TuN1lNb/UGWUR1HRUZjBxQNkPchnnIrlxTujsk8bRqzMLgHUX1TUgXAlRrM ym1gn3e37Z+Bp/PlIW2r98eBgIC2rBnwQorZbcGyTWBDK57cJxeGGzt7O43g1geiXp+15Xp/ouX YEHwd/Cr4GAENLL5ggxyDZb9uDCeQVskgMdvcaQZSeWzUEZgbM3aOWkhGwxbuL0toOZE3VPhLBM xQ= X-Received: by 2002:a05:7300:5b9e:b0:2cf:28e8:d784 with SMTP id 5a478bee46e88-2efb9c84f2emr4962937eec.19.1777956327189; Mon, 04 May 2026 21:45:27 -0700 (PDT) Received: from google.com ([2a00:79e0:2ebe:8:94ef:a6f3:2c96:2d58]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2f3bf67cf8dsm3627254eec.6.2026.05.04.21.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2026 21:45:26 -0700 (PDT) Date: Mon, 4 May 2026 21:45:22 -0700 From: Dmitry Torokhov To: Aaro Koskinen Cc: Oleksij Rempel , Janusz Krzysztofik , Tony Lindgren , Linus Walleij , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH v2 1/2] Input: ads7846 - restore half-duplex support Message-ID: References: <20260419161848.825831-1-aaro.koskinen@iki.fi> <20260419161848.825831-2-aaro.koskinen@iki.fi> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Apr 20, 2026 at 10:32:03PM +0300, Aaro Koskinen wrote: > Hi, > > On Sun, Apr 19, 2026 at 05:13:56PM -0700, Dmitry Torokhov wrote: > > > +static void ads7846_halfd_read_state(struct ads7846 *ts) > > > +{ > > > + struct ads7846_packet *packet = ts->packet; > > > + int msg_idx = 0; > > > + > > > + packet->ignore = false; > > > + > > > + while (msg_idx < ts->msg_count) { > > > + int error; > > > + > > > + ads7846_wait_for_hsync(ts); > > > + > > > + error = spi_sync(ts->spi, &ts->msg[msg_idx]); > > > + if (error) { > > > + dev_err_ratelimited(&ts->spi->dev, "spi_sync --> %d\n", > > > + error); > > > + packet->ignore = true; > > > + return; > > > > Sashiko recommends trying to power down ADC on errors, what do you > > think? > > If we want to re-work error handling, then I guess it should be done the > same way for both full and half-duplex modes, and belongs to a separate > change set. This code has been in use quite a while, maybe 20 years, > and I haven't seen those errors in real use anyway, and AFAIK there > hasn't been any bug/problem reports by others either. > > Maybe it wasn't so clearly stated in the commit message, but the patch > just restores the old code verbatim that was working fine for half-duplex > mode. Fair enough, applied. Thanks. -- Dmitry