Received: by 2002:a17:90a:c8b:0:0:0:0 with SMTP id v11csp2304024pja; Fri, 19 Apr 2019 11:38:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8oS1TGVn08w9fd33qYJDEtpWFnaVF7vL/oOSIgkgsD7OF1PfaKqyMs/k42O1qia+RkwyR X-Received: by 2002:a65:4341:: with SMTP id k1mr5225705pgq.88.1555699081522; Fri, 19 Apr 2019 11:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555699081; cv=none; d=google.com; s=arc-20160816; b=uBCw0gYl1z2Ncd6MESUD1msFpasF/QTTsyzToH7BGFashG7HC2NZkmuGhCIZenxCG7 PpLLZbmua5ACKjVxPF5uK+VYG5Am3N/gTDcKiEouKYBEZ9jO+J0SIzLO1C6Y85FXBhRm +sR4hQSihynRQda6kIYjoDw/hLaraRAQN6UyHS8ofc5YVs0Mb2j79gNcIimGejS7YYXi VCmc9YHsbu9UFV1sz0bYVUWO7De6SsneHQkFbC8rro2r6/I5zepMfIfRGTvIrzPIdRlK CeFw8inQg8vDQhnghUJgTJcWL8fluHXl6WfViZ3WXMcfkyhngztzrScTQe3i+rZchK/9 LVvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TsvAHQeLWNkwtfdoN6EcPap4qhKwedeNkyeknnKZWdg=; b=QRd2nhYjqO/hhHRn7hMypsULG7YR1KuFRXRJuIDNjrvJJz+tRc+Ysc+fdXdroBAhOU SpUmlNcZRKog8/88XaO+dkcNhJaz5rFvr/lK3kPzJJ3EyYkyZjXodMmNcnVz9a1SQaNP 0PZRZ7FX38Xbc4JVW7oGAuOqzvYFNNEwJ20/fgeaXu5++eqJpYd1uoHWi0kLWSxImTMV jrlb3Jpo+9tlFn2zKEpS03/9G2u54p4/ChFkmJ0qFBeuSk2UAQ3ctKPuSGCJGFbeULBG W6jjPkEzWBxIzmFhj51vmaw4Uo8xMEATJ2GuNoSn7SCzdapwNeE7SNlN0eQ6s65gPOU8 pWRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZxRwrICm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si5341612pga.205.2019.04.19.11.37.46; Fri, 19 Apr 2019 11:38:01 -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=@kernel.org header.s=default header.b=ZxRwrICm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728186AbfDSSd7 (ORCPT + 99 others); Fri, 19 Apr 2019 14:33:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:53914 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727592AbfDSS3Q (ORCPT ); Fri, 19 Apr 2019 14:29:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF7F22229F; Fri, 19 Apr 2019 13:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555679488; bh=R1K20MG4Jf68JuB+UlUYTiiRz0yAWnSnIvm/fuNpICY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZxRwrICmB74X81wpIOYPL+yCvuKOZoaNsr5dsnT0OQMveVsr8eh5xReygsF0mcCP5 77PneGZbWHUMUM1RX6d16F5iuc9gS3Fh4MD018vH3fN7qS5ZI3908Ae825KtA7dF7m tEtv+Sl8HSm9yPsmnWak96FXsLENirVMEF8mwFNQ= Date: Fri, 19 Apr 2019 15:11:26 +0200 From: Greg Kroah-Hartman To: Okash Khawaja Cc: Samuel Thibault , Gregory Nowak , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, Alan Cox , Peter Hurley , Kirk Reiser , speakup@linux-speakup.org, Jiri Slaby , John Covici , Ben Hutchings , Chris Brannon Subject: Re: [PATCH v2 0/2] staging: speakup: factor out selection code Message-ID: <20190419131126.GA23752@kroah.com> References: <20190404194530.1170-1-okash.khawaja@gmail.com> <1555503674-8219-1-git-send-email-okash.khawaja@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1555503674-8219-1-git-send-email-okash.khawaja@gmail.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 17, 2019 at 01:21:12PM +0100, Okash Khawaja wrote: > Hi, > > The v2 renames set_selection() and do_set_selection() to following > more explicit names: > > set_selection_user() /* includes copying data from user space */ > set_selection_kernel() /* no copying from user space */ > > The patches also update references to set_selection() to be > set_selection_user(). > > Original intro: > > 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. Very nice, both now queued up! thanks, greg k-h