Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2342810pxt; Sun, 8 Aug 2021 20:35:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC+EE7TmGegIC6gsV5Un/ncGd5FzYoDkRrEylHec6T6fpjzOK7d2YiNdYOsroMR4dQzLM/ X-Received: by 2002:a92:7312:: with SMTP id o18mr813888ilc.56.1628480140796; Sun, 08 Aug 2021 20:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628480140; cv=none; d=google.com; s=arc-20160816; b=PaqI/El6uh8tM3+Fb7mH/e2llDqPPgjbro3QyVWPWHw+XZnMNUDAqqPDU0hIZQJpn6 QWPB6h3wOU1Yq713XzTtqVFfLTD/ttwRB4Sx1v0UIstxGuef8vMBTGgERJXINP5UFK10 EQfmcOI7dFN52rnSbYmlMte9nBPMau0qSfrYGDb6R/oXfSRz1AvWcMor4S0XiADhQ3g9 O+99yJtgtUFs96zQqxByTNoMEwQZ0u8zT/cO3fNZKKSbpOXXI4w6e0l6NqtpDTgsSevj CxuBVAqzFDOufxucEREcqdwCqG07EWQEBbI6OBkPtJHf+SST6OHHWJsaSfO6unvtxU4P HvtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jYD0I1JcL0BH0vCCzrjiH0y23RAOPCoB1MhwiKSdk1I=; b=xPdDmYvs7hvOc6vvSut365jck4aNKOk66zLbep2DfiE4EfbIqvv7Izj/wukN/hY6Vn e+5Dv3xqHMsPbMlvS1rD8/tD1Xv/OYGL7LZNLYUj0DddDCTCcvpIM3eFKsVNzzeQvWEn RPPnN9UO+coLuxdY38mhuw68q3r2oxznCuBMBRuiN7O2xyD1ywf8SGm1l7qpFKFwL8EG tEKXWCfzONVxx3mAlzZ3juRWfxGgUaVZqDw/MhKQfHI9cGuO884fakp+lPlurS2SWt/8 BVK2HPYgR5R8YlO814uS44Z/N12zAm4aYI4rMNn12a6BQFniUSfsbq/ZQQkFvDdBY5Sk oI+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ASwNRcZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q7si18650814ilu.111.2021.08.08.20.35.30; Sun, 08 Aug 2021 20:35:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ASwNRcZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232875AbhHIDdq (ORCPT + 99 others); Sun, 8 Aug 2021 23:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232905AbhHIDdV (ORCPT ); Sun, 8 Aug 2021 23:33:21 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA35C06179E; Sun, 8 Aug 2021 20:32:57 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id e13-20020a9d63cd0000b02904fa42f9d275so5605239otl.1; Sun, 08 Aug 2021 20:32:57 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=jYD0I1JcL0BH0vCCzrjiH0y23RAOPCoB1MhwiKSdk1I=; b=ASwNRcZC+WslkMmnYkzKeAg3z3EdGFgbbNCh31jouaKVo60A66evSpkvvLRWbhw+5g nIxp6BJ+01A7BQZ+UxzSo2yFWVCtQn7mVg/tr93Q4V35bGHssqSPJf4XS8cVQ/jLxId+ C2xa9ZsEMKYB1hbS6WzLr2lJXzEe58ij8m148DOuQ9uqhuELQLOTxwSOtwwPv7h/9Yqd Uf/lGePC7NMPiDt3EShFA8vO9bPmxpemnTIZO4WfCQ5iV2tfygJwCiCr2l3C6wvTU7VZ NlFjMC2rbG6YyoXWz9LvgaRTZHAoQK3u+OqovsGJcXU8FZT2SBtRc6ZCHd5v5CPNhGTF NlMQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jYD0I1JcL0BH0vCCzrjiH0y23RAOPCoB1MhwiKSdk1I=; b=b+4+YwlOEm67fpWc0ezLeh02lKOvuKq1d2tqMq5OqPc3ZiRTJrdKwZmvdsKiKFLpAV RPvZa76djgP9tdElRWaZA2Ae8ah4MlsYjsRwC72oDUHGWWSjZ4MY7KgQ2mUCYGyjuWjq jQ2WNbV23huEP3GrpfKsN80XOf78MgS7pLJyn5lpKX4XjFpAQQYHUKdG0/NZzPx8xs+/ 27ust1ZnZXipbmIVSMPGRO82XcKnWwhSp0qoA5OI31/+lB4HJewz3nlvPSGF26VsMzeS pDiXA8Bbf5CzZYzmyWQcDu08IrNSf9d3LFtQVk6szve5sCXi/owdfqr3ejk30yh8gxNm 9Huw== X-Gm-Message-State: AOAM533nJVqJn7UnUc9F4NxaoVFuG83RDAEy4V3IeAZamoHQHCO57/2A YX6powhQogULnjEbknCVcl5F9wlwIm0dv8tF X-Received: by 2002:a9d:5e0b:: with SMTP id d11mr15767902oti.371.1628479976891; Sun, 08 Aug 2021 20:32:56 -0700 (PDT) Received: from ian.penurio.us ([47.184.51.90]) by smtp.gmail.com with ESMTPSA id r7sm1463646oij.14.2021.08.08.20.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Aug 2021 20:32:56 -0700 (PDT) From: Ian Pilcher To: linux-block@vger.kernel.org, linux-leds@vger.kernel.org Cc: axboe@kernel.dk, pavel@ucw.cz, linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org Subject: [RFC PATCH v2 10/10] block: Add config option to enable block device LED triggers Date: Sun, 8 Aug 2021 22:32:17 -0500 Message-Id: <20210809033217.1113444-11-arequipeno@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210809033217.1113444-1-arequipeno@gmail.com> References: <20210809033217.1113444-1-arequipeno@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Ian Pilcher --- block/Kconfig | 8 ++++++++ block/Makefile | 1 + 2 files changed, 9 insertions(+) diff --git a/block/Kconfig b/block/Kconfig index fd732aede922..ef05b36b5251 100644 --- a/block/Kconfig +++ b/block/Kconfig @@ -220,6 +220,14 @@ config BLK_INLINE_ENCRYPTION_FALLBACK by falling back to the kernel crypto API when inline encryption hardware is not present. +config BLK_LED_TRIGGERS + bool "Enable the blkdev LED trigger" + depends on LEDS_TRIGGERS + help + The blkdev LED trigger allows LEDs to be controlled by + block device activity (reads and writes). See + Documentation/block/blk-ledtrig.rst. + menu "Partition Types" source "block/partitions/Kconfig" diff --git a/block/Makefile b/block/Makefile index bfbe4e13ca1e..bcd97ee26462 100644 --- a/block/Makefile +++ b/block/Makefile @@ -42,3 +42,4 @@ obj-$(CONFIG_BLK_SED_OPAL) += sed-opal.o obj-$(CONFIG_BLK_PM) += blk-pm.o obj-$(CONFIG_BLK_INLINE_ENCRYPTION) += keyslot-manager.o blk-crypto.o obj-$(CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK) += blk-crypto-fallback.o +obj-$(CONFIG_BLK_LED_TRIGGERS) += blk-ledtrig.o -- 2.31.1