Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp663608rdg; Wed, 11 Oct 2023 01:46:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLuvGc8Nxx2BGpJqkEhFlKaj/BP7cKueG5/YWBOBp9dKvdn79GFuMbqG1I7EqV93RHPh19 X-Received: by 2002:a05:6a20:8e05:b0:162:4f45:b415 with SMTP id y5-20020a056a208e0500b001624f45b415mr26665114pzj.51.1697013977698; Wed, 11 Oct 2023 01:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697013977; cv=none; d=google.com; s=arc-20160816; b=BQgSOwhZp80/p3CiAxIFjq8988d6UwebNJXegSlvSodQU4pBAYyT9R2catEPatCg8t JdaHQ/hpgA5q+lIuL2PtoVUaR4BmDks9rujRVTvpPMC+JP4EECiQ1PXxDLYDf37XENVf RGOlaR3f8W9Qx8ZSav6NfyViyOyz8RoMR0Iiyr9a0IjPHjsHuGkuFlz9QpfoFGiyBv5n 3BPUWpt9gKDgtBk5Rs262jz+P52xgeuGrjgGfhbzjsjNLn4x7/5Es9rksKXDqFzi6v53 DXr5uPqaVnl1C1oa34cKmVpk1T+aDUitWWf1RkIwqob+8E7s8Y/B73zLYF2nILm9nUWq GH+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DaocntqyQzYgAwhSvsMlbrVo4KLCdhpxDy1Xa0mJIr4=; fh=KJN1W9yOAWgSq9zfQBni89+CfhmDFnjhsEeQmYNtQrw=; b=KZh6WLv/vkWRWjvE0KFwcAjH63R5n6gb1/YFGCZZMkxOkKEvcA08P1XbAasvH3Zsrr hpNKH+M43jyo2xnKFFWOoUMdjwiF8QZAS/plkDoUNMkb1E09MGeuJggak4YxkiBrBuqd vp0ThaSiKkcJyyTMHCkCwJatZjjBwvLfXe1unhUfvvl3G7dGaNXJcUYUylxTGAWSkV4K 2GqGLAb+VyoO8rz4/rU+vsAqEhkI2cB+BnRJ1EDAERsJ7a0ESJ/pGWtY75EXcx16ncR0 /Rif9Av+0omH7bkP1lxhzLqYXVxCIDhxqcVHEuIEtR+kJO9Tra9qmxzZrXlTxKZRICcd mltw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nc2pKcn7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id lr17-20020a17090b4b9100b0026ce877b4cbsi16742647pjb.151.2023.10.11.01.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:46:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nc2pKcn7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 801A28065128; Wed, 11 Oct 2023 01:46:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345642AbjJKIpb (ORCPT + 99 others); Wed, 11 Oct 2023 04:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234583AbjJKIpV (ORCPT ); Wed, 11 Oct 2023 04:45:21 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD39199 for ; Wed, 11 Oct 2023 01:45:14 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-323168869daso6400405f8f.2 for ; Wed, 11 Oct 2023 01:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697013912; x=1697618712; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=DaocntqyQzYgAwhSvsMlbrVo4KLCdhpxDy1Xa0mJIr4=; b=nc2pKcn73o23f5zwlyDYDl3dxK/VCguioFBtlV3g/TzlPpbPhJ7Hv+RQpwn8tkiwsX MSfJM9CY9cx3hedBpv7AAVNDtjg5c2EWcmpmlQiP5qvn1BGpDDb+nhhYMMvNoxk0+ChC 0o3GLNGZSCgGi4YvSuGTDXQEKW8o/oxagrhLgo2z73ncnGHWA59OeeCwkpL6/r5cHvnL ersbjg49QS+YqpY0WYSsmGY3NeGEUXcRMyGzLJqHqrfxrZogrGZssZCFZJLOm6W2R109 3V7krAyEpm58Q/kio8wncCwqbPZw4meH7OaH7iOx6Qu3v37qjK3fbgnpDj5OchTTBXJE PIbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697013912; x=1697618712; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DaocntqyQzYgAwhSvsMlbrVo4KLCdhpxDy1Xa0mJIr4=; b=tDDEW/D/ACFwZ9FnMGxdJKjh/W/p0zHDl4lEya1m6PQV93YxsNUcc2iGIvKEPj9PVv 0mmZCmdXAasWc4PAfXhMgVQ68xeVo2SBytmmCZmzIFRcejp3gEilVBVfGOTBBbvcnlOv BfT6yAtZT1/2KRDKBBx3gV5z9HMu9J6idasSAQXG1nUlosfY0Y2zVH+5kuO0rf3JMbhr pw0gtTUfQB69cIVHZ56DqI356XS4+4/YpEZhA6l3NNLeAZgj2IFeiWXuqsdfk7RKE/Cw iMnRB0vt953Nhrz/60RSmnNzTWB0CyH+mUzichdCFppC6xPvrN43JY93ZAnE0ZaCpw9k 0StQ== X-Gm-Message-State: AOJu0Yzuk2wpAGFCXHxIhTs3Z3I1m5isJtUgSMt6v3+3VGpmI+0hXAZd EIKsgzmFqYIl7d6DYObHF9ZF1WWGSqTxoRjCqmPCFA== X-Received: by 2002:a5d:4149:0:b0:31f:eb8d:481f with SMTP id c9-20020a5d4149000000b0031feb8d481fmr18350562wrq.29.1697013912550; Wed, 11 Oct 2023 01:45:12 -0700 (PDT) Received: from [192.168.86.24] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id q15-20020adf9dcf000000b0032d2f09d991sm3820302wre.33.2023.10.11.01.45.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 01:45:12 -0700 (PDT) Message-ID: Date: Wed, 11 Oct 2023 09:45:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v12 7/7] nvmem: core: Expose cells through sysfs Content-Language: en-US To: Miquel Raynal Cc: Greg Kroah-Hartman , Michael Walle , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Marko , Thomas Petazzoni , Luka Perkov , Randy Dunlap , Chen-Yu Tsai , Daniel Golle References: <20231005155907.2701706-1-miquel.raynal@bootlin.com> <20231005155907.2701706-8-miquel.raynal@bootlin.com> <318fe799-f53e-64ed-b631-d099bb5202f4@linaro.org> <20231011091524.0c9ecc55@xps-13> <548849a8-9f11-5274-778e-f291267603bb@linaro.org> <20231011103306.08f1fbd4@xps-13> From: Srinivas Kandagatla In-Reply-To: <20231011103306.08f1fbd4@xps-13> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:46:10 -0700 (PDT) On 11/10/2023 09:33, Miquel Raynal wrote: > Hi Srinivas, > > srinivas.kandagatla@linaro.org wrote on Wed, 11 Oct 2023 09:27:20 +0100: > >> On 11/10/2023 08:15, Miquel Raynal wrote: >>>>> + >>>>> + nvmem_cells_group.bin_attrs = cells_attrs; >>>>> + >>>>> + ret = devm_device_add_groups(&nvmem->dev, nvmem_cells_groups); >>>>> + if (ret) >>>>> + goto unlock_mutex; >>>> This is going to create groups after the nvmem device is added, isn't this going to be problem with user space notifications? >>> Greg said it was not. I hope I understood correctly ???? >>> >>> And anyway, cells have never been available to userspace, so there is >>> nothing userspace might expect yet? >> I agree, but once we add sysfs uapi then this is going to change. > > Can you elaborate? I'm not sure I follow you here. Is there still a > problem you fear or you think it's okay? > Now that we add cells to sysfs. AFAIU, By the time the userspace sees the udev event from this device we might not have cells populated. --srini > Thanks, > Miquèl