Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3722234pxt; Tue, 10 Aug 2021 09:49:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE7cOwDn+7Z9H0HHFn6SD5AL27TtuiFCP5ru/zKKmFp36UHTUZaEE1HcriEG0ZzG4sBfKE X-Received: by 2002:a17:906:7246:: with SMTP id n6mr1711682ejk.94.1628614160426; Tue, 10 Aug 2021 09:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628614160; cv=none; d=google.com; s=arc-20160816; b=U9K4f+Ea1VFNjafXJV9Z5y+tPW0OGCWF5I9dWD/MMbKcTNoPN6Q8bMbSCeFNg/+G3Q 5g9GWuytsiVCu2Bmc8+cPgQOO35qtErL1AEx1/wpsF6Fkcl2aodas8A3JvPDrAVigCfz wumAwHTs2e/Rdqt9RZUNOvplroaSoFg28N14xwXYjcnYPDJ32+YHy632wCAqwncRnD0M t1RMf0NrP2Mc/kQ7v6aeuCQ0gzvyIn/r+53y8i3efgC1KdHf2hV7oUWAq61trWg1Tdpd T7vsIVJkx858X2uJ6ExsfIeoMGRlVoOz0KRIi0rnnswgNLLJMsagBzbpCM4iZzEG9/h3 tzfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rj2op1h0RsAqnVze8UuEYmoEOwth+tBTDhSNCdduzX0=; b=Du8aIBVDSZZfusoXXIvw5qQ7TAq6IMoRdne05/7DWa1GWm/cdt07klUvmRf+ta6Qlm afQUXs/N8H28vAnl+XukNwijdczO2tKGqapCE6k7+CGlcwAtJZ33V0LIn2lqwmI7AnP5 hV6om+XKw5olVXBPmtK8wTTb21jkDsH/4K+WiBqskU7Cgw2D53PrVqs1ymlBkOOk/zKa 2p2a7UwzIk0szuUjs7PRvzWvYMEworPxBR0A4X3nhmZGyoFA1S9tPIpXbbQGYD/vJRkg p20J0CmhCMM5UbN7cevj2kGZRL3ocLhitAERvzWvST/F8nr5BliRe52+YjPbrQP+8uaR AwLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jp19FBkd; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l25si2283520eds.541.2021.08.10.09.48.54; Tue, 10 Aug 2021 09:49:20 -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=@linuxfoundation.org header.s=korg header.b=jp19FBkd; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230521AbhHJQYo (ORCPT + 99 others); Tue, 10 Aug 2021 12:24:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:44984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233981AbhHJQYg (ORCPT ); Tue, 10 Aug 2021 12:24:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DB0F360ED8; Tue, 10 Aug 2021 16:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628612654; bh=YVP2aA9Rcgj+1n38xxAGC7IEGedz+70yPRyNqIvJCr8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jp19FBkdMf4JmElg5sQTh1JVQqki/FaL20o92O595x81oEXNJinE84sI59c8L2NEK QldbcPXnVhztQjCf/2cQ9VaU9yKKoAPs1svF3V4yl4xli3H9hnAPsMTs7JlIKZxjRR tr6hRpQbK+ERwT06PhY/YoSBxfiRJt8xmneCfgZY= Date: Tue, 10 Aug 2021 18:24:12 +0200 From: Greg KH To: Ian Pilcher Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , 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 Subject: Re: [RFC PATCH v2 00/10] Add configurable block device LED triggers Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 10:55:33AM -0500, Ian Pilcher wrote: > On 8/10/21 9:48 AM, Greg KH wrote: > > But what about when the device is removed from the system first? Be > > careful about that... > > > > Anyway, sure, try those functions, I really do not know, all I > > originally complained about was those exports which did not need to be > > exported. > > Sounds good. I'll work something up. (I'm actually thinking that > class_find_device() may be the best way to go, as it grabs a reference > to the device.) There should not be anything "odd" about block devices here, just do whatever all other LED drivers do when referencing a device. thanks, greg k-h