From patchwork Tue Jun 16 08:34:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zefan Li X-Patchwork-Id: 49954 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EA79A205DE for ; Tue, 16 Jun 2015 08:39:45 +0000 (UTC) Received: by wgez8 with SMTP id z8sf2575930wge.2 for ; Tue, 16 Jun 2015 01:39:45 -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:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=JGXB8eGSdAMay61SPEzoFtg8YQ8uruk5aaXYwosyHoA=; b=XOQ6nSolkIaepODb/0Z8s3e4WTh39iI+L016Si2uMrcBoq6ewVjAnei+ZTjFzyLgvk lwg+t3+eYLOHnhHO8dyKApJdr3n5EYH2AYFs3m2uH/1sy+fPOjvq6A+AhzuE5a7+zfw8 nEOTgcEbAETmzwRoRoJjBRs3MRAg3nleyjVQnQojoZE2jMbODET4v45UtxjgPmvsoJe5 k+OHqXCQ5ZX5mOHWiMIjxK8LPWXhRDs2nef3dhuaBb2Dx9Gk8G3QHZm9vA4kqHvawpBo VHSwb/1KRJwiuzxpVvfUIK7CuYIkeP6kXlO0Opr4qwcY80YhO2VGsPCHh8EbfTRdKUiB 920g== X-Gm-Message-State: ALoCoQnlCPsjEt9/7B+DN0tspsnM7TyzWOqiM4KHEdYwuKaOLNywQBbSIqnhYtXvqgztPNhAVeGs X-Received: by 10.180.105.226 with SMTP id gp2mr23847093wib.1.1434443985310; Tue, 16 Jun 2015 01:39:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.100 with SMTP id j4ls54731lah.92.gmail; Tue, 16 Jun 2015 01:39:45 -0700 (PDT) X-Received: by 10.152.20.228 with SMTP id q4mr15733266lae.12.1434443985103; Tue, 16 Jun 2015 01:39:45 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id ql5si233729lbb.165.2015.06.16.01.39.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2015 01:39:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by labbc20 with SMTP id bc20so6269873lab.1 for ; Tue, 16 Jun 2015 01:39:45 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr31723145lak.117.1434443984968; Tue, 16 Jun 2015 01:39:44 -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.112.108.230 with SMTP id hn6csp1956773lbb; Tue, 16 Jun 2015 01:39:43 -0700 (PDT) X-Received: by 10.66.174.68 with SMTP id bq4mr56564207pac.90.1434443983211; Tue, 16 Jun 2015 01:39:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si454988pas.136.2015.06.16.01.39.42; Tue, 16 Jun 2015 01:39:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932097AbbFPIjk (ORCPT + 2 others); Tue, 16 Jun 2015 04:39:40 -0400 Received: from mail.kernel.org ([198.145.29.136]:54105 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756516AbbFPIit (ORCPT ); Tue, 16 Jun 2015 04:38:49 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD34E20768; Tue, 16 Jun 2015 08:38:48 +0000 (UTC) Received: from localhost.localdomain (unknown [183.247.163.231]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 51534207AF; Tue, 16 Jun 2015 08:38:45 +0000 (UTC) From: lizf@kernel.org To: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nicolas Pitre , Nicolas Pitre , Dave Mielke , Greg Kroah-Hartman , Zefan Li Subject: [PATCH 3.4 019/172] vt: provide notifications on selection changes Date: Tue, 16 Jun 2015 16:34:33 +0800 Message-Id: <1434443826-4929-19-git-send-email-lizf@kernel.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434443587-4599-1-git-send-email-lizf@kernel.org> References: <1434443587-4599-1-git-send-email-lizf@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sender: stable-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Nicolas Pitre 3.4.108-rc1 review patch. If anyone has any objections, please let me know. ------------------ commit 19e3ae6b4f07a87822c1c9e7ed99d31860e701af upstream. The vcs device's poll/fasync support relies on the vt notifier to signal changes to the screen content. Notifier invocations were missing for changes that comes through the selection interface though. Fix that. Tested with BRLTTY 5.2. Signed-off-by: Nicolas Pitre Cc: Dave Mielke Signed-off-by: Greg Kroah-Hartman Signed-off-by: Zefan Li --- drivers/tty/vt/vt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 268294c..334a7b2 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -498,6 +498,7 @@ void invert_screen(struct vc_data *vc, int offset, int count, int viewed) #endif if (DO_UPDATE(vc)) do_update_region(vc, (unsigned long) p, count); + notify_update(vc); } /* used by selection: complement pointer position */ @@ -514,6 +515,7 @@ void complement_pos(struct vc_data *vc, int offset) scr_writew(old, screenpos(vc, old_offset, 1)); if (DO_UPDATE(vc)) vc->vc_sw->con_putc(vc, old, oldy, oldx); + notify_update(vc); } old_offset = offset; @@ -531,8 +533,8 @@ void complement_pos(struct vc_data *vc, int offset) oldy = (offset >> 1) / vc->vc_cols; vc->vc_sw->con_putc(vc, new, oldy, oldx); } + notify_update(vc); } - } static void insert_char(struct vc_data *vc, unsigned int nr)