From patchwork Tue Mar 17 08:40:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 45868 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 29D282153C for ; Tue, 17 Mar 2015 09:36:33 +0000 (UTC) Received: by wghk14 with SMTP id k14sf733238wgh.3 for ; Tue, 17 Mar 2015 02:36:32 -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: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=MdzxdKLotBMKlYjYXtzTExLhtDIJApGSpDlfra+DwkY=; b=RwSaHLnmOSfJFUhU+4cSPf6OYSO2HhpDQxOw+kFtoG/DO6wxzvxXiY1GnW1olqW+5A 1zO9nbmgeUcuIMLAH/0yQY7SABdqqgz27PBBDQ2bu09ahzIueYhitbUVFCPFmxRd+BX3 9e3fjUjC9W6h98WF7g9/6X/hCL56M5l+lNCBF1g+kRyyOnBUF89MlBmpCBgRMzDCSSCF w/g3+Z3wXSySLdE0cSPVmYbyOgbFs0grgjb9TXG4LvRJ8qgd5pqA0GkYJIF8PjQRDuJY 5q2NEA0836FnmSjL5hroWWG9fHBvVYmv5ye9qgvXXIPvDzLuFES9Vb29jeTX9klFJEht Sv1A== X-Gm-Message-State: ALoCoQmMOwPo3dkJzqPZmvc9wmiWq+z+B/6ml/+AKFQifwWeqA0xyt0uTcLrYLQSBiaFkZguMgpD X-Received: by 10.112.180.74 with SMTP id dm10mr2216748lbc.11.1426584992411; Tue, 17 Mar 2015 02:36:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.164.193 with SMTP id ys1ls14427lab.39.gmail; Tue, 17 Mar 2015 02:36:32 -0700 (PDT) X-Received: by 10.152.181.197 with SMTP id dy5mr59625002lac.57.1426584992157; Tue, 17 Mar 2015 02:36:32 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id qk1si10105589lbb.60.2015.03.17.02.36.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 02:36:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbcds1 with SMTP id ds1so2767730lbc.3 for ; Tue, 17 Mar 2015 02:36:32 -0700 (PDT) X-Received: by 10.112.162.167 with SMTP id yb7mr57638636lbb.76.1426584992061; Tue, 17 Mar 2015 02:36:32 -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.35.133 with SMTP id h5csp385382lbj; Tue, 17 Mar 2015 02:36:31 -0700 (PDT) X-Received: by 10.66.119.238 with SMTP id kx14mr147993486pab.2.1426584990113; Tue, 17 Mar 2015 02:36:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si23582968pdr.47.2015.03.17.02.36.29; Tue, 17 Mar 2015 02:36:30 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933994AbbCQJfv (ORCPT + 28 others); Tue, 17 Mar 2015 05:35:51 -0400 Received: from ip4-83-240-67-251.cust.nbox.cz ([83.240.67.251]:59600 "EHLO ip4-83-240-18-248.cust.nbox.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753588AbbCQImh (ORCPT ); Tue, 17 Mar 2015 04:42:37 -0400 Received: from ku by ip4-83-240-18-248.cust.nbox.cz with local (Exim 4.85) (envelope-from ) id 1YXn57-0005oU-PP; Tue, 17 Mar 2015 09:42:33 +0100 From: Jiri Slaby To: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nicolas Pitre , Nicolas Pitre , Dave Mielke , Jiri Slaby Subject: [PATCH 3.12 043/175] vt: provide notifications on selection changes Date: Tue, 17 Mar 2015 09:40:21 +0100 Message-Id: <7498a0c80997ef0b1572a0cc9b2a206f5eab9311.1426581621.git.jslaby@suse.cz> X-Mailer: git-send-email 2.3.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linux-kernel-owner@vger.kernel.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.217.172 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.12-stable 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: Jiri Slaby --- 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 239eae55600a..e341fd52a80d 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)