Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2283086ybc; Wed, 13 Nov 2019 11:51:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwiT7nqZM0TzP+LfDaKJHipc2pcfWwfRLbAS/EOKo84TNMGsQp69dXRJnK+g28ookJUxFRL X-Received: by 2002:a17:906:1c97:: with SMTP id g23mr4582753ejh.66.1573674682294; Wed, 13 Nov 2019 11:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573674682; cv=none; d=google.com; s=arc-20160816; b=wS6Fmh/3updhF1rcD5IBdoz+0JDGsiozIftbdoAtnE5d6AeZVtzjCr4KFeC5MuJ6Bd Z52fQKKs0CIhtpIqQbqqHUyfip9lRP0WWs46EXiDMP2i4i5J75MlND3xqryctSPLAhr3 R0GetTdiJa/SmTFAhAPODWMOjmrHkS7QJAaFx1rlMHB4t83qPvl/PK51Av0hZixas/HU rb89QQpaqUZGnYiojYS8X/ZBmrmjVBK48HPObuDsH+9BIRkk6Ro5SIOQweNxQgMbzR9G Xby3RxHlCNJ3UQSgWghhGeJn6x+u2TAGhPtku45lfgLcftvEepJRiJLOO/D9hdwFKMy7 jDKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BFoRUmVGuqfT8D907Uc8h7RLulbYqimY28gR6tuKhsw=; b=yOs8bIh9JzPkT6I4cx3vRH1HEQRHPIe8DKizdz+kkc1NMlfxXRP5KDs8r/nv161HFJ h8Xa87MBx1CsuEIl597EjSBekcWJ8/uhJVp5rDQN9/4WXEP+Zm/E5Fu0G/saycZE6mkk k60EGBXywzB5x77NRznANpLp9VvXDmF1Pb+eCZfLxQJ6vhF0aagmE39P3jU0MCersyhg UeyhkFUPmTfP15wNI7neRlYhAHmjhPzWr0FR8sFSWXnNQeKv97PdwjGGPzHHZUB+oxlv mWGp+22tmglW4x36u8iBWr8rQRqco7Jk4/1DVTSa3hvF7pN+JR7P0Rdqela35pn39jiO wpOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=STfRnUb5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i47si2246746eda.91.2019.11.13.11.50.57; Wed, 13 Nov 2019 11:51:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=STfRnUb5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726350AbfKMTu3 (ORCPT + 99 others); Wed, 13 Nov 2019 14:50:29 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35268 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbfKMTu2 (ORCPT ); Wed, 13 Nov 2019 14:50:28 -0500 Received: by mail-pg1-f195.google.com with SMTP id q22so2024482pgk.2; Wed, 13 Nov 2019 11:50:28 -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:user-agent; bh=BFoRUmVGuqfT8D907Uc8h7RLulbYqimY28gR6tuKhsw=; b=STfRnUb5HQzoMpwJTkSiSPorz5xOTt8hyuLlhaoKkTg+O44qxcE1vmvZMhAYZEvBKG jR6l5klwJAb2UEDyzhCDIhEm1ZO/T+wqXxDeaac86LCWt40PMi5VQ8aC1j8X067ln14a orgIvc9Ym+gAg9W3ZkzLLS/WdZeD/XTQEDg4YBlqM9b3JUQiJEzVsD9LbnHQg9+2i4bs 8z+7Yi6HYJAf2xZtx2KU/SpEI7NnJq79k2UZwju7YiVJBzwA3/vLULB24xa7GbRpnDeM ewMyZt/FMdv4DaR/DItD892Ey2qCtHfgtX/49fejw8Vv107Cj4TYa76li9PKd6htlAEI GFSw== 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:user-agent; bh=BFoRUmVGuqfT8D907Uc8h7RLulbYqimY28gR6tuKhsw=; b=obO1sSGwnHDQfFMcAzD3wdWkp4taJY/yrN9r+ze/5kT1r6fCyLUyDCUGPR/gOnrOty PqyTE2G2GDWH4MqFOu7ssiK5AHqq+3+YlX9UwKvkTEIOL61teIsTLGfBUcPSJUQhupEF 73HtIk02i0Tycr+9Z+KXSoVTUHbzwmaA6x9GznFNwcEVFpoiIktGw8TyBKttpPTOaVtR dIBnU2B4ELVDdVsc5q0O1Njla2KQuOurR5zLWoOjPNyrWLgwyQjOy4V92LXKuBuHIIh+ +nSgznn9j3wvw4hwQNPFn7D48Qiv5M1M1Oz/gWLWF3tMbZbvDzXyEKO0aXRB62naFgPy j11w== X-Gm-Message-State: APjAAAWSWXuQTyAJmsspRyUcf320rJ/SU0kHT0S78ADUpDB6PQ/A0iN8 fEdwS2oNFjS8BhNgf1nsvTyXIiFX X-Received: by 2002:a63:7c10:: with SMTP id x16mr5640672pgc.176.1573674627887; Wed, 13 Nov 2019 11:50:27 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id j5sm3875541pfe.100.2019.11.13.11.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 11:50:27 -0800 (PST) Date: Wed, 13 Nov 2019 11:50:25 -0800 From: Dmitry Torokhov To: Chuhong Yuan Cc: linux-input@vger.kernel.org, LKML Subject: Re: [PATCH] Input: synaptics-rmi4 - add missed operations in remove Message-ID: <20191113195025.GR13374@dtor-ws> References: <20191113063656.8713-1-hslester96@gmail.com> <20191113082315.GP13374@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 04:52:59PM +0800, Chuhong Yuan wrote: > On Wed, Nov 13, 2019 at 4:23 PM Dmitry Torokhov > wrote: > > > > On Wed, Nov 13, 2019 at 02:36:56PM +0800, Chuhong Yuan wrote: > > > The driver forgets to deal with work and workqueue in remove like what > > > is done when probe fails. > > > Add the missed operations to fix it. > > > > Is it really possible for the work to still be pending when fully > > registered device is properly unregistered? I thought we'd wait for > > successful data acquisition in rmi_f54_buffer_queue() before unregister > > can complete. > > > > In fact, I am not familiar with the mechanism here... > I have checked other drivers with video_unregister_device and found none of > them deals with work in remove. > Therefore, I think your opinion should be right and we only need to deal with > the workqueue. OK, please send the updated patch then. Thanks! -- Dmitry