Message ID | 1395166721-15716-2-git-send-email-robherring2@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBD62P6P6EQIMVHFCTECRUBEZJGYXK@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6AA90202FA for <linaro@patches.linaro.org>; Tue, 18 Mar 2014 18:19:54 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lg15sf17693208vcb.7 for <linaro@patches.linaro.org>; Tue, 18 Mar 2014 11:19:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=dYLer0jN9WWpBHQpC4L9UeTreEZdm4U+M8rbZO1Y+d0=; b=daAJ12XhpO40DlX9xmkUhu1jgpshCDKYRoLlXcHiUEbDJecp4qXetwYtS5nPdjF4OD g1nfGlQK1v5m7yIMtFJ1ljU6c4yeyaQYOkaYIRZ/bFb17+bOuKqmvAHl+1GJDeSapGJC ajdAHEB+p6g/40Z94rbLm7zrzXX+J6nfgnHKq02eGeXb7Ctwr0hiXP5S54DBV25kFU3f lZmEM31F+dX/dOLe4tq4sBilM9V9wwMJW4SxbzbJ7Xr6W/NNtsnmHNozIWWngYV2FHYX X7ToUym6+UqX5kfjrr6GDEDDUN2tqM5wo7UZbiSBMyaRNHQj/sOdrZ8+zomPeDfjP9BM a/MA== X-Gm-Message-State: ALoCoQk7RnPvIBTYDaH3Ap7mXl8akLwN+llkr7W9ynPa/T94DyvXyy13M48RxWpSvlM9LwPam64o X-Received: by 10.236.209.134 with SMTP id s6mr4617134yho.40.1395166794199; Tue, 18 Mar 2014 11:19:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.240 with SMTP id t103ls1382103qgt.3.gmail; Tue, 18 Mar 2014 11:19:54 -0700 (PDT) X-Received: by 10.220.191.134 with SMTP id dm6mr26435492vcb.16.1395166793992; Tue, 18 Mar 2014 11:19:53 -0700 (PDT) Received: from mail-vc0-x22b.google.com (mail-vc0-x22b.google.com [2607:f8b0:400c:c03::22b]) by mx.google.com with ESMTPS id xt2si6751865vcb.33.2014.03.18.11.19.53 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 11:19:53 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c03::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c03::22b; Received: by mail-vc0-f171.google.com with SMTP id lg15so7898859vcb.30 for <patchwork-forward@linaro.org>; Tue, 18 Mar 2014 11:19:53 -0700 (PDT) X-Received: by 10.58.238.35 with SMTP id vh3mr25651400vec.16.1395166793860; Tue, 18 Mar 2014 11:19:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp234601vck; Tue, 18 Mar 2014 11:19:53 -0700 (PDT) X-Received: by 10.140.92.201 with SMTP id b67mr24706172qge.58.1395166792949; Tue, 18 Mar 2014 11:19:52 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id u4si11170611qat.60.2014.03.18.11.19.52 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 18 Mar 2014 11:19:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:36882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1WPycC-0006tS-9D for patch@linaro.org; Tue, 18 Mar 2014 14:19:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <robherring2@gmail.com>) id 1WPybM-0005yU-W4 for qemu-devel@nongnu.org; Tue, 18 Mar 2014 14:19:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <robherring2@gmail.com>) id 1WPybF-0006xy-Ht for qemu-devel@nongnu.org; Tue, 18 Mar 2014 14:19:00 -0400 Received: from mail-oa0-x22a.google.com ([2607:f8b0:4003:c02::22a]:64865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <robherring2@gmail.com>) id 1WPybF-0006x9-DD for qemu-devel@nongnu.org; Tue, 18 Mar 2014 14:18:53 -0400 Received: by mail-oa0-f42.google.com with SMTP id i4so7414138oah.15 for <qemu-devel@nongnu.org>; Tue, 18 Mar 2014 11:18:52 -0700 (PDT) X-Received: by 10.182.44.167 with SMTP id f7mr25091208obm.3.1395166732876; Tue, 18 Mar 2014 11:18:52 -0700 (PDT) Received: from localhost.localdomain (72-48-77-163.dyn.grandenetworks.net. [72.48.77.163]) by mx.google.com with ESMTPSA id wj7sm33595445obc.8.2014.03.18.11.18.51 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 11:18:52 -0700 (PDT) From: Rob Herring <robherring2@gmail.com> To: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org> Date: Tue, 18 Mar 2014 13:18:39 -0500 Message-Id: <1395166721-15716-2-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395166721-15716-1-git-send-email-robherring2@gmail.com> References: <1395166721-15716-1-git-send-email-robherring2@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22a Cc: Rob Herring <rob.herring@linaro.org> Subject: [Qemu-devel] [PATCH v3 1/3] pl011: reset the fifo when enabled or disabled X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Original-Sender: robherring2@gmail.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c03::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=fail header.i=@gmail.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/hw/char/pl011.c b/hw/char/pl011.c index a8ae6f4..8103e2e 100644 --- a/hw/char/pl011.c +++ b/hw/char/pl011.c @@ -162,6 +162,11 @@ static void pl011_write(void *opaque, hwaddr offset, s->fbrd = value; break; case 11: /* UARTLCR_H */ + /* Reset the FIFO state on FIFO enable or disable */ + if ((s->lcr ^ value) & 0x10) { + s->read_count = 0; + s->read_pos = 0; + } s->lcr = value; pl011_set_read_trigger(s); break;