Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2296680pxp; Mon, 21 Mar 2022 16:11:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtrcaKGDhsmoHz4GHdPtOpIkMoOjL9PDSJgKDkQ5Bcc0jRu50tPI+pwnL1FMCGtvhB8qPl X-Received: by 2002:a17:90b:4b8a:b0:1c7:24c4:e28c with SMTP id lr10-20020a17090b4b8a00b001c724c4e28cmr1568307pjb.39.1647904285401; Mon, 21 Mar 2022 16:11:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1647904285; cv=pass; d=google.com; s=arc-20160816; b=dUFmlAJ7m08NB0QfoJ25pXl7Vjgm9XLdr5THK4AfTltqt0K9/+s+Q9GVDXKoolWSb+ rkYbU6PQ5HafHx/71bU26lHn5iwZ4rrSKHy+l8lsEFPxJTR06SKYAKrU5HYWPOLs2RJf iaWh04+eibBgKav702+EU2WOWesGg8J7Lod36CfeEKYOCJ5YBxPGv7ee9uW7XHrN6zTm Z3gpdEdklST3JCkbt7Y2juX5gd5WbTcX+IMox/r0SneWZsBu8dGy6nR9/TaIm3atPd3m Zuu25EgEUUxlFgYVBWV3ZehukOk8AAOdgogZ5/pYQOCzAM9Q01qSa7LTc/CJ7YmPRZyP zDIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=XhlgZ0Wc09MSr8A7dkXipS3QK+pUiU/zSGRxylNUegc=; b=Qebk8EglpOB1iUsBp3lU5SjbaXqeu8dlAf9dIVxuhTLWLQGLyDTXheJ2GDW4FRDS02 euOQ+PFPsd77nm90Y0XNwy5nIpl/K7JGuRiVQ205vVEUlwRAJ4fh1k8ywxz93BLHDc9k 8YhoLBHo462vIaB+6n9cRfqKWzuVkOl5eCI3sNab9O2iza7JRiHLGYgQhD/qW0pI4VHm J3gxMQ2fFRD3TtzH+xGRcMCCds3uKMWY7PuuA/C3dM6vPm9J1bMXwq8/p5PFXnoJHVye lBEXGX5YBrc2DEYsesB/GQLWgABAi1zUY291NbnchLVLzxfE7tdRISnB05fmOaAVVl+g 46dQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=UhSPGHz8; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k10-20020a056a00134a00b004fa3a8dffffsi9497989pfu.182.2022.03.21.16.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:11:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=UhSPGHz8; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F0411432B9D; Mon, 21 Mar 2022 15:09:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241562AbiCSPPN (ORCPT + 99 others); Sat, 19 Mar 2022 11:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230497AbiCSPPM (ORCPT ); Sat, 19 Mar 2022 11:15:12 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C422A7769; Sat, 19 Mar 2022 08:13:51 -0700 (PDT) Received: from darkstar.musicnaut.iki.fi (85-76-3-17-nat.elisa-mobile.fi [85.76.3.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: aaro.koskinen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 984741B005CC; Sat, 19 Mar 2022 17:13:48 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1647702829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XhlgZ0Wc09MSr8A7dkXipS3QK+pUiU/zSGRxylNUegc=; b=UhSPGHz8W+GC7+6Mh0NyXiO4i5i+vH9Z2+wXfXkGJYF5h0CMpKQuK97zPxtwBwyxlfkNeH UeCFr8vdgFT3GU65CYMKDFxyFYoQaAiAxvoSzsbaiVl+Ar3eMbgH+yFwBZSE/mLXFuqAsw r+QZhe+8tW4oAu4Ow862f9gz3HQ7GH9fo/O9MLDWlQoX1AAzXvJ4nrverpo/3eRIvuuv6w oC0REesxFeybp1kR/cgQyrETybLBLSDZ6kceknGFN7cN42NojxV0rJA0KU3Z32ckVhcR9j mvZQpOOQweCpBPm698+7K6VjSC0cDUFQCLMjGtwEpCrydZGL2KEcaEgqSJ44Kw== Date: Sat, 19 Mar 2022 17:13:46 +0200 From: Aaro Koskinen To: Dmitry Torokhov , Oleksij Rempel , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BISECTED] input: ads7846: touchscreen broken on Nokia 770 Message-ID: <20220319151346.GE1986@darkstar.musicnaut.iki.fi> References: <20220227185038.GA3016@darkstar.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220227185038.GA3016@darkstar.musicnaut.iki.fi> ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=aaro.koskinen smtp.mailfrom=aaro.koskinen@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1647702829; a=rsa-sha256; cv=none; b=KL61wi7ESnfAE7U2Nj9JD9F5b9KGfxYfptx8QvzFT6QEimSDopzax5bvk1R+duBmNEdtbJ klKD2iMbe0/UshVS/JjkYoq0QCo9gEdkK+w4QGyfVn5qDPoOEFj3qxEicyvy6e2vNa/XG7 +ITuYdeCqzKarlnI/GS3yfUrjjlkkVIF6VFr619MMeEBMszLYNvWRfT5ns+NwyKV/0H4K4 Hz5PFZ89lcfN/7JX5qYnp3HG1LfWGhVXpMI3hl2xn1iJCNxODAECWbX1N7vPpeuxwKfWrh IqqQhqnWkfzF3GMTNzdDaWDJcJgaQ88ticioE3HgbV6km+lboBbi6zIdAHC41g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1647702829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XhlgZ0Wc09MSr8A7dkXipS3QK+pUiU/zSGRxylNUegc=; b=jgFBl8uSXb/OyCHXzrDmZS7Q0GbsorqGtJbcWkBwshmFveBsvcpmSSRnbP8XrRbqZ4yXf6 7h1bI/IkVBYEOpN6uGrX0FKcaU3VhCbKV6PCCOHN+jR694PmFa+mb4wTFlB1ywgkuqaCgy HgyZZmpeSL4kaf/8yR4EEnzWSR/W4qs3pdSDWBS2JBNBg54FDCOE8GG84vZjl5X+qIRPUV ayXXpNSLcfLU+c3IG1pwYvZWKFJjUSsxWXF2WxtnKMz0aQdRMRe95mBAMtvRyzweVpQszO PFobfer/7oTwizw3eBBfdMw9gltKEosxl0AL1kz0Siyw1kO5iI6OmuyWVEGcEg== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, Feb 27, 2022 at 08:50:39PM +0200, Aaro Koskinen wrote: > I noticed touchscreen does not work anymore on Nokia 770: > > [ 2.131011] ads7846 spi2.0: touchscreen, irq 175 > [ 2.200622] input: ADS7846 Touchscreen as /devices/platform/omap_uwire/spi_master/spi2/spi2.0/input/input0 > > (then touching the screen:) > > [ 52.316894] ads7846 spi2.0: spi_sync --> -22 > [ 52.336944] ads7846 spi2.0: spi_sync --> -22 > > bisected this to: > > commit 9c9509717b53e701469493a8d87ed42c7d782502 > Author: Oleksij Rempel > Date: Wed Nov 11 16:39:05 2020 -0800 > > Input: ads7846 - convert to full duplex > > It seems it's failing on SPI_CONTROLLER_HALF_DUPLEX check in > __spi_validate(). The controller used on this board (spi-omap-uwire) > sets that flag. How ads7846 is now supposed to work in that case after > this conversion? Any comments? The touchscreen works after reverting the following patches: 6965eece2a89 ("Input: ads7846 - convert to one message") 9c9509717b53 ("Input: ads7846 - convert to full duplex") A.