Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1250966yba; Thu, 4 Apr 2019 07:12:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqztcOMQuSp1VHvsBZ9m0+bzU2v1SNxSGLFLB/RzZbLZtSiIF/vzq/CypXeuNmW87xGl3ZwT X-Received: by 2002:a63:5854:: with SMTP id i20mr5927828pgm.171.1554387147743; Thu, 04 Apr 2019 07:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554387147; cv=none; d=google.com; s=arc-20160816; b=lbvWfjuhipy2xtYx7+59honydhP7yN7KxhPl7Q3i9RuUqzq6/VCJuM2sY8grphXZfG Mm9IDctx9gC8WSjelAyRewTeKhEJJwxXwsMgJ6MJyImkHXjlprNVlrccWeK5VB19Mx9Y Arx2PZZqfwH5zc6R2mjzeeJG30F3yHy2SaiVehyBf3c0yuFXM4oHeHqFpvYw+GcOYWgr mcD5KBJVsWkEH4EON3RTroSWlupm9xF2KLDvJQ7hJzCGwm77YBruYXWZThyQjgdEgEpM EBZaSOG0w7TKi7pbjo0p2Li9khhD3QPZtVU8+rWi6UPgf3Sdzyz6PFLGOk18anOxchWx 74vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rKIumIW4/pqk9mqvGkSZcYMVkb26vhngqjq/5DBwZgQ=; b=bS8NJe/FjXdGpPHVU/aZC+uIglpdZcCnVXK6Xsr3Mc/CePbpsZhLlWzi/SfainWD5K 4T2SkH0i+lBzpYjCjbUEkuUFSMK+tcm4uilNn71tu36zAXP37e7xQKv0DDYw8lPe5n7o uEWRE/kIJPbpCNmcerjHXf29YxU+awoRu5tYaIt5k+C4ptQxbAmS1NGlZwBwzivzzy7M cR2bH6BnkooCZy/V2oEY0rh2COWl2R6UOWD45iRWlqsvwMw/MXJIQy5yzzj9+v/Kiex0 y3FV8DUx3H3tB/vl1oE8ePuzbJpSau+SspO7mF3k0Rc75HsIfQJqmF+oj4Noy6gFSWLe EcGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Pkh47teP; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g74si16604054pfd.221.2019.04.04.07.12.12; Thu, 04 Apr 2019 07:12:27 -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=@chromium.org header.s=google header.b=Pkh47teP; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728723AbfDDOLa (ORCPT + 99 others); Thu, 4 Apr 2019 10:11:30 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:34849 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727341AbfDDOL3 (ORCPT ); Thu, 4 Apr 2019 10:11:29 -0400 Received: by mail-oi1-f195.google.com with SMTP id j132so2008588oib.2 for ; Thu, 04 Apr 2019 07:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rKIumIW4/pqk9mqvGkSZcYMVkb26vhngqjq/5DBwZgQ=; b=Pkh47tePszMlIZGUWv2KJ/O9eEZpY0s1yE8lY+JhWob/SHGaPy4MTsnBlqfcvnObIh 782FRqtopZhjYhLma1XzQwPHzh9oewNTkKCpeAgopzP/hdup3JF+SbgEI5F4ywTBmQ3b Rrfnd4fCJm2BBxsbT9Ml6RC8N+5QrXPxR/xzE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rKIumIW4/pqk9mqvGkSZcYMVkb26vhngqjq/5DBwZgQ=; b=CdDOGZaJ5BRD/E2l8MeE8BPL2GqN9gu9mW+PWqNtwE+LlW0y9hX5Z9Mg1ym2YldeVl okuFpEefx076niewRfWEgPf6VUsJzZpDYTScV5Gim55QdFwa0GKJzFPsFPjod+ji1Bvz ipdwmI+H95pIhdX2AJym+L2jutr/5eikTCC4zbLBcwE2ieSIIFHsWC+bckze0dR0KA/r 3rMcafhgD2EWA2pedo9/zkNpVsT9OSbM2Ma6mzyhzJZHU02/fJGVOIExEaSYFkbBxhXK h7aXHrscbTzFOcuB2ppcX6g8NbbKwipLuXUXXNADfq9yxJVPfpCFLbKdfoiK3p9wfrZj 6HDQ== X-Gm-Message-State: APjAAAVODQrfPRMSJBSYdxf6varHumjVHFshiYVq61LxfOAbmC3L+0MK mx001WvCno+nwS3L4/YPmKPTg8A/cdg= X-Received: by 2002:aca:b607:: with SMTP id g7mr3518128oif.6.1554387088848; Thu, 04 Apr 2019 07:11:28 -0700 (PDT) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com. [209.85.210.54]) by smtp.gmail.com with ESMTPSA id p205sm7474394oia.49.2019.04.04.07.11.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2019 07:11:27 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id m10so2468771otp.2 for ; Thu, 04 Apr 2019 07:11:27 -0700 (PDT) X-Received: by 2002:a9d:61cf:: with SMTP id h15mr4235102otk.140.1554387087097; Thu, 04 Apr 2019 07:11:27 -0700 (PDT) MIME-Version: 1.0 References: <20190308203801.57920-1-ncrews@chromium.org> <20190308210843.GA16125@amd> <20190404112415.GB18653@amd> In-Reply-To: <20190404112415.GB18653@amd> From: Nick Crews Date: Thu, 4 Apr 2019 08:11:15 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] platform/chrome: Add Wilco EC keyboard backlight LEDs support To: Pavel Machek Cc: Enric Balletbo i Serra , Benson Leung , linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, linux-kernel , Duncan Laurie , Daniel Erat , Guenter Roeck , Dmitry Torokhov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 4, 2019 at 5:24 AM Pavel Machek wrote: > > On Mon 2019-03-11 09:29:06, Nick Crews wrote: > > Thanks for looking this over. I will fix most of your concerns, but > > have one question. > > > > On Fri, Mar 8, 2019 at 2:08 PM Pavel Machek wrote: > > > > > > On Fri 2019-03-08 13:38:02, Nick Crews wrote: > > > > This patch is meant to be applied on top of the for-next > > > > branch of the platform/chrome repository, as it uses some of > > > > the code staged there. > > > > > > > > The EC is in charge of controlling the keyboard backlight on > > > > the Wilco platform. We expose a standard LED class device at > > > > /sys/class/leds/wilco::kbd_backlight. This driver is modeled > > > > after the standard Chrome OS keyboard backlight driver at > > > > drivers/platform/chrome/cros_kbd_led_backlight.c > > > > > > Can you make it "platform::kbd_backlight"? We want some consistency > > > there. > > > > The analogous name in the standard driver > > drivers/platform/chrome/cros_kbd_led_backlight.c is > > "chromeos::kbd_backlight", and I thought "wilco" was a better > > substitute for "chromeos" than "platform" would be. What other thing > > are you saying "platform" would be consistent with? > > Yeah, well, we not let the cros_kbd_led_backlight.c use chromeos:: in > the first place. But it happened. We want all backlights for the > system keyboard to use common name, and "chromeos" is not really > suitable for that. "platform" is. > > Pavel That reasoning makes sense Pavel. I don't think we care that much about what the prefix actually is. The userspace daemon only looks for something that matches "*:kbd_backlight". Therefore, I think we should change both of these to use "platform::kbd_backlight". Enric agrees with me here, any other concerns? If I don't hear anything I'll add that change to this patch as well and re-send it. Thanks, Nick