Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7874047rwp; Wed, 19 Jul 2023 01:23:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJwC+MhpBSx0FqscJKycxXoc1ieFOje7nkHCyDYFuoCkGnm4BaK16VFcGHLaB0yzk5Ky2y X-Received: by 2002:a17:906:14:b0:99b:4210:cc75 with SMTP id 20-20020a170906001400b0099b4210cc75mr637028eja.40.1689754993901; Wed, 19 Jul 2023 01:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689754993; cv=none; d=google.com; s=arc-20160816; b=Dbj40zpBsHlkdI+eU9ltIXzTihtjouefZ6XDlPqYAH6YKb8qNw4btryTxWed9MFsaD FsdBBhmPQroaQYjIAFS/lrphHanJZRLAT2E5BJ3H0/qjLQU/B8I3C3rTgJfjPZklRyET Ef6lKRO2Z8peRoQrhx8xDDPNcfuluBJqf6SypgTwm0fvLPIyvtqTwVROnYCTs8Ex35Xd qnC4lt+dIbbMdEh5CIncrzsOUySG01TtQIQPyNDeWvznbCYbD9NPlEgtMuc+La3yc9l0 tzDmyb2V2FaWz7QKAajave1QDlmRelEfWO8DLyOjcgOxhSxktGWptR8P/9EWPbRA7+6i +fRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Dd+zfI16pEx3BXTsAYCbZH3BDKP24/m6t4MEhjKwt/U=; fh=SHiFIkU5FAhVOac130T7xjUbwj7ebOVD3itTS4jf4sY=; b=ddNrxY/fLoXAe+EHS+gj54X0KDBZ9XgmGkStS9ez112XnEML5rKHughHSDETfL2WYt TYaheULC1FtQkzOMDu+8eWnDkzvPVrB6WE8W6tvH9b6KMF+/jRGZdrpjaIjeMPxRA2XC U4Jg4Zh2xbJF3cobLtiMlJBTM5Uf9PwmmA7yx52K9dUabalZgvo4qYZjfJwIaHCW27PT TCpUEaq1mUkDdWHUijooTTgtqB+EuSMNMGS5oJDVwomNZuzF9/iQ+tBdFHmosAOwJL/+ VU+BPNtZ0SgMPxKLN8HRgQX4JSRx3CS0WUiKdHhqrBmwkoDpCVENSzODv2/1A6D9pz6e ys7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nEkasCgF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kj2-20020a170907764200b009932c4d6c73si2403744ejc.288.2023.07.19.01.22.49; Wed, 19 Jul 2023 01:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nEkasCgF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbjGSINg (ORCPT + 99 others); Wed, 19 Jul 2023 04:13:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbjGSINd (ORCPT ); Wed, 19 Jul 2023 04:13:33 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AE00197 for ; Wed, 19 Jul 2023 01:13:31 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id BFDF8FF804; Wed, 19 Jul 2023 08:13:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1689754410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Dd+zfI16pEx3BXTsAYCbZH3BDKP24/m6t4MEhjKwt/U=; b=nEkasCgFCgPjlAFkMM0ll8UnmJ9jTxA7HzkaHB9GQ10Ky9SpVpaoBDcgD3B/C4HCpx4HfB A4lRl9mY231e/7ksyJkVEUMVzIVIiSYodf1mek4y0cB1cEmFYEUFYHGFmnU3QPLodJM420 T3oNvWOnmMShHrwnRwZaGQl6d+H6b+nDUgXkOWfgWPl+DzjOx9IHFoV7LadlJ+fxRm4VxV T1WiqOMIU9WuF4nt284CDA4vyZdYpaOGo+wB0rpZM3gYE47wYGYrsd/odOK96nY5Nnfmhf Y7bFHPt4V/degW7FOlWczukG/KceX/T0t/AEmx0Ck9vjcgxQsIFhkjIh6XWXyQ== Date: Wed, 19 Jul 2023 10:13:27 +0200 From: Miquel Raynal To: Daniel Golle Cc: Srinivas Kandagatla , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] nvmem: core: clear sysfs attributes for each NVMEM device Message-ID: <20230719101327.25b9ee7a@xps-13> In-Reply-To: References: Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, daniel@makrotopia.org wrote on Tue, 18 Jul 2023 16:29:07 +0100: > On Tue, Jul 18, 2023 at 03:55:56PM +0100, Srinivas Kandagatla wrote: > > HI Daniel, > >=20 > > On 18/07/2023 14:55, Daniel Golle wrote: =20 > > > Set nvmem_cells_group.bin_attrs to NULL in case of an NVMEM device not > > > having any cells in order to make sure sysfs attributes of a previous= ly > > > registered NVMEM device are not accidentally reused for a follow-up > > > device which doesn't have any cells. > > >=20 > > > Fixes: 757f8b3835c9 ("nvmem: core: Expose cells through sysfs") =20 > >=20 > > These patches are dropped out of nvmem next branch as it was breaking s= ome > > existing users. =20 >=20 > Ok. I've encountered those commits in linux-next and can confirm that > they were definitely also breaking things here, hence my patches at > least partially fixing that. >=20 > I agree that reverting them for now and reworking them seems to be the > better option in this case, hence my patches won't be needed as such. Quite the opposite, on my setup I don't have any breakage but as you already fixed the cell name issue (also reported by Chen-yu), if you agree, I will include these fixes (or an improved version) in my next proposal. Thanks, Miqu=C3=A8l