Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp623252pxy; Wed, 28 Apr 2021 10:40:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC/M7yWPxKFvXzrRsSKUP5Ne+a4/lCGVNDvW8OlW/DQ2ixbrkRNDtjfDL3C8TvaFYVr8GA X-Received: by 2002:a05:6402:5a:: with SMTP id f26mr12949711edu.285.1619631626927; Wed, 28 Apr 2021 10:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619631626; cv=none; d=google.com; s=arc-20160816; b=MXmRJUTvM4UmCDCqNRdUn7i+0oQKsxiCjx+pCiajIlHdd+g60RyrhBx3PfEEANQbg8 z93/d+cDorApIZm7e2QtnCiRaLMpbONpKpmbNE519PCNKmX64pTnbj5luiBkChXLBoJL GRnhErlFiWhXjN3I1SmDH8H9RzWO4nGN89Khpz7nSTVCkuCTR/UJ3rxf8tFK1lpOxY7z AFAxvoKiYaMYEYbTDe+ejjCnXgex7zmNVMeaEDLS5/E8fGkeY5IqNIU/9Td9IxzvF5LT oaVU6rLL3Y00Gqg6UIbisN7GAaBwZG2rTU1hGNL3V+mdQfLkblhBeextw4VGMqR4w7Np Znlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SLEOlFo5zp9WVatlWokRO7XLf1rQZdLEFMPyIaFMtL4=; b=vT/vj4meIOomd1yzHsdgVGHAq1klOJMPD1t8pdtRsETmTMHNTrUljeXBTepMNV+gx8 NBybNEL7IuY2gvVRCxbrfhLnDetsjiply3zFH34In6HSboiPwcIndq691VLqYhKFhC5Q 3OySslwXU5y/HvGX4deG97bgCXVtmF0WaEmugqaNGY1eAuPv41g7nuXK4GRm+gL7oLfs ZEZKghj/OaNg+81BRHCLfvGFnXtm5QuHHaf2B1iicRj1Hl2fNC5DTLL+QjDbcUe5omIK PEmWXGpzBLiTor6R8+bB0KcwGD8Rvg6sZAJEKggmiI0uC23DSgOdoB3yBvthgqQs1Dpl DTxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZqonFTtU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si311536edd.274.2021.04.28.10.40.00; Wed, 28 Apr 2021 10:40:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZqonFTtU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240782AbhD1PpK (ORCPT + 99 others); Wed, 28 Apr 2021 11:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240260AbhD1Pj0 (ORCPT ); Wed, 28 Apr 2021 11:39:26 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0362C061354 for ; Wed, 28 Apr 2021 08:37:59 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id k25so63459331oic.4 for ; Wed, 28 Apr 2021 08:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SLEOlFo5zp9WVatlWokRO7XLf1rQZdLEFMPyIaFMtL4=; b=ZqonFTtUw99OuJ2hfDUb8RkfWD8kgdOUI9ehks1B6auTSR+M73KLdCqy9uNIiGL92z cvDvGSL0L1YTIOW6t3nShGPMrWGWqk1JoBQqq7yE7hXKaDd1iBmynnxjQwvdK58HgeCc 1HtDCxXDEIvPNQslhUe1MdWOgGoq/6TGbptaB92U4GbqpfNHIqWL8cTM34jptB1Qdrnt WR7/vTe98aFqx4Vcyo0DHtPc0+Zf9OYiuS79JhUKltRWiImY7lTxJ+QPPo38487f+2wB rjoKsPKwSsbXW4S4H9lRL2GcHwAGdCwPpr77hNK8IqCaIrSGrHzh91Jf02qocJEuns/g hQxg== 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=SLEOlFo5zp9WVatlWokRO7XLf1rQZdLEFMPyIaFMtL4=; b=Y0VWqAdbvEyed8KTBK4AaeSizHPnm84wEVd8BV85z3cRxlPp3hZhsH6l2knyqSpADY IXYRIjY23LVDMb1GIo5VRxZ8jJ1mgsAc17O60dWRlI+DE1douMhEhjI6tejYqTuiGEah 5Xt14u4z1bgWK+OfsOPuTkAbPPGx02JJx5dFatIDdDlWPz5MK1WjCovSTCaQrirBipTV OxtzWZ0ltbGoi/OP98+CEGs6cP7Z4KlZfGGjUPfG1T0mVtDE56tR0/Wgs1BuwFWvA26X xMlxrSMbM6OzuiBPOlj+iVpFce6K2npClO5m7TUtcOIJRhtQ7hshTmIZj2rZ/wcYJ04t fZ2A== X-Gm-Message-State: AOAM532LuMJleX3l5/UkWqWVaEStLu4dmfpV/hxB0ZnD7rjy/70tL9Pd OFYGbPv/vsYoTpvlcgvJ7XfPJLPT9bOHFakRt/0wGg== X-Received: by 2002:aca:5756:: with SMTP id l83mr3583333oib.90.1619624279060; Wed, 28 Apr 2021 08:37:59 -0700 (PDT) MIME-Version: 1.0 References: <20210428052725.530939-1-awill@google.com> In-Reply-To: From: Alexander Williams Date: Wed, 28 Apr 2021 08:37:47 -0700 Message-ID: Subject: Re: [PATCH 1/3] mtd: spi-nor: Export SFDP access to sysfs To: Michael Walle Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 12:58 AM Michael Walle wrote: > > Hi Alexander, > > Am 2021-04-28 07:27, schrieb Alexander Williams: > > Add the ability to specify a technology-specific attribute_group, and > > expose the SFDP through spi-nor's private group. This enables user > > space > > to have full access to the contents of the SFDP, so all information is > > available without regard for whether the kernel supports parsing it. > > Please see: > https://lore.kernel.org/linux-mtd/20210318092406.5340-1-michael@walle.cc/ Thanks for the pointer! Sorry I didn't see that patch series already: My search skills need some work... In any case, there's no good reason for me to duplicate work. I should probably comment on that series directly, but I'll note that one thing I tried to do with the sysfs attributes here was avoid racing with user space. The uevent is suppressed until all the related files are created in sysfs. See http://kroah.com/log/blog/2013/06/26/how-to-create-a-sysfs-file-correctly/ for Greg's explanation of a scenario. - Alex