Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp813520rdb; Wed, 1 Nov 2023 03:46:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF15SsTZNGtQQxddG6NY4ksU6qysbEzmTXhZkzjnwnuHNyRj8Y1fwJFlVZI9WzllTCDVrOU X-Received: by 2002:a05:6e02:1e02:b0:357:a8a0:3459 with SMTP id g2-20020a056e021e0200b00357a8a03459mr22748170ila.27.1698835569981; Wed, 01 Nov 2023 03:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698835569; cv=none; d=google.com; s=arc-20160816; b=A/Di585gcDybOpTCUmcy57A/2QZ0o3f+2XrBQn0F2YndXUwFpoOwSgAoeK7ATF+uZ8 yUfvhkMqSIZvlzU4quxtNFLyZ3vTpZBgI69hhoaZqgfbnUVLmAAC7HXH5BiLqvvEsm1Y mJxUY4O3Chtr2sPuypbdJo07aMaw8f0R0BHsbtIKXVatAolCb+zC6YO0UI7W2jy1j8P6 4S8n4LypzlY9y28+SzHN1kLqLBAN8ZJ1zFKmoCul8FCStCGokRqv/nvCJBOiOva1kz5r Yi7CuU7fa77Fgdz7TwX219ewAeCdTvg44GdZkgtZteUgCd+//TyyfHjq7ZdkXHk9Hvqu /I0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=5pYPyNiwVfnsjxD6RXuqQLM1XUHFT3rBQSH7mPNmCi0=; fh=AVxFP4OEYlrPnZIRQLJ2tEtUp42+r7wDrVdq0+xiBRU=; b=CaxbHljSfpYkqJGl9HSVlgpT2WXqIaKdYQbix3r0RzsX0+s7V8jkbHm6NiB6t/6//D fHnCA04VSOGrRM+DTzwt1NIYTN0ytFiKvE8Y8OlDc/TpvpNd/cH1w5DmITktiZy/A8Yh rT/8cVENgstAYhUEftQnsBOFFuVwdPhpLz/iY6+B3AFMJgKtniLbsuzdK+htrveDkHUX djlH2rQb8jTZgK4wm+aHHf2jZSV8m3fXnbu04oZrRl8BHHZ5it6P0j5DhqXjayGISN5o pQYo5m5Q9C3+KoxeruhlnLKVVsJW9rcxOJDJG6avMdXy6awH1KlbRJ9/PQLpMnvKEkWP sk4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IhQ3CMhF; 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 k8-20020a633d08000000b005b9b68add80si2715884pga.361.2023.11.01.03.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 03:46:09 -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=IhQ3CMhF; 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 19FEE807CEE1; Wed, 1 Nov 2023 03:46:04 -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 S232047AbjKAKoS (ORCPT + 99 others); Wed, 1 Nov 2023 06:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231559AbjKAKoQ (ORCPT ); Wed, 1 Nov 2023 06:44:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EE7311A; Wed, 1 Nov 2023 03:44:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6B82C433C8; Wed, 1 Nov 2023 10:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698835449; bh=hzm/oY3Uj3T6xSQToZS19KHYzBSe7yYI1FPO5I22FNk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IhQ3CMhFQcNswF3IQNEXoasKrME2RFwM9scqNsCI5hUYebmRB9Cs3doDDmpdEzYvx VQQa60a8spWCmeGWS2fCkogmtOnTjNC7sy7fP+qOsLfRD8ts6ltRiNBFoDyzEkCNQ6 Tmu5+/sGCi9OY0TImhVlh35g+Ng/Ym/cF2QvIAI1AGZy9OmVZQu9ApLVpbYxDgpy9k tQHbQqltAZWq0FgRLEWTuawo6fa/r6mO23eVEn6xfVUKVEhbHYPZiIXmkpxxStu4a8 t/OMZYqKUBHWZNhd4QQYw+2uNKFu3RhmyHJfVVlsbOxYOacWZ6NLJZ5+mcQ1Q6vKPf e47o/KqkQOwLQ== Message-ID: <69d464d3-ef42-484f-8c68-9ed0e22ee6fd@kernel.org> Date: Wed, 1 Nov 2023 11:44:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V7 3/3] leds: Add support for UP board CPLD onboard LEDS Content-Language: en-US To: "larry.lai" , lee@kernel.org, andriy.shevchenko@linux.intel.com, linus.walleij@linaro.org, pavel@ucw.cz Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org, GaryWang@aaeon.com.tw, musa.lin@yunjingtech.com, jack.chang@yunjingtech.com, noah.hung@yunjingtech.com References: <20231031015119.29756-1-larry.lai@yunjingtech.com> <20231031015119.29756-4-larry.lai@yunjingtech.com> From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+ gZaEIYS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; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.6 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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]); Wed, 01 Nov 2023 03:46:04 -0700 (PDT) On 31/10/2023 02:51, larry.lai wrote: > The UP boards come with a few FPGA-controlled onboard LEDs: > * UP Board: yellow, green, red > * UP Squared: blue, yellow, green, red > > This patch depends on patch "mfd: Add support for UP board CPLD/FPGA". Your commit msg should not describe dependencies within patches. Cover letter or --- changelog should. This is totally irrelevant for the git history. > > Signed-off-by: Gary Wang > Signed-off-by: larry.lai ... > + > +static int __init upboard_led_probe(struct platform_device *pdev) Same problems. > +{ > + struct upboard_fpga * const cpld = dev_get_drvdata(pdev->dev.parent); > + struct reg_field fldconf = { > + .reg = UPFPGA_REG_FUNC_EN0, > + }; > + struct upboard_led_data * const pdata = pdev->dev.platform_data; > + struct upboard_led *led; > + > + /* check & register GPIO LEDs */ > + if (strstr(pdata->colour, "gpio")) > + return upboard_led_gpio_register(cpld); > + > + led = devm_kzalloc(&pdev->dev, sizeof(*led), GFP_KERNEL); > + if (!led) > + return -ENOMEM; > + > + fldconf.lsb = pdata->bit; > + fldconf.msb = pdata->bit; > + led->field = devm_regmap_field_alloc(&pdev->dev, cpld->regmap, fldconf); > + if (IS_ERR(led->field)) > + return PTR_ERR(led->field); > + > + led->cdev.brightness_get = upboard_led_brightness_get; > + led->cdev.brightness_set = upboard_led_brightness_set; > + led->cdev.name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "upboard:%s:", pdata->colour); > + if (!led->cdev.name) > + return -ENOMEM; > + > + return devm_led_classdev_register(&pdev->dev, &led->cdev); > +}; > + > +static struct platform_driver upboard_led_driver = { > + .driver = { > + .name = "upboard-led", > + }, > +}; > +module_platform_driver_probe(upboard_led_driver, upboard_led_probe); > + > +MODULE_AUTHOR("Gary Wang "); > +MODULE_DESCRIPTION("UP Board LED driver"); > +MODULE_LICENSE("GPL v2"); > +MODULE_ALIAS("platform:upboard-led"); Same problem. Best regards, Krzysztof