Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5007851imm; Tue, 31 Jul 2018 04:07:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfg7DnYwb2OGKpz6D9/aFx45VpcQw+OSiBdwVYmWKYgRaUsAfBrHyF7Dk4E8Y+P3SX8Am1e X-Received: by 2002:a63:d351:: with SMTP id u17-v6mr11622969pgi.366.1533035248942; Tue, 31 Jul 2018 04:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533035248; cv=none; d=google.com; s=arc-20160816; b=nNAUqa/C2Zm2KefSQsopAj9bHaAXgWL1Yrx/C/J+EsufBP3izXcMpUdnr8TjcTqSnC 4J1/Wx64oREEIHMcJYGs/qaadwkN7wfZdneCrVekfga6iylEaCeiTq5lHFJgrvTXTdoD HnATHG7tvC/PWgt1iEQmJULcZo9C5+AC0U3wFq8kvehCyvryX82qW7HhZx2XLptMFBVm iqq6KIWByKonLBuFS3wItKntJVtsy3Om4FUAkUIUmP9geqOJH54CRQq6aibEzswX53Lp iqwzSYBMqLfK066IhohC62GxaFEb7wmtqgkTrFAdE+0eQ7VpuoZWYVg6ih9uYbN/mxhC Kzbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=tSKqY4HyIWCDZ1sJ2ljh/LfVFMdC2Mqlldjoy3L1TXg=; b=cebjS9kfOivT7gGrnWVlsu/m6rqId0lBgcBerF1SSKRfAagT2HFTLTdOyRSmGF5ips 0jwyRAOsVA6sJSsHdW3Et0pAFKc8SwI8estMxo4/qGPH0PNTHLRkk8D2xM6aKsL8zYPJ JVlGIM7TKv9G1T+h7pyXc+ZsH1S+DCVd9wkyWhJQov5KeeZYLeVpdgl6+YxnolaokToY MRELCFwnFHJ904fammTz+ortzSxHGkMNyLxtiJXd0AL46xK24l4puI8ANL1hR3hStjiV pUG7iHgfKjrSAe1TbHZ8kes0qZpPekXJ0r1d5MfIZTVvqjpsQgkCMcNMz/IVCiqvd41N 3rHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OmPmZbii; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id h12-v6si13943070pfk.156.2018.07.31.04.07.14; Tue, 31 Jul 2018 04:07:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OmPmZbii; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731943AbeGaMqM (ORCPT + 99 others); Tue, 31 Jul 2018 08:46:12 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55644 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731503AbeGaMqM (ORCPT ); Tue, 31 Jul 2018 08:46:12 -0400 Received: by mail-wm0-f66.google.com with SMTP id f21-v6so2589780wmc.5; Tue, 31 Jul 2018 04:06:23 -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=tSKqY4HyIWCDZ1sJ2ljh/LfVFMdC2Mqlldjoy3L1TXg=; b=OmPmZbiiobnzmffj/1W0aWHFpqyOJxj8iiokTlpIU0H1LCyp6j9Lg4M7nQ6kCD4ceq YBMZ1FfTEJMoXAUWYtVviAGIxXklKenBGst2tnYHbjn8HJyuYskasHcKNWldQh1Na977 s8nS3n5yrherace2tGgBn6TQXiQ0uH7DRI7wvrYob1kdFTbrnLoL3gDgE8+kamUjah4g NprS9cwQVX8yHrCAp/smgJ1l88R44mo4YP1XG5/r5MIH2nUStTzt8OtNpjpSpCAusBdK /XOeS4Z+abTas1wQgSYrNTRHLY9wn95cerszBy3BfZcXm0ZCGdmASV8RIEY98lgq9uDV S2Sg== 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=tSKqY4HyIWCDZ1sJ2ljh/LfVFMdC2Mqlldjoy3L1TXg=; b=apQo+u+huZEUOVt//vP2C9nKrj528RLyxEr9AgIVaLGeb3rcU6ggFY9UmeMJhxee3r Q2q8B1TS95rSoFWWCHpc0Fuv3cv/DyFczrd3LpsH+LOBwbPpEYiwjhRqZNuaYTN9T+9k Ygb4Ydn2621N5U9Rk4oCV9M9m+BsXP3TNcoqm9qd6sOaveLBCRiba5s61U2fXrspzG78 TVONff1ZbLGZGE4BoLgxGC1BWPvm1/XS+EeP59Vy/sYlbxongIr9NJrak/Rptu4Qtdjo 72j/QuptF7ZIxh9lgpZzLJiks9J8Vu59QW1GthnuOZUqPQqfqjYP47FxfVoBhJfO932I xacg== X-Gm-Message-State: AOUpUlFD0Rnd6EYEGQlvjt2By6HVcqv3Sk8TIepIkzEqibIOBgHuBa0v M8KSwj6vW9F/LaX8Z8Kh6tGhqLG/ X-Received: by 2002:a1c:5c7:: with SMTP id 190-v6mr2045827wmf.24.1533035182975; Tue, 31 Jul 2018 04:06:22 -0700 (PDT) Received: from [192.168.1.18] (bli209.neoplus.adsl.tpnet.pl. [83.28.202.209]) by smtp.gmail.com with ESMTPSA id c15-v6sm1456282wmb.2.2018.07.31.04.06.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 04:06:22 -0700 (PDT) Subject: Re: [PATCH] leds: add APU3 dmi information to leds-apu To: Florian Eckert Cc: pavel@ucw.cz, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Eckert.Florian@googlemail.com References: <20180730091108.30098-1-fe@dev.tdt.de> From: Jacek Anaszewski Message-ID: Date: Tue, 31 Jul 2018 13:06:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180730091108.30098-1-fe@dev.tdt.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, Thank you for the patch. Please check the patch, which is in linux-next already: https://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds.git/commit/?h=for-next&id=8cb21086cc6359c6d4f003a788050308afb211ad It seems to have added the support you want. Best regards, Jacek Anaszewski On 07/30/2018 11:11 AM, Florian Eckert wrote: > This driver should also get loaded if this is a APU3 from PC Engines. > It has the same pin layout for leds. > > Signed-off-by: Florian Eckert > --- > drivers/leds/leds-apu.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c > index 8c93d68964c7..1ed1c5a5dc77 100644 > --- a/drivers/leds/leds-apu.c > +++ b/drivers/leds/leds-apu.c > @@ -134,6 +134,14 @@ static const struct dmi_system_id apu_led_dmi_table[] __initconst = { > DMI_MATCH(DMI_BOARD_NAME, "PC Engines apu2") > } > }, > + /* PC Engines APU3 with "Legancy" bios >= 4.0.7 */ > + { > + .ident = "apu3", > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"), > + DMI_MATCH(DMI_BOARD_NAME, "APU3") > + } > + }, > {} > }; > MODULE_DEVICE_TABLE(dmi, apu_led_dmi_table); > @@ -229,6 +237,7 @@ static int __init apu_led_probe(struct platform_device *pdev) > apu_led->num_led_instances = ARRAY_SIZE(apu1_led_profile); > apu_led->iosize = APU1_IOSIZE; > } else if (dmi_match(DMI_BOARD_NAME, "APU2") || > + dmi_match(DMI_BOARD_NAME, "APU3") || > dmi_match(DMI_BOARD_NAME, "apu2") || > dmi_match(DMI_BOARD_NAME, "PC Engines apu2")) { > apu_led->profile = apu2_led_profile; > @@ -258,6 +267,7 @@ static int __init apu_led_init(void) > } > if (!(dmi_match(DMI_PRODUCT_NAME, "APU") || > dmi_match(DMI_PRODUCT_NAME, "APU2") || > + dmi_match(DMI_PRODUCT_NAME, "APU3") || > dmi_match(DMI_PRODUCT_NAME, "apu2") || > dmi_match(DMI_PRODUCT_NAME, "PC Engines apu2"))) { > pr_err("Unknown PC Engines board: %s\n", >