Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp623722pxy; Wed, 28 Apr 2021 10:41:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytzxisrH2zwvp7dxEFvGNxRoK+0CfS2kBtHoWY+/YlJTPPazzT5D2NZh994gOxR82r7IDz X-Received: by 2002:a17:907:72cc:: with SMTP id du12mr29460392ejc.436.1619631662002; Wed, 28 Apr 2021 10:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619631661; cv=none; d=google.com; s=arc-20160816; b=huVQSvtiG22cZsh9ejcQSs4+P3MYMX8LuJ6HpRuBZeRAoWnnfXnEp/ZRjYJ7VcofEQ DkvERJaVv0ZiFLhIcdI/y3v6nASV5ZFrYWO8hYiFgnPlXBTe8nmYUJDywTwkM1B1wtgs Gxf/YxsR/YP0f62v2+jr0jjpkF0lsnnd51spJP6iR/RBqNm0aeJy8qacW9j8KYZzPe+H uGyf9vpK76qPlZL3n5/d6j2NH6JMv+WnjhJ99RZNBHni89PRCJQg4IFuwB2M2SNPrnyC DN50oag14wqBUejKTWlDSPUDhtF/MdX1rLkkQ2KHTcV7CzMN4SrCp5o/iH7UdSM7GFSM q+EQ== 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=qPInnfOFiDjbUtus8UESi4go/lSMf8a+ZIcwDEWf+8g=; b=hyWiAcTpWeN2wABexTjcurj4lLeIVmr2Exnb2mFsNOhS04RIyoT6pky/JrmksurOe1 36GVF+/MiUR5o/AHNhMM2XIyi8N32YTyXTgOHlNjpMTFioZkSlvpCeon8vnzzt+88Jz4 4WwkInggSB32p3NCth6cXcRefO8Eb7W6ovAW+P2OyqbYY157T/CFs9lz0m1Q6WcE6tgL mCzVxzDoJYzNaxkjHDOqbjucgZDnQmrlAeUbhAFqHAfx631Xn6TX38USY/1eqXjmUcWa SHMpTEg29hXxrbwm2xlAgiiPo5ArggHx7bMo414fx28APD+lJsURdX96kWrH1UMHbVcm ky8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=erKh+eps; 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 f8si377838edy.245.2021.04.28.10.40.38; Wed, 28 Apr 2021 10:41:01 -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=erKh+eps; 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 S241028AbhD1P7a (ORCPT + 99 others); Wed, 28 Apr 2021 11:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241016AbhD1P7a (ORCPT ); Wed, 28 Apr 2021 11:59:30 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB318C061573 for ; Wed, 28 Apr 2021 08:58:43 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id g9-20020a4ad3090000b02901ec6daba49aso7156335oos.6 for ; Wed, 28 Apr 2021 08:58:43 -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=qPInnfOFiDjbUtus8UESi4go/lSMf8a+ZIcwDEWf+8g=; b=erKh+epsO63scyXMwNrUCjVdg/KQNgN3/PTHy6uqKZ3wbcqM0VUrGjnRNq+l7DYi0Y E2O+zrnAZTSNsco+1E7M2Cp5PmhNpFyWwJY3WtK9tmbUCQ75/b6b/Zuk6qLXYBH0Flte srY6xHKDoXmmK99E2QiNxPCf72uFfhw1xCHx+XQTd9FKDuizkzGvCYWhARywzQ44EhMf zQ57DjH2RHlSfdCkr1baAiXGaWSV8xv+NJqZVIljCLMTwoPHkXMYvGBROrGK4CPh0Oq9 HhADVMBQR7Y6k9HwI/ojdt8l0En48Hv4ZxHcyoIzIaOYia+NMzLno/uK4V86IJjmb+hh hICw== 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=qPInnfOFiDjbUtus8UESi4go/lSMf8a+ZIcwDEWf+8g=; b=HN/ObYRSwZzMfQAiv0C6L1mjJ+hy0D+EH7BHqK+s+aIDO9t8Zj6OLHnKgfWGQNYhu6 kdsEQMLpbzvmmJzDCwrY9TuJ1MZamjwXDXKoS0uXEo8f+Gj0UHZQn3j/QuJL10GZBetQ jfdGcE+jrrQaLLqaZn1mJVYPgL5izoOmrk863INgWhplQLmtxREdRhMw3oWwNZ2bpP1V +08+kx/ALCkC0ka5q4sJYTXWRWIUzXq3uItSAPqtA3BnXkQcTYRrl+Jrwr9DDckZ4G7L ZaSwzs44nwZKWIqSQuERBxWuE8U2JFeKcSEqZdBVDraAdIwipEwRx7xKOH++mcIH/9nu zK2Q== X-Gm-Message-State: AOAM533xLno7MIrELFX54lfbjQgPP7/pzyfRv97thePZMmlcc4/e6I8n TzmXVyrONnHtMleX/dtW5RlUCejn11lls0RyHa/kyQ== X-Received: by 2002:a4a:db7d:: with SMTP id o29mr23054498ood.45.1619625523100; Wed, 28 Apr 2021 08:58:43 -0700 (PDT) MIME-Version: 1.0 References: <20210428052725.530939-1-awill@google.com> <5e23722b1c7d6716c404667a3c5bfbff@walle.cc> In-Reply-To: <5e23722b1c7d6716c404667a3c5bfbff@walle.cc> From: Alexander Williams Date: Wed, 28 Apr 2021 08:58:32 -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 8:51 AM Michael Walle wrote: > > Am 2021-04-28 17:37, schrieb Alexander Williams: > > 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. > > Sure, reviews and remarks are always welcome. Btw. what is patch 2/3 and > 3/3? > I couldn't find it on the LKML. There are none. I goofed and forgot to fix up the subject line. The two commits that followed merely added quick-and-dirty SFDP support to intel-spi.c to enable testing on one of the platforms I had lying around. --Alex