Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3896466imm; Wed, 5 Sep 2018 07:41:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYx+1ueEYfse8NnwGd82n48HzoMnz6LTKY4umYd6SzLVsCdwVM+0Apw/3yTfHNV5bx55Vc/ X-Received: by 2002:a17:902:704c:: with SMTP id h12-v6mr39117826plt.237.1536158475305; Wed, 05 Sep 2018 07:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536158475; cv=none; d=google.com; s=arc-20160816; b=J9Xpvq5PihYCFo+CN3UIm7E0yJzqojZeP//KHOUOyczQSnUwpDH2o0xk5EYaH2o0Vh gH2hlBmvb2IDpWoIHyHYa4Nvh8Of/Gn37K3R4sFW3WqautW5MGavOkBbBU7+bEwxF5XY odWlYIUYE4AT/Pc48BFY4YrAQSYqY0n4/sf1jfMGFdg+WflRtjl7BISR3nUIavUKqYIE GLVZpyiP4dCEbq0/IZ/c0YwcyqoPj3955OsCunrQYFNnpD0INJRtL5DpKVyUqPN2XPcy DGRoWdpKBtlH1HEKItPIz6GMajrfL9EKd18YpbIWKN1/HvPSfVWEz1pM2WpcDpRf3gTl 0K6w== 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=VmhHOhFFd7KMAcq1YtPj9++7Fos2s3vyhqMpoJfIdGQ=; b=x6q28uk2D1gTvrv22mtQQ0dE0ziq53u8iM4Xlr/zcQu/jLdNi30O8PTR1rQxxBMVEg aR+D7plRT6YJuJkbkOYKepWsb5EhVXGTpdfPQGu868ywAcGb1NMjRHIa2j37IGvehkHk p88qRKNHC9dgQtsqCdw4GPi7ERYkiOAAGmbFHVHU8VnrmTAIOGICyxBW+tl2mm9l26i1 OtkrH30QaND+TdeW5YIH4gjFFZ/Bm7rL6UqhTjmU0Oz92JYnzArU/dbKeJcwRSTwlDGX FFlVBHgkm5RJNLiY+asmLfO+B2LWYYsKTgPw2HSAab3OzAZgW1RJvqPc7k7SqNX5JzSL A/LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=V3ibOBGR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64-v6si1967430plk.257.2018.09.05.07.40.59; Wed, 05 Sep 2018 07:41:15 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=V3ibOBGR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbeIETJx (ORCPT + 99 others); Wed, 5 Sep 2018 15:09:53 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:44736 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbeIETJx (ORCPT ); Wed, 5 Sep 2018 15:09:53 -0400 Received: by mail-ed1-f65.google.com with SMTP id s10-v6so6257740edb.11; Wed, 05 Sep 2018 07:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VmhHOhFFd7KMAcq1YtPj9++7Fos2s3vyhqMpoJfIdGQ=; b=V3ibOBGRA4QR94pgYXUSYTMbCf6B7BXbHvv+GE64ktH7Q8ffa8ofWW/LsoNGBB5LVE rI2tWxchNpZiT6bpeA9LsCMqzp/e2jnT08uKuB0pdXw3qye9XOAmCPX8BkTxoJAH0dGF /BrQo5nWfwM/0mX1q9KkcJMObf4q7rM4TBG5BHgi4Qx1Wy0q5fuGDX/gg4uKB5wL1eAi n41Js1zH1NcvcyD84DZ5ITgBKIm2FEqCkmvf0XyXape2MULVWjLPczEyfHqS+TjHhjl4 s66Ox/qwJr8y4IHUyVzAzzxzWL/VFLMeOZ/J1sCuIm5wMpAOBH6wHVGFuTuLbdVxa3/r 9cYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=VmhHOhFFd7KMAcq1YtPj9++7Fos2s3vyhqMpoJfIdGQ=; b=aykHz8Xyl3wsAkOSY4MvwUShQNt6Rwva7bX5g3uWh9cgkkC+o1jjaV8mfaCaSykqV6 HCczO5bE2fi3gqaXgXB6FXLYq6w2EbZNJ0Ux01T8v6Zb+F+cf8M5B0WrO2wxaDAIlIJP iIwOjwlcoNu+HLYyAE8qN+jCCvbfd8SAPYfidFBu0mF+3/POhjz2KkZT/qs4pCaFobly qpti5q4+c/oI2OKNiriHSekwIKxvdgenhhyIsch4I3d28KsaX3y6lQQLdDUIbUUKdMnD 1cRbIUqMtDCwPv9sF5xddEu+6pffNQpYz2RBGmH09+xP0r4qFEhJTxu1LYcskrY3srPX io/g== X-Gm-Message-State: APzg51BY13I8l2adVe1GzjYYErseMl55Mdrev8zKUBZDrCt91OJg92nb AqYCHtpZAUSXX9owdmQmv5U= X-Received: by 2002:a50:adaa:: with SMTP id a39-v6mr42543416edd.194.1536158362843; Wed, 05 Sep 2018 07:39:22 -0700 (PDT) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id e38-v6sm1317112eda.74.2018.09.05.07.39.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 07:39:22 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1fxYxx-0004dd-7A; Wed, 05 Sep 2018 16:39:33 +0200 Date: Wed, 5 Sep 2018 16:39:33 +0200 From: Johan Hovold To: "Ji-Ze Hong (Peter Hong)" Cc: johan@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, peter_hong@fintek.com.tw, hpeter+linux_kernel@gmail.com, Oliver Neukum Subject: Re: [PATCH V2 1/4] USB: serial: f81232: clear overrun flag Message-ID: <20180905143933.GC1089@localhost> References: <1535593634-22004-1-git-send-email-hpeter+linux_kernel@gmail.com> <1535593634-22004-2-git-send-email-hpeter+linux_kernel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1535593634-22004-2-git-send-email-hpeter+linux_kernel@gmail.com> 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 Thu, Aug 30, 2018 at 09:47:10AM +0800, Ji-Ze Hong (Peter Hong) wrote: > The F81232 will report data and LSR with bulk like following format: > bulk-in data: [LSR(1Byte)+DATA(1Byte)][LSR(1Byte)+DATA(1Byte)]... > > LSR will auto clear frame/parity/break error flag when reading by H/W, > but overrrun will only cleared when reading LSR. So this patch add a > worker to read LSR when OE. > > Cc: Oliver Neukum > Signed-off-by: Ji-Ze Hong (Peter Hong) > --- > v2: > 1: Add flush_work(&port_priv->lsr_work) in f81232_close(). > Thanks for notice by Oliver Neukum Looks like you ignored Oliver's comment that you needed to take care of any pending lsr work both and close and suspend. Johan