Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3720836pxt; Tue, 10 Aug 2021 09:47:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywQxzXoVRLRyQsCMULZ1muqifVQ4JRz8/UMUZKkV/C03P6PIZm/cieJ4kWr3JpOhnihGxz X-Received: by 2002:a02:cc90:: with SMTP id s16mr27819708jap.131.1628614043605; Tue, 10 Aug 2021 09:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628614043; cv=none; d=google.com; s=arc-20160816; b=KpZ6e3ERyMIRJXihrKeL/2fjWYC7AkpPPoxuIvT2PMlH247p+dt/2SAFFqxGOf3OQ7 YIsrSq7ht5P3Ejv6Ru89pu0BXy/hQTp34RCg8ONxDJuCkN1hptg1xwF9BWK/5X6BLdXr 34R3cMAY3lwVi7LQdRh4Wz9C1KsuprUCNelC4gGUKBkBgHtwvhAXxkiYQvz7FWqBKAoE RDcb5t5FDjutWSlG7jxBq7RpzojclB5v/C8ONFxYf+fVoeyBXhJBAnwdj6UBAKIIPSCL 9kIhSB9MCrulmt4GAcl9UcLEob0Q2Ro9v6Hks8vSnrjEt6Aabt76I2X4SlFCEgIXRDg1 pPdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=QhOtPuefuEMutGsCac+f7EFLsvx2tEnekhhvoDt/lTU=; b=dGycq16FYJuwMxhw4dE0egD48HFjFRHT+U59yxcD+eGLhIqxp4v9U557pqO+pwBk+w gNO2NDB/DKYAFWh/LGgVSgnpoHFENa0yWwprlKQIxMLBj7aB/1PnJ6W46fDlwLrSy1QY muuS7hL4k4HBs8OJvZ1j0B23AMU7JGGdr7btmTbVaFE43iV/yznLS3tmw47Lr1qmKYZH 3epLY5voKyrZfZapqhg5AgkgkxPTI2t9yp2KNGpNnW0oDzkVtwszlyXM1Ejpw+hRt6FW srfXz6Eu3zD079kXluzojC26st/0OZmskRZxAQcEU/A5usLvXEWLJIE1F47l+9LiiQn9 3KZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p3zrQvym; 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 x11si20413643ion.51.2021.08.10.09.47.09; Tue, 10 Aug 2021 09:47:23 -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=p3zrQvym; 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 S234153AbhHJQoR (ORCPT + 99 others); Tue, 10 Aug 2021 12:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231569AbhHJQoQ (ORCPT ); Tue, 10 Aug 2021 12:44:16 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B20ECC0613C1; Tue, 10 Aug 2021 09:43:54 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id r19-20020a0568301353b029050aa53c3801so5735541otq.2; Tue, 10 Aug 2021 09:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QhOtPuefuEMutGsCac+f7EFLsvx2tEnekhhvoDt/lTU=; b=p3zrQvymLKbekm91ddwjWDFOReJMaIdqA40ppej9m6Dddym4prDrExG+jHtC+kRlb0 zOwO8/fG+hehzgCCqoLI6DhnRBGBh30eAcg8xqqhwGPHVXtLQM8RdJBzu4Q0taaJ8bHd XKSrZr4BxvmtsZAMmIEntsZDMw23qP9cLucGQmSFU4vIZ9GWUXr/GNurRsQTjhVFD0BU DSgO5xiE9oAqvUgiJr8eJZHudcLHFTjwkyMIJqIRjqTn2xOUwI1c91spza2OH9Ctv7Gp u3T8FTaKEC0Dil+cudVsRyqVj+a0rEqh9cdmRhU82HimdP7xU5E9nK1QCzn2ByJU8WBw U0yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QhOtPuefuEMutGsCac+f7EFLsvx2tEnekhhvoDt/lTU=; b=ij5TMK+SpK//kpxGloZHYPATCr3VCvppcBqn0NOLzElWCm0V8rTyaynpgYU1Q/AVx8 85N1pmIkg9Qw4Ixe6PKO5JTW49Lc6UEBoseoR9UL4Ii3esUEfeyI5i4UYv4nhSrpU/Jp v5QRvw4933AM/H31g2zw1DiDyUZ06QdBwrRq/rcKTjzam43k6H/Tyl6khsdd2+1orY+c 9d6iqDAdOmLXE3yqr3lmUixYdkxBqXleTkEl0+35INKnWGbGYyXtQV3S8Igvawa7RecN J+rcB6aeSLXyWjFFXQdUXVpB4S1Z+c2YSuuBKjiG+PmQHXu6x4Lr8+MEWH9PXfCTG3yv LDFQ== X-Gm-Message-State: AOAM531bsWO09Wq/njhI8Bd4ZK6M1CqX1Z5PkTTOT0CqrrLEZ/ww2wXu 0n1chKL5feWlD24+AgbVpiga36sTifMSvvK7 X-Received: by 2002:a9d:61cc:: with SMTP id h12mr15104495otk.190.1628613833977; Tue, 10 Aug 2021 09:43:53 -0700 (PDT) Received: from ian.penurio.us ([47.184.51.90]) by smtp.gmail.com with ESMTPSA id r25sm3410110oos.24.2021.08.10.09.43.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Aug 2021 09:43:53 -0700 (PDT) Subject: Re: [RFC PATCH v2 00/10] Add configurable block device LED triggers To: Greg KH Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= , axboe@kernel.dk, kernelnewbies@kernelnewbies.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, pavel@ucw.cz, pali@kernel.org, hch@lst.de, linux-leds@vger.kernel.org References: <20210809033217.1113444-1-arequipeno@gmail.com> <20210809205633.4300bbea@thinkpad> <81c128a1-c1b8-0f1e-a77b-6704bade26c0@gmail.com> <20210810004331.0f0094a5@thinkpad> <7b5f3509-5bcd-388b-8d3b-4ea95a9483ad@gmail.com> <20210810153840.42419d06@thinkpad> From: Ian Pilcher Message-ID: Date: Tue, 10 Aug 2021 11:43:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/10/21 11:24 AM, Greg KH wrote: > There should not be anything "odd" about block devices here, just do > whatever all other LED drivers do when referencing a device. AFAIK, the only LED trigger that does anything similar is the netdev trigger. It uses dev_get_by_name(), which is specific to network devices. The block subsystem doesn't appear to have any similar API, which is why Enzo submitted his patch to export block_class and disk_type back in April[1], when he wanted to do something similar. I'm basically bypassing the need to export the symbols, because my trigger code is actually in the block subsystem, rather than the LEDs subsystem. [1] https://www.spinics.net/lists/linux-leds/msg18244.html -- ======================================================================== In Soviet Russia, Google searches you! ========================================================================