Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2609381rwr; Fri, 28 Apr 2023 12:55:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JqK9gELO7vpbSeR3Lmj8B/5liUsGxihmt7MrgXlFGg+CFl5waW2YeVPrRI+m+kDXmpmiW X-Received: by 2002:a05:6a21:9991:b0:ef:7d7b:433b with SMTP id ve17-20020a056a21999100b000ef7d7b433bmr7506570pzb.41.1682711740243; Fri, 28 Apr 2023 12:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682711740; cv=none; d=google.com; s=arc-20160816; b=MeUS5xl2fgn5imMnjYattJAuFCzYh2Zc89TxTFZaqqYtuGr5dK2/hVlZAN7GveFUeI 3uNnw/M4eKu/4dvAdkJLRAA5AW36OLPOBW7lrSD08kG98aE9yxlERm21c0NG9nEdhnzS mW/kTVOkvwxUVa+PV93XWUCghFvE/q2jXzAdN0YpH1THKk3TD+KBDrvgs3t7F/WHFDLp ssLkbbAxCZNHDbt9gzCWv4T5jlmfs4vQ2U3luCzPSUsnUuUIAIwNFf48aRH3Qv0U8pzk 39RGnW4BpxzdBca/fAlbocNoiVvhXJXk2eXY1mo3/0/+OiuYHxPGByg02TUxsojwmK5s kWLw== 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=EU2BEr4GbABZSkfPRSInPaA4/T+uOEil033u9+3n5ts=; b=vSQSvywjpJU/cey04qreCv00yk7nsppkZhrppq51WWMRriomgVv1O68lzcwQqd8yNn 7XHGk4zLm4mRVIucBkw9T0euMWNYRIrz+BzVnWje8xypyEqcPbBQT6v2fEGUkeQAMMS+ DDBEgQacHgcQxY3LQEYud/hbkOWOso/KjZs2bYLTbUsURVuS7QlA4pnp7nC76JpezHZH G8hMx2kQMA1EdvsjQB9FRq3A0J7OH7QxFeaa+soIz7Mn4V7JM/nk++xANRa4F4r7z826 ge4z5ZxmOwm7o9XhVOoMA81VfQhqLlmv7xKHUJOaL+l8mAGzTMups3jtJixz5KDrq3/D ANeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kTqtX4gV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v62-20020a638941000000b0051b554df1c2si22491142pgd.497.2023.04.28.12.55.26; Fri, 28 Apr 2023 12:55:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kTqtX4gV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1346536AbjD1Twy (ORCPT + 99 others); Fri, 28 Apr 2023 15:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346531AbjD1Tww (ORCPT ); Fri, 28 Apr 2023 15:52:52 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B114527C; Fri, 28 Apr 2023 12:52:48 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-63b35789313so311706b3a.3; Fri, 28 Apr 2023 12:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682711567; x=1685303567; 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=EU2BEr4GbABZSkfPRSInPaA4/T+uOEil033u9+3n5ts=; b=kTqtX4gVsmNn+eqpcHgq5VmvQiBK6Jr66NXl3tvFUFKj15RHUDjIWVpzj2z6HpVVcN JP7aTro2E+nU37Y8XmICZnf5pWDupoYW2JPijj6r6MKnhUvzMsMSpr+1H/GU3DAgVndD byAjS02d35eqtzh7JQZcDXx7pp0ZXbQ859ZrP5VhyMzDVH3Vt+4N2nmGmzdkB9sHIGj+ KCV51yLgvCr+vAC8wZbcKWWC4evt0VPZfJE/hONRD86rzscjJl+RkvN5oL5VezD23luD UNX76Xg9sIy+TLKPV+QfC5dE+D58CwSP+Iu/FVThnsZilnSNyFboNGY/EXafBvT8yYrU b2+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682711567; x=1685303567; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EU2BEr4GbABZSkfPRSInPaA4/T+uOEil033u9+3n5ts=; b=DCYD/83RxDm1gZNNqW5Xth19jp96OPq/G52hm/XIDiLzDmZSusdGYmQ0OVaC8D0cKU eTBRfEfP2OoUffCQz6Boi5ajqX6UEvuJN8bbmTfKT0ScrPj3AxRNmuS3y8YpK5WjRcZg /h2opAOFUUn73oxHcKfly8YU1IaiqRHt6zIRyQnOxt4pwaBFG60sn0IQi0YoPdWdEyar RNSDf30AxxOh009FUTAcf7GyyxLMlm5cfhxrowlQFhgdewxGLxM5+zm82RO0lzZNGa/C gZXfID1Q0EbI4VZ8V4kJQIfMzyrob1kALjFKS91+TCeEPU9GixmttYwV9xrLSTJMxitv mwFA== X-Gm-Message-State: AC+VfDzzMBci+BbKqMwu0oOX/zg9xTEq2dmlw7osGT2ui4tONstEytDf 4Tm3hdvoT6MgekIBQNazz8A= X-Received: by 2002:a05:6a00:1501:b0:63d:6228:6888 with SMTP id q1-20020a056a00150100b0063d62286888mr10163483pfu.3.1682711566874; Fri, 28 Apr 2023 12:52:46 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:f36d:d0d9:ea96:1c8f]) by smtp.gmail.com with ESMTPSA id u4-20020a056a00098400b0062dd993fdfcsm15584636pfg.105.2023.04.28.12.52.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 12:52:45 -0700 (PDT) Date: Fri, 28 Apr 2023 12:52:43 -0700 From: Dmitry Torokhov To: Siarhei Vishniakou Cc: Biswarup Pal , kernel-team@android.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Call input_set_timestamp for events injected using uinput Message-ID: References: <20230427000152.1407471-1-biswarupp@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 Fri, Apr 28, 2023 at 11:38:36AM -0700, Siarhei Vishniakou wrote: > Thanks Biswarup! Please avoid top posting. > > Just to add a bit of context: we were concerned with breaking the > existing uinput usages where the caller might be setting an incorrect > value (since previously, that had no effect). > So the 10 second guard was added to fall back to the default behaviour > for those devices. What is the benefit of sending this in uinput? It is not much close to the exact time the hardware generated the event than the timestamp generated in the input core, so I do not see why it is needed in uinput. Thanks. -- Dmitry