Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1601499ybb; Fri, 29 Mar 2019 07:41:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3t724t8k08/0A8ISOub0Uc+C0hWZaOhlq7GUGc4o+0HraXVyeQFcVbn0fZKqqtlLbjSR/ X-Received: by 2002:a17:902:f81:: with SMTP id 1mr14885704plz.216.1553870517775; Fri, 29 Mar 2019 07:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553870517; cv=none; d=google.com; s=arc-20160816; b=C715l9gh0BqnIpaAGtZjcSpWTlUzQGmSeAtO02jZLDOgcg4Eo+/koWO88nxH+9KUDo r//w31hyNk2EC6VZjdxvlp/QXVPrFHgHOwiKcAqjIRSyMH5fnnLhRY35AzXg5uO+YIGx AzZNNoZJvcbSAZft/GEofhPhB7rZoCdx0RPoZi6vj8xxnENxHZcC9BMtacBgVc++beW8 qq13zKzPl7Du+ni0D49wxT6Wx76mFFoyE6HGrr3ppQcn6zcCJoqeUdEFChGyxp77seq/ EOFxtLRVQHYPU6TCQequW2KNiQSZyOzKhjzQWM4F/k47tRF4y0HPkUgaQb+BjeX4PwDb EYbg== 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; bh=1m4WkVpmFHhVXK/F9iVemn6CgoVQb/s1ZYilF+ONsG8=; b=HeyAtfd3IfOGYPC+VagOnSXPmHTQ/QOm0XOBLwPC8z0BPhgypsji2N4Na7Fmu7LKiV 1PHePaRhrD55JgcGGScOT3yDOGCcnlHPBtgaCpnh0+xGj0WEPIsTuB38ZORtCB9aCMFv 6zB4LlWAfhhNATQTuIa9zyMHV6sFXNusLuAFiVpkbL0Iad5iagLcZ0hM34liQYj4lIr4 EDSpiIy1HQdlUYXPeJSr7a2lFowV7eDeGdcOJuohUnoPLAzv81pSzi9R/Y3loiFgNzoU 2EOZW7OYhFJszUoJ9Xe4QiG4fMhxW0850tKWOBW5g4mD5OixlB4UOGEQPhhBl1ArKEHe me5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 a95si2202593pla.350.2019.03.29.07.41.42; Fri, 29 Mar 2019 07:41:57 -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; 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 S1729212AbfC2Okq (ORCPT + 99 others); Fri, 29 Mar 2019 10:40:46 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46226 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728711AbfC2Okq (ORCPT ); Fri, 29 Mar 2019 10:40:46 -0400 Received: by mail-lj1-f193.google.com with SMTP id h21so2152720ljk.13; Fri, 29 Mar 2019 07:40:44 -0700 (PDT) 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=1m4WkVpmFHhVXK/F9iVemn6CgoVQb/s1ZYilF+ONsG8=; b=OramSq6HLTkhP1jNtCXO+ep7drMOjWIk6S2gTfSL/56nEDftlUecGrEY0eqEbiIzfI QR070LiUUNRiQVcQEd/+9y3RhAuW4LQPsxyqjxL6rs/wvRgTEY23wlnZ9x+F1GSvArHY vp7Xt1rifmz3Fr4KiA/LsK9dcs9PvLUIa5ZyEUDlPanexAS1/fBBffG8xVR4vlt4pcCa p49lgzYJVyBaKfcjGlm6Zg7O+RPF8y96QeROqdzCRDu5Zm4XLZFtH9B5UYiAHQ3d993w 3wBPlfay5znmwGDNMAvw3LnnVRMTsi1btEqD1nvUcM7b2j88nmpeeWbhqC3ZGtbg250W zENQ== X-Gm-Message-State: APjAAAWSj/wq55/9q7UpwILFk/ciBf0PfEfISKl23C9+SUr/cPaVK2RR txzw/43TJ9VxK5M++Y6R/Yw= X-Received: by 2002:a2e:9f05:: with SMTP id u5mr24703316ljk.183.1553870443958; Fri, 29 Mar 2019 07:40:43 -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 v21sm326558lfg.26.2019.03.29.07.40.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 07:40:42 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1h9sgd-0003I4-C1; Fri, 29 Mar 2019 15:40:51 +0100 Date: Fri, 29 Mar 2019 15:40:51 +0100 From: Johan Hovold To: "Ji-Ze Hong (Peter Hong)" Cc: peter_hong@fintek.com.tw, johan@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Ji-Ze Hong (Peter Hong)" , Oliver Neukum Subject: Re: [PATCH V3 1/3] USB: serial: f81232: clear overrun flag Message-ID: <20190329144051.GA12562@localhost> References: <1553848122-1227-1-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: <1553848122-1227-1-git-send-email-hpeter+linux_kernel@gmail.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 29, 2019 at 04:28:40PM +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 overrun and flush the worker on close() & > suspend(). > > Cc: Oliver Neukum > Signed-off-by: Ji-Ze Hong (Peter Hong) > --- What changed since v2? Please always make sure to include a changelog here below the cut-off line. Thanks, Johan