From patchwork Fri Jan 23 22:07:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 43706 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CEF35218DB for ; Fri, 23 Jan 2015 22:07:39 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf5530775lbj.0 for ; Fri, 23 Jan 2015 14:07:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :user-agent:mime-version:content-type:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=5lVrkn1ZVzgZDdUt0gl7LDg+KXrYn9aVI4Mh2k7m2OQ=; b=IOETjS/ibyBJ/1UvU44mPFA+7m6liC1UxGmVRzJLbuhMC9DV2ZsS2ssjV1v9PKCy71 zx/aEeel/BErbZhw1aXkZBn6Yaql0hiUN0DTIYo+RN2nmOtK+NAvYn3ps/2Bg5KaQw86 pwyQ0bv1QZnCbmMDQ8+CYv16tPAUnC4PDbLrA4wIHnBgmQHkylxTsEcrXz8joUVAV8vY IyhoddiOxpc3tEkDaIrhq7n4GtzJFN+gxk0J7illE6zAqr2XLYUCg6twL43ZL47KdtYz Bk7JjzLoBoYPrU7wLeHe4SgGcNSjbEHH6fP306Er9k2OL7ISFdRlNXi59bUuLuvrk12g +nsQ== X-Gm-Message-State: ALoCoQmTcHQ3JpeRi/izPhREgKHOx02QDK4Mt5/1/iRGsSMf9lazFlGMtQnNIr8EU6ss5htlQkkN X-Received: by 10.112.89.36 with SMTP id bl4mr1285627lbb.1.1422050858657; Fri, 23 Jan 2015 14:07:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.69 with SMTP id i5ls177508lah.23.gmail; Fri, 23 Jan 2015 14:07:38 -0800 (PST) X-Received: by 10.112.90.170 with SMTP id bx10mr9636328lbb.69.1422050858411; Fri, 23 Jan 2015 14:07:38 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id ai4si2534840lbc.10.2015.01.23.14.07.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 14:07:38 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gd6so9669121lab.4 for ; Fri, 23 Jan 2015 14:07:38 -0800 (PST) X-Received: by 10.152.8.11 with SMTP id n11mr9516599laa.38.1422050858209; Fri, 23 Jan 2015 14:07:38 -0800 (PST) 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 h5csp43267lbj; Fri, 23 Jan 2015 14:07:37 -0800 (PST) X-Received: by 10.67.1.66 with SMTP id be2mr14796273pad.132.1422050856471; Fri, 23 Jan 2015 14:07:36 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hw2si3344593pbb.188.2015.01.23.14.07.35; Fri, 23 Jan 2015 14:07:36 -0800 (PST) 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 S1756663AbbAWWHa (ORCPT + 28 others); Fri, 23 Jan 2015 17:07:30 -0500 Received: from mail-qg0-f50.google.com ([209.85.192.50]:60027 "EHLO mail-qg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbbAWWHZ (ORCPT ); Fri, 23 Jan 2015 17:07:25 -0500 Received: by mail-qg0-f50.google.com with SMTP id f51so8222529qge.9 for ; Fri, 23 Jan 2015 14:07:23 -0800 (PST) X-Received: by 10.140.28.200 with SMTP id 66mr17878653qgz.16.1422050843830; Fri, 23 Jan 2015 14:07:23 -0800 (PST) Received: from xanadu.home (modemcable142.180-131-66.mc.videotron.ca. [66.131.180.142]) by mx.google.com with ESMTPSA id l64sm2678742qgf.16.2015.01.23.14.07.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Jan 2015 14:07:22 -0800 (PST) Date: Fri, 23 Jan 2015 17:07:21 -0500 (EST) From: Nicolas Pitre To: Greg Kroah-Hartman cc: linux-kernel@vger.kernel.org, Dave Mielke Subject: [PATCH] vt: provide notifications on selection changes Message-ID: User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 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: nicolas.pitre@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.45 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: , 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 --- Greg: Would be highly convenient to have this patch applied to the stable tree as well to help affected blind Linux users via distro updates. Yet it took a while before this issue was discovered. Your call. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index f7f5ed1..84252a0 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -502,6 +502,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 */ @@ -518,6 +519,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; @@ -535,8 +537,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)