From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61717C3A59F for ; Thu, 29 Aug 2019 18:48:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 38A1421874 for ; Thu, 29 Aug 2019 18:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728592AbfH2Ssg convert rfc822-to-8bit (ORCPT ); Thu, 29 Aug 2019 14:48:36 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:44010 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728121AbfH2Ssf (ORCPT ); Thu, 29 Aug 2019 14:48:35 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id C4E306083139; Thu, 29 Aug 2019 20:48:33 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1Kd5qkvw6zL2; Thu, 29 Aug 2019 20:48:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 5803C608313E; Thu, 29 Aug 2019 20:48:33 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gKEIOWC7ulNc; Thu, 29 Aug 2019 20:48:33 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 2C4146083139; Thu, 29 Aug 2019 20:48:33 +0200 (CEST) Date: Thu, 29 Aug 2019 20:48:33 +0200 (CEST) From: Richard Weinberger To: Dark Cc: linux-kernel , linux-um , Richard Weinberger , Johannes Berg Message-ID: <899887272.76523.1567104513068.JavaMail.zimbra@nod.at> In-Reply-To: <20190829135001.6a5ff940@TheDarkness.local> References: <20190829135001.6a5ff940@TheDarkness.local> Subject: Re: [PATCH v2] um: Rewrite host RNG driver. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF60 (Linux)/8.8.12_GA_3809) Thread-Topic: Rewrite host RNG driver. Thread-Index: qvTZJZ8xtx+bL8b8xJ5JayPYviXAMg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Ursprüngliche Mail ----- > Von: "Dark" > + // Returning -EAGAIN to userspace is not nice. > + if (err == -EAGAIN) > + return 0; Hmm, doesn't this result in a short read? The current drives sets the calling task to sleep and wakes it up as soon data is available again. I'd assumes ti have the same behavior for the new driver. Thanks, //richard