Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1111938rda; Mon, 23 Oct 2023 03:00:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvzFGW9cOMdtuCnwq6uupIWRUNYf1xxUF/j0a47gKlrEDF7gdHwo0xbg/y+vUPoqmbCjVN X-Received: by 2002:a17:90b:1254:b0:279:23a:9e70 with SMTP id gx20-20020a17090b125400b00279023a9e70mr5842595pjb.2.1698055249293; Mon, 23 Oct 2023 03:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698055249; cv=none; d=google.com; s=arc-20160816; b=O+Ll7EtdkkC3V8QrqNcoWHyJJ+0DWACPlf75r/G6vSUxTBZ6kfdYGVxJn5nBPdhMnN 1Ty5CZLOHt2hiwHA/Hg9+hGB/09GT8tKxX0ql7ae9rW7P+ZJrD5Lt9Ht6jX+ldC9cOrK buGpQQeEm2ymyOlnVFurxXDFloPxToRiWI9ONIQ1TKulX63Ex4aZwwhsrhj8pML2n9gR qkg1JNFtwFSkwgKGXrVerFmFXM/qYW1oaeZyTa7bd/4ZPVfHpTGmbnxtgKf2okqP0amX hv2pycSFoFAfKbtJhxGQmQgWHoPmwkRNRaLVTMJdFTXckwK3YrEwrQybLXHZPegZJO2f uWCA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P0rox5mG+zLdGrmQ83Gw4vuK1ywkLQVPyBy9VtYVx4M=; fh=tHHPZnYXdSqmA9BtrDRpyxKU7g9VT1SySOX41ca9vtA=; b=G5y4/8weV71kSl5v8mvP0xqS07Yb3BuNDJFdtPajHy0R5XMDfRusp40HYNoFW/ZJG1 y4dv/FHh/H7rffJWXSx2Tbp56YC1XBEuzH6Odl4routnVIPdYEJTa5BWB8P85QOKP9+K 4HpI79uTgPnB7g43RlC6olsOmw8OR0Vhacotn37eLekCHSv5cKHcWNuUvuPiTyuQI7Pf qa7Mu2JIoNbGYX8undzN+nyC88ffmasIYVgIniz/ZPT0Tm5vAFSFMSwM4FU/Ng1Jvwqs sUKvwXjLtaUMrDfp+XPpvRsp322X3/CmJT+ojhp38tfCzvimchkpqW6PcS73A35RN6uf ERYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R3YJbI7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id il3-20020a17090b164300b00277e0d7163asi6659425pjb.32.2023.10.23.03.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 03:00:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R3YJbI7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 164188051B3D; Mon, 23 Oct 2023 03:00:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233342AbjJWJ7k (ORCPT + 99 others); Mon, 23 Oct 2023 05:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233453AbjJWJ70 (ORCPT ); Mon, 23 Oct 2023 05:59:26 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773EA1722; Mon, 23 Oct 2023 02:59:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CFCEC433C8; Mon, 23 Oct 2023 09:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698055143; bh=U22arOYqMfIQqu6jCSRcueYe91nxdoBeypcQss0QoDw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R3YJbI7pZYVTAe06UbkqxujhKtqaah2NL9tfHTwTQEZMsSPe5agQXXuqrBJo5BoX/ uc4A5nbeARkimGw16qLKxy9+LevqaI85NTl0oCwZYwYXgviKEWw3wrqHYG4KXfzK9y qRQkd8l20uO3aO+aEktE9dQDPhgRu/g3cGgO+di7Nt5rgJm4l7PBpVvgZDvGr439S9 GZuLVcUkYP1IYHw8ooUZbxWzJdKAWzJi71e3Pxhzt4yjk3UkDTMFhI0s6RrtgR+EgO a8imxQ5Df23y/y57yeG3A64DslPZs8vrayt3jWFCYGXKBWw5ojm+rbCDDN0vtU6FZQ PM9SETXIWJ+iw== Date: Mon, 23 Oct 2023 10:58:55 +0100 From: Lee Jones To: =?iso-8859-1?Q?Andr=E9?= Apitzsch Cc: Samuel Holland , Pavel Machek , linux-leds@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec , Albert Ou , Conor Dooley , Guo Ren , Heiko Stuebner , Heiko Stuebner , Jisheng Zhang , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Philipp Zabel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [RESEND PATCH v7 2/5] leds: sun50i-a100: New driver for the A100 LED controller Message-ID: <20231023095855.GH8909@google.com> References: <20221231235541.13568-1-samuel@sholland.org> <20221231235541.13568-3-samuel@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 23 Oct 2023 03:00:09 -0700 (PDT) > Hi Samuel, > > there are two more things to change, which came up recently. See below. > > Regards, > André > > Am Samstag, dem 31.12.2022 um 17:55 -0600 schrieb Samuel Holland: > > Some Allwinner sunxi SoCs, starting with the A100, contain an LED > > controller designed to drive RGB LED pixels. Add a driver for it > > using > > the multicolor LED framework, and with LEDs defined in the device > > tree. > > > > Acked-by: Jernej Skrabec > > Signed-off-by: Samuel Holland > > --- > > [...] > > diff --git a/drivers/leds/leds-sun50i-a100.c b/drivers/leds/leds- > > sun50i-a100.c [...] > > +struct sun50i_a100_ledc { > > + struct device *dev; > > + void __iomem *base; > > + struct clk *bus_clk; > > + struct clk *mod_clk; > > + struct reset_control *reset; > > + > > + u32 *buffer; > > + struct dma_chan *dma_chan; > > + dma_addr_t dma_handle; > > + int pio_length; > > + int pio_offset; > > + > > + spinlock_t lock; > > + int next_length; > > + bool xfer_active; > > + > > + u32 format; > > + struct sun50i_a100_ledc_timing timing; > > + > > + int num_leds; > > + struct sun50i_a100_ledc_led leds[]; > > Annotate struct with __counted_by(num_leds). André, please remember to snip your replies. -- Lee Jones [李琼斯]