Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3351440rdh; Mon, 27 Nov 2023 11:59:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVv+67ooaXQpdo6Pn3rqJ3Pg3mAAhzMPvrOVtQQXotfvRwiCVxASDRGQD3G8rAfol18Kty X-Received: by 2002:a17:902:b282:b0:1cf:b190:ea09 with SMTP id u2-20020a170902b28200b001cfb190ea09mr11100929plr.42.1701115142575; Mon, 27 Nov 2023 11:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701115142; cv=none; d=google.com; s=arc-20160816; b=bPbz6hVi1l7wSRx87BOg7QROCxYVIjSeJw6yXXgK5Q/10Fl78KCRC0tst9W2E69JJc ksZ4WXWrjDMURmovcbMG+gNIos/RcowG00/1EXfJ6fkcNeT9IO51WBi5IwsIec0ACHzA 3hb43BioHOyd2teJ8Ba0jFJD1o2sgk78Fw17TdhavojYLOwy+xi836HRozglp94xmHEI WKdRv2nAA1KvSgjxrZV//RXmkI856Y5Ntoj6rFC9hK4OShE1fEG528KTWLuy0RldJE5Z zUZMsw0EJ9RiOKpB+50oqb9cNav3gta42QtwnBgZRtTlLELkFQjWu1qnR/eTjrzoV2AD TZGg== 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=wvtz8hFb/yx3lKmNY3HOChTP73hRDDy5ioYhUvYduCI=; fh=0B8ySQS9DrEDuYuf9ikKGuSlKScHzwow+7zeK8yJTtA=; b=ZxXEhsl7BGY/gayPJUoR70QX+myFh4EPzzTJTYU19PWNW4DQhQrw6g6B0FxML1OFA5 GWjDN+t22+8ZLLpCXVZ06TNR+UY6dp+GoKJjW8xYZ95A++P4sDtfvFQcA126jien7pgB hUw3sxhuIhPzyH59a5wapbCV8LlpO9RtEo5TCD6h3FPrWJ0oYwhzgNULpnTstAGFE08Z RyHqA2Ouxl89a5lhPfr52Tp6CYoDSo96B9cuJtNb4p92kaCZMtfF+lqikcUpHZJSXMrs mpAQPEBwNPXyYhGzKvh/Me1tKxKNXYOe7oDNc7wsrjKjTxVIb0HUl3wVURpx2/uWLfII N17w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=Qsi5dNFg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z21-20020a1709028f9500b001cf91d42939si8997960plo.443.2023.11.27.11.59.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 11:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=Qsi5dNFg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 60816806208F; Mon, 27 Nov 2023 11:58:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231545AbjK0T6n (ORCPT + 99 others); Mon, 27 Nov 2023 14:58:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232855AbjK0T6l (ORCPT ); Mon, 27 Nov 2023 14:58:41 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75519D5D for ; Mon, 27 Nov 2023 11:58:48 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-285c3512f37so1500417a91.3 for ; Mon, 27 Nov 2023 11:58:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1701115128; x=1701719928; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wvtz8hFb/yx3lKmNY3HOChTP73hRDDy5ioYhUvYduCI=; b=Qsi5dNFgPv7CahgMZsB0dLWt6kuGel3mlcq62JuWmxeCTJdDkFuAcGY0IUH3B2mjE7 0LCvCYtIKCxT2nMUuKSQonkabv4P1oPbpjWBj+EwCyv/+EtABi933wvd1VepT0bEusoF KzGzpZ78D3hAICTe/QnnqSavN0xU9SuwS7G6YEbyMxm+jNa7l29lgSduwxHL2DoUZxn0 S5ecR365LCkbpo59QG6HBzZBr6cHqVAMmhen2DPdjwBk0pGPHsFpdO8fyYBjbUnvVOkj Hu3/43xGxlDAF0r6NNn0gTpt638LqK+JUy/K9P7hYvxZILQ9fdQgQBhG6z3JWCOM2v5H BQrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701115128; x=1701719928; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wvtz8hFb/yx3lKmNY3HOChTP73hRDDy5ioYhUvYduCI=; b=OZryb5otghoweekRUU5hBKaWGNB2oxV5CDmIjz8p5/H5jqLVz1OQdyMds5Qsyie/ts /mzgM98TNdaadyUXv0EB7arG2K0LSMDdCr6YEYO2l6O6u3Gkc/DBNsGi2LKhndEDg0R4 NN9OXXWYAOOiCgHxjDG0T991TXjI9Ya1CrWuqBjhlEDpkMpND9/4X4r49+LORT4dMvC8 YgIkuVrqGT+DhOfSELiWYEkLd69vSCufg0FHvWHFKMm4D6culqB8dbQpNrWE4v2k2+q+ pIcXg4d10QYXZszMCG7Nshg+4XAZ9U8wyxpiDJ0D00oQtD6ESwH+KjfsJKjbOG59IEaY wpvQ== X-Gm-Message-State: AOJu0Ywu2iFXUNhaK4eDtCGr7JqvcGaUOCJSTHIlU7VZWFi8wyRzKIxy wbWQLoN64wg+cV30R9SV2uevHLWsp1qzVZioNskrXCvZUg0dHJ98 X-Received: by 2002:a17:90b:4aca:b0:285:a179:7177 with SMTP id mh10-20020a17090b4aca00b00285a1797177mr9939075pjb.44.1701115127846; Mon, 27 Nov 2023 11:58:47 -0800 (PST) MIME-Version: 1.0 References: <20231121101331.22837-1-naresh.solanki@9elements.com> In-Reply-To: From: Naresh Solanki Date: Tue, 28 Nov 2023 01:28:38 +0530 Message-ID: Subject: Re: [PATCH v2] regulator: event: Add regulator netlink event support To: Mark Brown Cc: Liam Girdwood , linux-kernel@vger.kernel.org, Patrick Rudolph Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 11:58:59 -0800 (PST) Hi Mark, On Mon, 27 Nov 2023 at 19:45, Mark Brown wrote: > > On Mon, Nov 27, 2023 at 04:07:45PM +0530, Naresh Solanki wrote: > > On Thu, 23 Nov 2023 at 18:27, Mark Brown wrote: > > > > I'm also not clear on where the 15 byte limit comes from. > > > I felt 15 characters would be sufficient for regulator names. > > Would need your inputs to make sure here. > > It does feel like it might be a bit tight - perhaps double it? Sure. Will change to 32. Also there is a possibility of regulator name duplication. And below mechanism is already used in debugfs: const char *rname = rdev_get_name(rdev); char name[NAME_MAX]; /* Avoid duplicate debugfs directory names */ if (parent && rname == rdev->desc->name) { snprintf(name, sizeof(name), "%s-%s", dev_name(parent), rname); rname = name; } I need recommendations here. Regards, Naresh