From patchwork Sun Jun 5 12:02:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Fitzhenry X-Patchwork-Id: 39749 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3307127BBEB; Sun, 5 Jun 2022 13:09:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B028A27BBEA for ; Sun, 5 Jun 2022 13:09:36 +0100 (BST) Received: from localhost ([::1]:43054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxp4Z-0003Qq-S8 for patchwork@mira.cbaines.net; Sun, 05 Jun 2022 08:09:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxoyF-0006qE-Lh for guix-patches@gnu.org; Sun, 05 Jun 2022 08:03:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxoyE-0005eZ-9I for guix-patches@gnu.org; Sun, 05 Jun 2022 08:03:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nxoyE-0004u9-5x for guix-patches@gnu.org; Sun, 05 Jun 2022 08:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55805] [PATCH] gnu: linux-libre: enable hidraw by default Resent-From: Tom Fitzhenry Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 05 Jun 2022 12:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55805@debbugs.gnu.org Cc: Tom Fitzhenry X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165443056818831 (code B ref -1); Sun, 05 Jun 2022 12:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jun 2022 12:02:48 +0000 Received: from localhost ([127.0.0.1]:60215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxoxz-0004tf-Vs for submit@debbugs.gnu.org; Sun, 05 Jun 2022 08:02:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:43708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxoxw-0004tW-NM for submit@debbugs.gnu.org; Sun, 05 Jun 2022 08:02:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxoxt-0006nf-JF for guix-patches@gnu.org; Sun, 05 Jun 2022 08:02:42 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:41601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxoxr-0005di-2r for guix-patches@gnu.org; Sun, 05 Jun 2022 08:02:40 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 3AD7B320090A; Sun, 5 Jun 2022 08:02:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 05 Jun 2022 08:02:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= tom-fitzhenry.me.uk; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1654430555; x=1654516955; bh=pK EL6sDEqN29Inwtc+yDi8IqVrXEG1NJ2sJoM6WgVoU=; b=alXhVetcSknagVaigd 5Uctt4Bd1FS83lofeS3jiZOezJsce3V2Vyeu7iQeK9NZ1iTAWw9eqtJT9kjdgw9h 2psjMuXBSnlGYM3W7fiYpxC+Jnb087ermRtF9F9Y07CdJYIu4qZ+nfEThPFENu9i F1af/bJozCqQ+HmVlJW6TsHv9mV08NPlIwcmyxBNppgeaSOGSdvYbGeWYrGt5b9F ZO4FJOTyeD6v2fnLyIPuCEMn/ufLKsJfHCXX8oeLtsjyy8nNXEYC/yOu2JcsJaRH VqPsnTV2iF5Xkgg/DVsGcbidhAd8eVu3BSPNfYX1Duv4io4L8GSNbe1B4tTynuVP 5G6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1654430555; x=1654516955; bh=pKEL6sDEqN29Inwtc+yDi8IqVrXEG1NJ2sJ oM6WgVoU=; b=wyQqZgOThKg1JzDN6hIOpO5sMqnr/7d6hNtdaZTp0xxJnLdm1oL uILQ+Q7h/Y2MaRrxHzs2lbGTIvjH8jZMV/Z7hi9TR2kDnGtACUyV06jc2qAbgApJ 6FvzcphM113FSQq2YObbOQwBSB6QgnF/rk7dhRKy4ZNHUhX8U+1/5bIZ1cTwKuDK F+e3QJ8fnJmtlvqNG4IDwjcvA91G0ubBXj5eoL/y73GVxQmm3i0EDlXnfYCsHK0j JuA7Vles3D4a0c9AcW/rcZf6n8r8M988DHpgId9eJylKYRo+YEj8brEg0QF9bOsv yiyZ4CFKHoy6PDppeInvjMVC+c/ZUgvjjNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddttddggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefvohhmucfhihhtiihhvghnrhihuceothhomhesthhomhdqfhhi thiihhgvnhhrhidrmhgvrdhukheqnecuggftrfgrthhtvghrnhepgeduvdetteeivefhtd euudeuvdeltdfhjeduleekudegleeuteduveejffeludeknecuffhomhgrihhnpehkvghr nhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehtohhmsehtohhmqdhfihhtiihhvghnrhihrdhmvgdruhhk X-ME-Proxy: Feedback-ID: iefc945ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Jun 2022 08:02:34 -0400 (EDT) From: Tom Fitzhenry Date: Sun, 5 Jun 2022 14:02:22 +0200 Message-Id: <20220605120222.1902-1-tom@tom-fitzhenry.me.uk> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Received-SPF: pass client-ip=64.147.123.21; envelope-from=tom@tom-fitzhenry.me.uk; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (%default-extra-linux-options): Enable CONFIG_HIDRAW. hidraw is needed to create /dev/hidraw* devices, commonly used for U2F devices, e.g. via libu2f-host. CONFIG_HIDRAW is not enabled in the mainline arm64 defconfig, but is enabled on: * the mainline x86_64 defconfig * gnu/packages/aux-files/linux-libre/*arm64.conf HIDRAW's Kconfig documentation advises "If unsure, say Y."[0] Tested by compiling and running linux-libre-arm64-generic, and observing that /dev/hidraw* devices are created, and SSH-via-U2F now works. 0. Linux kernel, drivers/hid/Kconfig Link: https://www.kernel.org/doc/Documentation/hid/hidraw.txt Signed-off-by: Tom Fitzhenry --- gnu/packages/linux.scm | 2 ++ 1 file changed, 2 insertions(+) base-commit: 8334e7c36ba7266fdbcf783d80c02a072cf1347b diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 4fc0ac16af..12e0db23c4 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -687,6 +687,8 @@ (define %default-extra-linux-options ("CONFIG_MEMCG_KMEM" . #t) ("CONFIG_CPUSETS" . #t) ("CONFIG_PROC_PID_CPUSET" . #t) + ;; Enable hidraw by default + ("CONFIG_HIDRAW" . #t) ;; Allow disk encryption by default ("CONFIG_DM_CRYPT" . m) ;; Modules required for initrd: