Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3721100pxt; Tue, 10 Aug 2021 09:47:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyndEWt4WomazDSImuN8kA45+1L6JuW+c2pD7IcjCEYtA97SQxtvGS8uLTDyHUrSoGH4eGF X-Received: by 2002:a17:906:4913:: with SMTP id b19mr2550343ejq.315.1628614064924; Tue, 10 Aug 2021 09:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628614064; cv=none; d=google.com; s=arc-20160816; b=N0Ovq6+YpLJET52h/1xkT+zCtUBz3neyzfKkATrt3UYgca7QMxZIBgNJCwc/uUDGZc bBqreDqDYJXFj0Y90OMz1iFQy4hGXV9SbHALh7Gq8gEzCDP5SSMtAYl0P/voT48FhRlG FfKpvcHZjfrarYJ+HNt2kv/ThYgL7VkWflz75yq8gOh2Sc/jwO2z7wgPyQoSSF+zJqY2 F5wXNCTfkCw5bXr3wzhQJsBl6wk0wRf9Lg7sW1kJUeaY/X8i9vrBwS4u3kd13SO4Bbeo 15clWOvBElHwJgis/1k3aql4kF8BpPKjlqFTnlxavBW5k23bWImjFJsPMBmqzbZ9SAXF unkA== 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:subject:cc:to:from:date :dkim-signature; bh=t11g++U7aIkTiq0l2mx/tQpwmvSbMp7XDcTdCkghvV8=; b=yV7C8TiC1SdN4o5393kp07rAiADMZCKaPaqopgAPU1i5NcAx8ME5GFevei8SobPZLT vXCzYali5qjPOJrFN980TeIwEneqzHqdgA32FzmWcpzrVCGoDzrWdq07TfUE0vS6P2+M vwiMLwFWRPZTYUAq4SzJGpYXbfzXhzW+l81nI0Zrxd3g8bydBkNmB2n8IfkKu8X4Kyho JKNReR40O6cPUaGzlO7XfYWA0aHCFrZpdD5EQwX7O94/OcS+lVr75uA2gqCPquQ1lvQy PhZl3WocrOzSF/jg4sUl0AdlEtHKT1Dq0JUejS5TtAnTUu+lRXAJfFoqGVICz3uI+Vbp IpyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JR/2Y3bx"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si24470503eje.551.2021.08.10.09.47.20; Tue, 10 Aug 2021 09:47:44 -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=@kernel.org header.s=k20201202 header.b="JR/2Y3bx"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235657AbhHJQjs (ORCPT + 99 others); Tue, 10 Aug 2021 12:39:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:52086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbhHJQjr (ORCPT ); Tue, 10 Aug 2021 12:39:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08A1060041; Tue, 10 Aug 2021 16:39:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628613564; bh=pt+PGt+C0GTfdvz8hMl07lVk7abqx9GVd6wHBkWheks=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JR/2Y3bxYSVRYUtQwOGCrm/2nlqFhjOtGgKu/oL1OUrPgIb4GpT/TzgjqiSBiH5gf O6HvlD+IvCE918VV8+kVv+9HsHIAtWXJ1jMpvZ0duFderkNjsQaCwiHq2mVJ2nKZ3M qgHT4+HnWSEFHg5iV2zOKrTzBOeX6esNG6gNCMSlUQtiZB29f8a4kHLWFi8sOXQ2W0 euOXF0shsKmLG68AEwdXyRLZLEzcKm+SJvfPfFPy6BL5g0Kl7fGCl3zPCJPeuQAr0I nFeIDzZZblpxjoSwbtUhxF2293qXaZZm0yBUPxFJRGeotRA0iBBUYEpgWk8rBztOHJ uK2z8jHKPdv4w== Date: Tue, 10 Aug 2021 18:39:14 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Ian Pilcher Cc: Greg KH , 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: <20210810183914.47727056@thinkpad> In-Reply-To: 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> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Aug 2021 18:24:12 +0200 Greg KH wrote: > > 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. Ian, look at ledtrig-tty and maybe get inspiration from there :) Marek