Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp979621imu; Fri, 21 Dec 2018 10:25:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/WBz2pXTZXz25rRIeeKUDtYAFMnoOK/8zuZJrC5xr4PTxqGCIJ3KgaZY5JjinQoKBCV5y7S X-Received: by 2002:a62:a510:: with SMTP id v16mr3600671pfm.18.1545416716238; Fri, 21 Dec 2018 10:25:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545416716; cv=none; d=google.com; s=arc-20160816; b=gR/YDXAoTIpVcmF2OIwMLFeb+MDgHiIBTWiPDudrYeLY+HR0G7eqlvnxoC+gKfuwG4 vCKkBjfN7JMPU1FW53B0H2Eu8jx5CEJHk0Y4+qS75EQbSlT/gK3YFDBXy2ABQpZ9X3gU 2JOQs9nxqU+5NFroPq7pYceYjDyykkKbcBGW1QJko6NJT2dJ41DDHWQgpNEBjr/a8CAl kPhc01eh2AsmuyJOql0e+nsWGSisgF/QsnqFVJiEyN6sSzeODSP3+skZ9Luyo2P7CSpB McvZdyHqBgNQ/kiNrdTBDr+tOWlEOd7oqt+SgXoiLVKtCG58IET38V8w8uEAi9aJuETJ JvIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lg6ichzFk8wIExz6Pe5kNBRiJn7EfeWsfNM6dOqrNMw=; b=VaKl7FdYXoqvP1rqKzEzY/TU3ZYEcrbsAlanrQHl0rtPDYmqUdyw8kIgULt49heZqM mgQIGo2ODNhFckvLAsw0glx5Jfc6BYJKrZeqz4p+am161c/i7RIAMnxZucsfeeF9Mdb5 nfYAOeKCkz/OsEkqNWKBwCa7z3lm89FQ2so9TOtvQgqOU74s51dI8a1Zyht3fdgtY1wj n6WnqUI0FlRvJ1yqm4qFIYJ1eYgP3pH454sp+1tDP5zMLr4/a4J9QIsZI1+yF4kZkKku TkriyA/cWzYAJPeH1/Z3BU//w0WVmyCTn3cVIZ987aP4mg5gF4vh4ozHOuyGVyACYvWD hNWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ACeDVPG0; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r59si22400886plb.247.2018.12.21.10.25.00; Fri, 21 Dec 2018 10:25:16 -0800 (PST) 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=@linaro.org header.s=google header.b=ACeDVPG0; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730936AbeLUJJR (ORCPT + 99 others); Fri, 21 Dec 2018 04:09:17 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37519 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbeLUJJR (ORCPT ); Fri, 21 Dec 2018 04:09:17 -0500 Received: by mail-wm1-f67.google.com with SMTP id g67so4905846wmd.2 for ; Fri, 21 Dec 2018 01:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lg6ichzFk8wIExz6Pe5kNBRiJn7EfeWsfNM6dOqrNMw=; b=ACeDVPG0UKxarsO69o8oD8PMhHwCrUPmV0Zu8b9NFF50oSO0RAF/rXgtl0rj6z3lbH rv0hq0b6HIeXRJnvK3A1ptfNyygew/UzQJNnvFExpUeliDLRKClR2TkKlC5mQW2uwgYi FInZy3a7UFaqXukLpImlbdEhy2RnWyKBcPO9k= 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:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=lg6ichzFk8wIExz6Pe5kNBRiJn7EfeWsfNM6dOqrNMw=; b=Vmxm9bmniNsPWtgzKTpDvd3bRRfRcjL3dO66N4CKbkkdkCJtmWBJ0TBjnB/L0Aj+Ve qn3plmSGaNPKG16BHjKLUv7hBUYL8wWNKfp+G2BnF72FTmtgGd73MPFLBUmTOeyvT1d/ 5ChsKAbUKfqlcjX5QCum5hE08gxdTgSfBUuGFI/zTxooj12djP7B2R4UsKNuiMsZ1sTU HTCCiOURYl6Qbqbhd0LsxyRpDflhOjQRKvDhZn08MlvcuYX2lUUUvoDrjYNLeIHMQt0O 41037oq08FQZUVTMv3gtp6D8WZ7/NsLNeQ/4ROh2bFnk24PhAM08HuwYFwLnoZXXyMdz ifSA== X-Gm-Message-State: AA+aEWaLBRF+ddrsb7tQ0yoE4bDntNPn9lUfoxtCXuixEE2COVws/EWS vA818iMe2ASq1RYXggph4tGS9g== X-Received: by 2002:a1c:b607:: with SMTP id g7mr2026934wmf.97.1545383355158; Fri, 21 Dec 2018 01:09:15 -0800 (PST) Received: from dell ([95.149.164.119]) by smtp.gmail.com with ESMTPSA id s16sm8749977wrt.77.2018.12.21.01.09.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 01:09:14 -0800 (PST) Date: Fri, 21 Dec 2018 09:09:12 +0000 From: Lee Jones To: Enric Balletbo i Serra Cc: gwendal@chromium.org, drinkcat@chromium.org, linux-kernel@vger.kernel.org, groeck@chromium.org, kernel@collabora.com, bleung@chromium.org Subject: Re: [PATCH v5 2/7] mfd / platform: cros_ec: move lightbar attributes to its own driver Message-ID: <20181221090912.GT4497@dell> References: <20181212173402.27086-1-enric.balletbo@collabora.com> <20181212173402.27086-3-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181212173402.27086-3-enric.balletbo@collabora.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Dec 2018, Enric Balletbo i Serra wrote: > The entire way how cros sysfs attibutes are created is broken. > cros_ec_lightbar should be its own driver and its attributes should be > associated with a lightbar driver not the mfd driver. In order to retain > the path, the lightbar attributes are attached to the cros_class. > > The patch also adds the sysfs documentation. > > Signed-off-by: Enric Balletbo i Serra > Reviewed-by: Guenter Roeck > --- > > Changes in v5: None > Changes in v4: > - Use instead in documentation. > > Changes in v3: > - Removed unneded check for ec_dev. > > Changes in v2: > - Removed the two exported functions to attach/detach to the cros_class. > - Use dev_warn instead of dev_err when adding the lightbar. > > ...sfs-class-chromeos-driver-cros-ec-lightbar | 74 +++++++++++++++ > drivers/mfd/cros_ec_dev.c | 24 ++--- > drivers/mfd/cros_ec_dev.h | 6 -- > drivers/platform/chrome/Kconfig | 11 +++ > drivers/platform/chrome/Makefile | 3 +- > drivers/platform/chrome/cros_ec_lightbar.c | 95 ++++++++++++++----- > include/linux/mfd/cros_ec.h | 1 - For my own reference: Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog