Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1536344yba; Thu, 4 Apr 2019 12:47:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4bqoqb/Qpi4WXI+pflKmcbhDndxEU0HGX2IZ1XYQGHIa+9oFy/h+ynaKTfQ2nFxK4LRO7 X-Received: by 2002:a63:79c3:: with SMTP id u186mr7546682pgc.20.1554407263938; Thu, 04 Apr 2019 12:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554407263; cv=none; d=google.com; s=arc-20160816; b=nvYq4ybh8L4jAuzyXomwWrbZut/rs68VbmWpZQhWZfvNJMXhGYMokFyC2SDjZ5NLM6 wh02R808fFEdTYZVEmeBdzHnHGG60X7Aolz52HIYCle/MRhd0Nlu179q7uWGuY2WY01G APYubI/FZpFf+rr2s4dTUn6rYJUoTrJe9Zut3MzYh3xfss05EUF+ZnstOvGEM1KFpcHb Kl6imwztlPaWOVXkLHcgbNnW1s+nz/Sww3SOypq4RlEpu0feSZ4O0nI8Vo36MqxVK5Qr U4Pqrb9UY7RFRdrr48o5LeWhkzU8LIuYDUwXl86px3YL8kbF62zqxTduH40F6Mq8yIhQ 3DgQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+Nlqz6zaxI2WrhBCFtpSz6WKJq4kfNbrdFbNtRtXQDg=; b=srczJ3Izwc98hb5jAEdyYtRSHQLrNiydenrvQaPoHo4o9VzaT1mr/pQ/UW5nqHhVc4 Vm+e3IQT3kCX3owNvHax6BcpuIctBCZXfTGaHywPtpJ8CVmyaQlFyJzKEwtFGE7xot0L JcLoqE0F78G95CSsvMz8kLp6D8f4WYhuMUHh3z072h+l3RAMuvcPVQPBEvuQWvW5W+ik tMBinHPN2xvudYEDutehOKnG2ne9JMbwP4vU2siyewCA6g1zDXDivkuOPtxNhgxe/HJa jdBx5f8Rs3x0gWEvJgMn5mbtfKftrPH7LZ9gH4Kegn7Qrr4afscv1AYzhwB5DgFawc+a ACtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ry6H0Kxo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si16791549pll.172.2019.04.04.12.47.27; Thu, 04 Apr 2019 12:47:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ry6H0Kxo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730371AbfDDTqu (ORCPT + 99 others); Thu, 4 Apr 2019 15:46:50 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:35383 "EHLO mail-wm1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729793AbfDDTqu (ORCPT ); Thu, 4 Apr 2019 15:46:50 -0400 Received: by mail-wm1-f53.google.com with SMTP id y197so4815598wmd.0 for ; Thu, 04 Apr 2019 12:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+Nlqz6zaxI2WrhBCFtpSz6WKJq4kfNbrdFbNtRtXQDg=; b=Ry6H0KxocvWFVc8UuGeqlm1+cpwKMXpxPoz6nGVnEJatY5GsmQml6Ud6xIPoSEshMh lykEIy/mgI69jYBSqDTKtSO1y4FxLCHkPRuCmq2WNCcCNr96iCg5u1jm5aexzgyZKvUj mnSx/fo0/BsWlRqLmCgssiuVcHDJhSsz83qR44WviUuGPs04yvmuXL7HQ+7gfSGLk8oG qh6jOU8udk1yEUJMHCfgoatZvvIRx/SjEDGLh9oSsvOsaXvZBb3z1MeL4vI897Qc+oQG 9r1hJ3euo6HpKtxN3ewTnceZjRIsw7zixtOvMRy9Jxrl23fvJGueKLUBSJDWt3r96wbz 6M0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+Nlqz6zaxI2WrhBCFtpSz6WKJq4kfNbrdFbNtRtXQDg=; b=DqrbQ4fV3xP9Ki3ACK3XXP/DGn0l/gObF6Ac7FmKkjpiqFPZnCYGf4p7NCJ9T9thb4 KyvwpKAD9f4Ia7bhaTAgvrSZ+0f6iPVEBM21sue40lvWHpH1rQaOTlZcb4hifxQmhcmT x+VwnsBif0IjqqXbnRyqq947b5OhYLSBX+Q6ZMra7zl2IfeKvjpS01dB6Gvt6wz5WuD3 LlftpqsR2Wg2ajcCSCF2UOQcHPRqUIh4YqFVElBDKDhEACXrzpZF4sIGdmCFvBCzw7PF FSswMl/51VQX3geffPQIGN2uEnrfZcxVibHQV3G7/wL9aMCF/0ciwn2/ld5IEB6KmUff +VjQ== X-Gm-Message-State: APjAAAUnkXsM9G3x3BLWcb6CIomFw7esLOrdgNmRXV3r8wjJE3lV58iS vt4tMf0gi7rOSXT9e8gkbZh5nv1793q4JQ== X-Received: by 2002:a1c:a9cb:: with SMTP id s194mr5523364wme.62.1554407208963; Thu, 04 Apr 2019 12:46:48 -0700 (PDT) Received: from localhost.localdomain ([185.219.177.201]) by smtp.gmail.com with ESMTPSA id f11sm23047400wrm.30.2019.04.04.12.46.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2019 12:46:48 -0700 (PDT) From: Okash Khawaja To: Greg Kroah-Hartman , Samuel Thibault , Gregory Nowak , linux-kernel@vger.kernel.org Cc: Jiri Slaby , Ben Hutchings , William Hubbs , Chris Brannon , Kirk Reiser , John Covici , Peter Hurley , devel@driverdev.osuosl.org, speakup@linux-speakup.org Subject: [PATCH 0/2] staging: speakup: factor out selection code Date: Thu, 4 Apr 2019 20:45:28 +0100 Message-Id: <20190404194530.1170-1-okash.khawaja@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Speakup's selection functionality parallels that of drivers/tty/vt/selection.c. This patch set replaces speakup's implementation with calls to vt's selection code. This is one of the remaining items in our TODO file and it's needed for moving speakup out of staging. Please note that in speakup selection is set inside interrupt context of keyboard handler. Set selection code in vt happens in process context and hence expects ability to sleep. To address this, there were two options: farm out speakup's set selection into a work_struct thread, or create atomic version of vt's set_selection. These patches implement the former option. Here's a summary: Patch 1 re-arranges code in vt and exports some functions. Patch 2 replaces speakup's selection code with calls to vt's functions exported in patch 1. Thanks, Okash