Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2550608pxb; Tue, 23 Feb 2021 09:33:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpmMDGcLtyTVN8vfQBLD5+fbgk21LYngT4WOsMU4VdaT192s6HcHp7XEfbPGZI8icNTf89 X-Received: by 2002:a17:906:3e42:: with SMTP id t2mr24595103eji.554.1614101611519; Tue, 23 Feb 2021 09:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614101611; cv=none; d=google.com; s=arc-20160816; b=as3eLBUQZ2zFOjWOoSSjOLqK3tq7jz9C6YAom77ON7JTfSjDM1oBGz0rqiOw3pqSTK vMd3mODPXOb97SWg3m8R4N3Rn+mcNwCRFAAIjwqV+HbIXtxbN66DUDkdYdpQwvrgaMPU 1VU50LC9AirdSrcn27cAQ024w/Vl92MmBzpUbF3KDumCSC2mRbgoWkVSnexE7CXh7y3S S5kNWFGJOKcSX6rHENV+lozPGfvwopcyUnJxWCyjoSET3ZZI48gtjCgwQQVE55MXqo2d dh8HcEf1tAPcwM9a4dgbAXciQQZq7zC+SLPuVHC/tvVFxNSP8456s1DLOAw0mjxbBA// CCKw== ARC-Message-Signature: i=1; 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:cc:to:from:date:dkim-signature; bh=ijxpW2DfFdumChRgWUkTrxf7LLo5YSmp/Ds+GmDX32Y=; b=EZGcHf5ynVn1njToQk+iNDjs1k6qd30Rl+b9GVi+zUA1+Yufe/G65T7EMXkV69009g 9gz35Ouzkh6L3BYYNs2dM7aLVPQlbe8cu+yqjzGtIwpz8AhXY1zNyvCo6EV+arjATH92 312eV0r/jHx65BL+FxmrS8mUrQoVltdquV49QHbGlevUKYibz80yhy9j1Q/PGJ2wLjvu rDWMH7ziQ+Xfb4N0Td2eWqUtSe7C9OiPUX6VreS5lZoyWXfASW6hDl98rHt8K7B5n8dP 2Z+gS+Jr2H9WBN5rGSnUVuglo8npEw/3k4L9X/gnQ2PO8brj5IkZybx7fRLsvV5NMmiI 73xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LisSXAp2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si17103416edb.298.2021.02.23.09.33.07; Tue, 23 Feb 2021 09:33:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LisSXAp2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233680AbhBWRbd (ORCPT + 99 others); Tue, 23 Feb 2021 12:31:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbhBWRbc (ORCPT ); Tue, 23 Feb 2021 12:31:32 -0500 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1161C06174A; Tue, 23 Feb 2021 09:30:51 -0800 (PST) Received: by mail-pg1-x52a.google.com with SMTP id l2so2747385pgb.1; Tue, 23 Feb 2021 09:30:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ijxpW2DfFdumChRgWUkTrxf7LLo5YSmp/Ds+GmDX32Y=; b=LisSXAp23t1M5d+ce++duF5lbFrorV/pS3+pcFH1y0g6H3VTdEyIGjYJqx5SyNiF/k kFISxxKE70c7wnt4KRlOG06H8343QPKy4p0KZGGLI/mpzgPMjuCZL5ES+WGg8Nmo9N6J MWP3nG+obXoH7Kif5IumP7rEj7kcEKOM3vfNiR3dtX6WCTpDJR0cyyoJb6oCvYl80yYN 2dfD3ShbUBJlALA7uLz9DmpXPG4MJtzswCzWW52SZ2IEcMQE4F4b2ZEbTekK36gFy9Py fmxyR/6qN5217Q7PlKvhHPBdWRZrh4FWG6+TOzNccAKd0B6LqzNbkfimcAA4ZtUhCjed 8VlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ijxpW2DfFdumChRgWUkTrxf7LLo5YSmp/Ds+GmDX32Y=; b=iwharimmAzUDkTDFFnEnlkwNxO3uK/8LuWW3jaYUssWpwNQGxY8JYzlx0QAJTp10hV pGfUlgwj29PUNZf8XYzC+KxEAt9rTqQMNrzMUOpUDeifugSydwxCcDxLrv9WjORXe5M0 MzBVApQj2dwNbdPyVWteajksYIm61z62we0CQBqpPy8MPNufiiWBF9KmqvpZos3pj6o7 MffjwulouaBx+XsULvEr06eu4feHBvOdiqIjagwWQTIFDAdAobj4D0fXblfUdlqAxOwE e9JBrCtSsnoJotARnjLwvUtYLu1wVIiHqgefM2F8O5208A8h6KZQArWU8Yv+VMBvKLA0 Ut6g== X-Gm-Message-State: AOAM533wYPKD1mJR0oi5apJwrpJa5AVui+++hkhSMVsKQk1uAMEEiAPB HMcRx4ZGI8YvuajROnHkphU= X-Received: by 2002:a63:e614:: with SMTP id g20mr13691663pgh.275.1614101451386; Tue, 23 Feb 2021 09:30:51 -0800 (PST) Received: from google.com ([2620:15c:202:201:703e:f61b:7159:b96b]) by smtp.gmail.com with ESMTPSA id 190sm844005pfv.155.2021.02.23.09.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 09:30:50 -0800 (PST) Date: Tue, 23 Feb 2021 09:30:47 -0800 From: Dmitry Torokhov To: Michael Tretter Cc: Geert Uytterhoeven , Andrej Valek , linux-input@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: st1232 - Fix NORMAL vs. IDLE state handling Message-ID: References: <20210223090201.1430542-1-geert+renesas@glider.be> <20210223102900.GA8833@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210223102900.GA8833@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 11:29:00AM +0100, Michael Tretter wrote: > On Tue, 23 Feb 2021 10:02:01 +0100, Geert Uytterhoeven wrote: > > NORMAL (0x0) and IDLE (0x4) are really two different states. Hence you > > cannot check for both using a bitmask, as that checks for IDLE only, > > breaking operation for devices that are in NORMAL state. > > Thanks. I missed that the state is actually a value and not a bitfield. > > > > > Fix the wait function to report either state as ready. > > > > Fixes: 6524d8eac258452e ("Input: st1232 - add IDLE state as ready condition") > > Signed-off-by: Geert Uytterhoeven > > Reviewed-by: Michael Tretter Applied, thank you. -- Dmitry