Received: by 10.213.65.68 with SMTP id h4csp922469imn; Sun, 18 Mar 2018 07:29:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELtsY9Ff9WcYkB3n9F95VrJsBOslkW2iRMVVZnopZGpxeZ64Zoag0NnKCWvDet2wNWewnkZf X-Received: by 10.99.120.138 with SMTP id t132mr6710759pgc.280.1521383388924; Sun, 18 Mar 2018 07:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521383388; cv=none; d=google.com; s=arc-20160816; b=SUuoP8RdJsgABMUilbIISBrWJOWnYBtawiMfO4tqlCdM1qwuVYgWklQchSwWaUmH4K RtVWMm2c9OA0+JPiyYgTMbHbYQAoXu7wVYeWzcDdd1kVm9x7qBNDznXNQDL9ZsSdMu1K AZjjESUDdc6kjrbxqSmdkoDQpeI4utd+v2pNaXCxj+V8CLXMB94QV4phzS0po0WCp9vD DibJMQmJ0RrCpUcT+KTzdLHf9aRRlNK6sr+p3V60EJ1EIM5l+YNSFHgCAeFYaYnUid32 ME4DjJROM0h7SgdD0MHHNZGG8XavigPGldsiRrP04TZm0dEUXS5q0rLgkzZLfZTIWQVX GwRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=CdyjsUWqU6OGpccXCCIyrITN/D/bIW3ZYrl0MCiEF5Y=; b=AIOEGqXiMP32dkXzQLEJRz+DiYtDasxpGfuwoFMAplLoIMBmATBHcWG3GUoHTk98ru r3jG2j5VI40+ePhhH16innAK7KKECb/C7zDfOb/BSz01OaEPrwKiW4AncV9t5ycRfQGs qM5Afx++xYcWYprpGD16F5X5+4ZJ75rXr2GQWeTUJ0Q+KSx3Ka2R30hZg9A+OPwg8KvW eQ2iUU7nbco/djHxN7oBaZKpDJY3ZIGjHiI1FWm7H5FOKJw+dDwdAhBs1QDEzo3AWcER TT9em0eup6OiuIJTzjVQmefRunU4mHlIp2DwaJj4XKV4RlOOW0pq6/prL6z4H5Grw1xA voaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=ec1xqvYw; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u186si7752318pfb.120.2018.03.18.07.29.34; Sun, 18 Mar 2018 07:29:48 -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=@googlemail.com header.s=20161025 header.b=ec1xqvYw; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754281AbeCRO2g (ORCPT + 99 others); Sun, 18 Mar 2018 10:28:36 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:37858 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754197AbeCRO2e (ORCPT ); Sun, 18 Mar 2018 10:28:34 -0400 Received: by mail-wr0-f177.google.com with SMTP id z12so16075764wrg.4; Sun, 18 Mar 2018 07:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=CdyjsUWqU6OGpccXCCIyrITN/D/bIW3ZYrl0MCiEF5Y=; b=ec1xqvYwQ8fnp/aYG2z6aJ8nGxLlcn7SVJco7aiuhhWS9pxzmlg/lC4/gZS5tZAhFF fDSw6F7fM1F/GXm06N/woVW17SVG17kHR0IOWCJH9Qz9LvlyhFEzsRtfeaG/V3209RjS TkdV6yPsttgCpsOiFX0kODJANGBCmfnAhvJHPirHj0+Rc1wZFaj3pES7ag3qyExWPM4x vu3EYskC38hb9vHp0TlEAv9B+IFvknh6BNDMNUUYDOXRN/WwjrhtVJNEDmFsOd9StdaC LfSCF0Zhw9VtuezUUS0um81Mdwrgyax36MHlP5Bk2GxRpc3CizAz67+i9dUBa309M6sL X7VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=CdyjsUWqU6OGpccXCCIyrITN/D/bIW3ZYrl0MCiEF5Y=; b=XF5J0z5neIFwDLXNsx7p6kGS59QHVFcA59wxHVepAHxaAn+EMkKsLc47xcKSNB4T5O vnDwbhXtORMloQjs7Q4cHXC1qhe4AaOuAeLr7itrWH3GeRSxt+eWULRsRXtfnz07T0AX EVui+HbqPCrVtWUp6mgqHAn3jvSQ3KqO7CUlJ2PTprOrC8ka1O38IqCR8cRKIA/8+e0P /Wv2yN17mKZdjqdM0Rs1Ysfxtxn8XjC4n/a7IgV/Ff+e28TU0HJVPRAQvHlEGupk4nt7 kqUpTnqksVGjlSXXsnR6Ln/DNXhpmbJBNd0fyNwNxTaUyYSsPVcS6oJeeMYrZ2tSS4NH 7CKw== X-Gm-Message-State: AElRT7HbsMq+I8/YK2RMCrow4L6FoHuPhWHAtaurc6cwKz6ezn6gfoeA V1LfRzttiIVNeDhwMghUfP8= X-Received: by 10.223.179.9 with SMTP id j9mr3890565wrd.276.1521383312562; Sun, 18 Mar 2018 07:28:32 -0700 (PDT) Received: from localhost (cable-78-34-29-248.netcologne.de. [78.34.29.248]) by smtp.gmail.com with ESMTPSA id s49sm5150526wrc.95.2018.03.18.07.28.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 07:28:31 -0700 (PDT) Date: Sun, 18 Mar 2018 15:24:57 +0100 (CET) From: Hans Ulli Kroll X-X-Sender: elektroman@T420s To: Jacek Anaszewski cc: Hans Ulli Kroll , Alan Mizrahi , Richard Purdie , Pavel Machek , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, "platform-driver-x86@vger.kernel.org" Subject: Re: [PATCH] leds: fix wrong dmi_match on PC Engines APU LEDs In-Reply-To: Message-ID: References: <20180305170910.8905-1-ulli.kroll@googlemail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacek On Sat, 10 Mar 2018, Jacek Anaszewski wrote: > Hi Hans, > > Thank you for the patch. > > On 03/05/2018 06:09 PM, Hans Ulli Kroll wrote: > > APU has compared to APU2 no DMI_BOARD_NAME. > > Use DMI_PRODUCT_NAME instead. > > Could we have the commit message more expressive? > > Is it that now this driver doesn't work for APU board? Yes it doesn't work for my APU board. I've already checked the updated driver in -next As you can see here # grep . /sys/class/dmi/id/* /sys/class/dmi/id/bios_date:04/05/2014 /sys/class/dmi/id/bios_vendor:coreboot /sys/class/dmi/id/bios_version:SageBios_PCEngines_APU-45 /sys/class/dmi/id/chassis_type:3 /sys/class/dmi/id/chassis_vendor:PC Engines /sys/class/dmi/id/modalias:dmi:bvncoreboot:bvrSageBios_PCEngines_APU-45:bd04/05/2014:svnPCEngines:pnAPU:pvr1.0:cvnPCEngines:ct3:cvr: /sys/class/dmi/id/product_family:None Provided /sys/class/dmi/id/product_name:APU /sys/class/dmi/id/product_serial:XXXXXXX /sys/class/dmi/id/product_version:1.0 /sys/class/dmi/id/sys_vendor:PC Engines /sys/class/dmi/id/uevent:MODALIAS=dmi:bvncoreboot:bvrSageBios_PCEngines_APU-45:bd04/05/2014:svnPCEngines:pnAPU:pvr1.0:cvnPCEngines:ct3:cvr: there is no board name on APU. here is the output from my APU2 board # grep . /sys/class/dmi/id/* /sys/class/dmi/id/bios_date:02/28/2017 /sys/class/dmi/id/bios_vendor:coreboot /sys/class/dmi/id/bios_version:4.0.7 /sys/class/dmi/id/board_name:APU2 /sys/class/dmi/id/board_serial:XXXXXXX /sys/class/dmi/id/board_vendor:PC Engines /sys/class/dmi/id/board_version:1.0 /sys/class/dmi/id/chassis_type:3 /sys/class/dmi/id/chassis_vendor:PC Engines /sys/class/dmi/id/modalias:dmi:bvncoreboot:bvr4.0.7:bd02/28/2017:svnPCEngines:pnAPU2:pvr1.0:rvnPCEngines:rnAPU2:rvr1.0:cvnPCEngines:ct3:cvr: /sys/class/dmi/id/product_name:APU2 /sys/class/dmi/id/product_serial:XXXXXX /sys/class/dmi/id/product_version:1.0 /sys/class/dmi/id/sys_vendor:PC Engines /sys/class/dmi/id/uevent:MODALIAS=dmi:bvncoreboot:bvr4.0.7:bd02/28/2017:svnPCEngines:pnAPU2:pvr1.0:rvnPCEngines:rnAPU2:rvr1.0:cvnPCEngines:ct3:cvr: As you can see here for APU2 the board_name is set. > > If it fails here, then how it is possible that it succeeds > in the apu_led_init() ? > in apu_led_init() is a check for product_name for both both boards. Ans this succeeds Thus the fix here > - if (dmi_match(DMI_BOARD_NAME, "APU")) { > + if (dmi_match(DMI_PRODUCT_NAME, "APU")) { I can rewrite the patch to catch both board_name and product_name for the APU board, and add a better commit log. They are more recent bios updates for this board, but the are specified as "beta" so I'm afraid of an update. I have no hardware to recover a "damaged" SPI flash chip. Greetings Hans Ulli Kroll