Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp582218pxy; Fri, 30 Apr 2021 11:33:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEqXCn/2PZiWPjvzwZo7scePoIhNHQiKG/sz20IDpm+Y01RTgefepdW203ib1j4m/sEeS0 X-Received: by 2002:a05:6402:323:: with SMTP id q3mr7736268edw.69.1619807630446; Fri, 30 Apr 2021 11:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619807630; cv=none; d=google.com; s=arc-20160816; b=H6T8ekQly35lTSFFFgKWTL8F+k1MtB3jiUqcHf6G99tZa7kmJD/TQigwqoSx7+shT/ cZAOaFpUzpyVbeFR40t+1MIBbHx3wKHz561sZwpDT+pqiXZ66ZbRdvbzo2JFEqjg0Tyo 8pkYmDHDJds0PeTjRYuAqFVKUA/xjrQU1t+x9PcZ/HCXjGaNm9MKMYXMSm4fFJEHrG5R UCV10gUGpCzV7VDbe/aaa5ivaMVu0BFvOKXQWgvyZquImLbFApYrgq2XbmESYwkTjZka DOxr8ckHopwrFpI+4QzigNJ/PlC+v4OLIqS5mqhY5L3TLDkTb0bocvjVOPvT/+AOPkUN 9nsg== 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 :message-id:date:subject:cc:to:from; bh=T6q+W8gQZQMARwY2Q6l6U4kkNefOxWez5kWWG8PSgD8=; b=mEnBYLfWhlbF/s8xJE9f/bNKvlRtSOgrWwfKgniWpcQLucknhNVXiAtE3BCFrS2tc1 Q2Uo6zN375S8Ab5gobb4AekUZvoJM7EFsmEyVodRMAfI/MtlkeCSaPFkkKluT8j6/ug+ xw6f4+YdirqlSbSBDEkY45RW/bjSxbKst7bmGg1wtLOHZ6AMMzqNGeo9R9pWZe66yyup z4S3iSs4rFcy4CTftxT1xGsz4veMqUGptdW/g8XS3RqRUqw+A5XroLN/9lDKUSj9skIX 9Rp2D/HKFLoe2yTgR80nXZ7tmpG1akqdlKP8vqkaHyh7aWL8B9kd3LaqXUwE3lNeZcSG 5vCg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si4672489ejc.511.2021.04.30.11.33.25; Fri, 30 Apr 2021 11:33:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbhD3SdO (ORCPT + 99 others); Fri, 30 Apr 2021 14:33:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:59008 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbhD3SdN (ORCPT ); Fri, 30 Apr 2021 14:33:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B923FB0BE; Fri, 30 Apr 2021 18:32:23 +0000 (UTC) From: Enzo Matsumiya To: linux-leds@vger.kernel.org, linux-block@vger.kernel.org Cc: u.kleine-koenig@pengutronix.de, Enzo Matsumiya , Jens Axboe , Pavel Machek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/2] leds: trigger: introduce block trigger Date: Fri, 30 Apr 2021 15:32:09 -0300 Message-Id: <20210430183216.27458-1-ematsumiya@suse.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Inspired by https://lore.kernel.org/linux-leds/20190817145509.GA18381@amd/T/ and the ledtrig-usbport implementation. This patch series introduce a new LED trigger for block devices. Signed-off-by: Enzo Matsumiya Enzo Matsumiya (2): block: export block_class and disk_type symbols leds: trigger: implement block trigger block/genhd.c | 2 + drivers/leds/trigger/Kconfig | 10 + drivers/leds/trigger/Makefile | 1 + drivers/leds/trigger/ledtrig-block.c | 293 +++++++++++++++++++++++++++ 4 files changed, 306 insertions(+) create mode 100644 drivers/leds/trigger/ledtrig-block.c -- 2.31.1