Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp18324yba; Wed, 3 Apr 2019 03:37:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtHN9xCsXeoaFT5L06Cpy19odZEwcok23+4DoKlFndjOW2WtfMGdXGePp+E6qdg9NDKIUQ X-Received: by 2002:a62:2587:: with SMTP id l129mr17832053pfl.151.1554287869951; Wed, 03 Apr 2019 03:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554287869; cv=none; d=google.com; s=arc-20160816; b=TZR0oQTN7q1JV+FAmLlelk9yl3Knx5HRvQ4FoeWflDCI9bb7zvOFnTxA3VHymga3qv kOEgYLT/dgagMxdvV3yezPHtUY12AIk88pTxwJKHKr4+fWABRhV9C/RIGUsW3AMgO9eJ CMD6sZHqB3x0FEBIGgFOs1a6+Ey7L3WRTuFGxWNSuLYZidcu36LMM+i1yhfrgQ6woee8 xuS3s9qtaw1+5hX538RC8ydzUKrwkl80LjO/9WrxhthsJXZDdt0lpVJ3N4N2ui3dPa5V vQdtUhTweHYBsUHQkZb1Im11RYtAN++Ca98g5IfHhwukzRXksWEWWE/1IZX3D0icz60W fuMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=kIaGmvWK4tCAUpku/RItM4hDRkabU+wa6DKyYo5e3s8=; b=pH66VD8FJE7CvKosbabSxomIJ8SgnnbzFFOzuT13207JYnWgEMshu9VVJbpqIkiguN EcrWlHplccP9f69SK390oSOqisPVM+1Q0C0hDcGU5R1fU6sm2Xo/57cGqRzDVhOsEE7k vWUkmTJtU5WOJNMcpOjZf/CLO7NB7OVoQS1GtqS/UQmNtYrbpqiyodsSdCFXAAfSupnC ZTQdYxFt8A2r+m2+uQiMOUyCenygKGKx5UrDhLfDvXRNnB1ztyuHRmWtoMNCX9uNW+t8 24pfrZMnRMMOwlGxCO++mKgb39L7uN6Zg+tXdpg+QTEXY8Twb7yVGQhH/kknPaIjs1Nq i2AA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si12975146pgq.390.2019.04.03.03.37.34; Wed, 03 Apr 2019 03:37:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726549AbfDCKgu (ORCPT + 99 others); Wed, 3 Apr 2019 06:36:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:47746 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726263AbfDCKgu (ORCPT ); Wed, 3 Apr 2019 06:36:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B21A0AB6D; Wed, 3 Apr 2019 10:36:48 +0000 (UTC) Message-ID: <1554287791.20869.6.camel@suse.com> Subject: Re: [PATCH V6 1/3] USB: serial: f81232: clear overrun flag From: Oliver Neukum To: "Ji-Ze Hong (Peter Hong)" , peter_hong@fintek.com.tw, johan@kernel.org, gregkh@linuxfoundation.org Cc: "Ji-Ze Hong (Peter Hong)" , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Wed, 03 Apr 2019 12:36:31 +0200 In-Reply-To: <1554280832-29286-1-git-send-email-hpeter+linux_kernel@gmail.com> References: <1554280832-29286-1-git-send-email-hpeter+linux_kernel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mi, 2019-04-03 at 16:40 +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) Reviewed-by: Oliver Neukum