Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2383593yba; Fri, 10 May 2019 10:33:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKdoaFfc01rE0KkayMCN4LdVzbYeji0XnJibNuCfMEBpHw+BYit6ix1j046Yom/QpzRofj X-Received: by 2002:a17:902:15c5:: with SMTP id a5mr14885597plh.39.1557509602405; Fri, 10 May 2019 10:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557509602; cv=none; d=google.com; s=arc-20160816; b=c86iVYwUK38YU2aYCiv+lmZDJunbHklHNecJeeEXluUkNb/FYa+AA6N+jE0xPhSSXj G3fcwvpOYdlUa+3trvit3500ddheqg5e6IYJQHmDqpoDIoKiUOTvuLXxP3z2Ld5Hp6ZG IunMcge4Snyy5PCb/NwZIRsL+AM1GeFlOaNZg3h8rg1O3d1MxV4jbklzFop7mD1+3Bui WRkeJqAxHBsyAgGG5Gaa498rCDoftxlIhgimvVqC6tfFEMSjyF8nNUiXAO8tVYos/+45 faKuCHz8J66aLmIKN+aKlJkdUpTtDGFnuBwwbxjpOu2gl095+jMiHJWEp6OLzhKrpzrM l93Q== 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=hcYMIuHgqzn7kbADbR6bw4zWNeAK9h2IBwjyeGMNX18=; b=0OfzP4+Lw5XT6Oy2M4jNq0iubT7nTLAed4ToDJfTg+/mm4lByB7lgIbIlcD/do3tsJ WMN1oeTbIWU9IelZy9/BcLtVohlSvHSKReLX67HYA/Xm6mHRA0wQm+02dvEWu9v267Az HGWm8cO6U1wnYxe2ZE0zQ9cq12YVJ/mjhwgIi0/l1QAJZaw8yosR501woFW2AZa3otQc ECPoKTcEkIiL/se1X6k5SzcgnRxuKD68g/eX2JI2dBDe62MSeMw/uMp6Nt8QonUqd0KI tx8EG1F9L/b0B/r/lUJO1zy+BVMmNDf6TJGNrH+qGkkBrdyWitex03K3hqTqm0GSTWma s4rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mqtjBvXv; 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 r71si9278628pfa.183.2019.05.10.10.33.06; Fri, 10 May 2019 10:33:22 -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=mqtjBvXv; 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 S1727622AbfEJQJZ (ORCPT + 99 others); Fri, 10 May 2019 12:09:25 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:37568 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727471AbfEJQJZ (ORCPT ); Fri, 10 May 2019 12:09:25 -0400 Received: by mail-ot1-f65.google.com with SMTP id r10so5322896otd.4 for ; Fri, 10 May 2019 09:09:24 -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=hcYMIuHgqzn7kbADbR6bw4zWNeAK9h2IBwjyeGMNX18=; b=mqtjBvXvnB0NWBrBS4vmOWAyfgXiftln0/XRF/TQwg86h6sRbV5bPNcnLrDyJ85HFs 0OZciYGzRkhSp+ZXHHN8a7fCI8c4RjyH7/GfFaCVmTJYgUl3inE37AqBP4ABvzXRaW2k NlQlNlMkQ/ghFTQxFHtrtDrOWnP+XlPViREao= 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=hcYMIuHgqzn7kbADbR6bw4zWNeAK9h2IBwjyeGMNX18=; b=AjRLOuPN6s0TmtJ4Z1fpEZUzI8jqltjdLzJ36zih3flVo3fhpnc2zf0gwKruQRPzwZ FRT0YH9MIpOxytb5P2f/YwLUTZG8TpmMDaDhgxcm/Da/+kY1UdbgNTF8x+a7ByAfVgiL BPydR3pSUjK9ame5nTmVIaY+VPzGaRXnIhOto+eMrBlt/rUa9CMqg5gtUKIBiuGsfzVT 3gw5ppDpfPT5iI1AcF+KK02sTtTKFPFJsheDA3mL4DAVJz6a0eBvwl7VDJF+QEgtMyfO lJeOhQvRvr7b8KOLiOKl0RAzJbvAIN+6d2cWxIzL7IsWUvPLChIjqcSdu94h0mVQVlaX foDQ== X-Gm-Message-State: APjAAAUbURtotM3aGyHGuR/3Tp8ioo7KqBeQ7rdhSnGhl69Zsv3yPK6s UypACZ42CsagYBJy4utvDaOsRQKAhqs= X-Received: by 2002:a9d:3b06:: with SMTP id z6mr7160602otb.140.1557504564140; Fri, 10 May 2019 09:09:24 -0700 (PDT) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com. [209.85.167.170]) by smtp.gmail.com with ESMTPSA id r15sm1426620oic.23.2019.05.10.09.09.22 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 10 May 2019 09:09:23 -0700 (PDT) Received: by mail-oi1-f170.google.com with SMTP id k9so4899238oig.9 for ; Fri, 10 May 2019 09:09:22 -0700 (PDT) X-Received: by 2002:a05:6808:64f:: with SMTP id z15mr5574175oih.148.1557504562026; Fri, 10 May 2019 09:09:22 -0700 (PDT) MIME-Version: 1.0 References: <20190417012048.87977-1-ncrews@chromium.org> In-Reply-To: From: Nick Crews Date: Fri, 10 May 2019 10:09:10 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] platform/chrome: wilco_ec: Add Boot on AC support To: Enric Balletbo Serra Cc: Enric Balletbo i Serra , Benson Leung , linux-kernel , Duncan Laurie , Daniel Erat , Dmitry Torokhov , Simon Glass , bartfab@chromium.org, Oleh Lamzin , Jason Wong 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 Thanks for the review Enric! I can resend the patch with the fixes, or if you think the fixes are simple enough, you could tweak them as you apply them. Let me know if you want me to resend a clean version. > > + > > +static DEVICE_ATTR_WO(boot_on_ac); > > Is not possible to read the flag? From the API description seems that it is. It is not possible to read the flag. The API description is wrong, I'll fix remove the line about reading from the documentation. > > +void wilco_ec_remove_sysfs(struct wilco_ec_device *ec) > > +{ > > + sysfs_create_group(&ec->dev->kobj, &wilco_dev_attr_group); > > As Guenter pointed: sysfs_remove_group() Yes, exactly.