Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1885915pxb; Mon, 8 Mar 2021 08:39:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwB8NRCNccPiOenZ4Yn8gi1vyjpep4XdmJ/mCFMjyA98l6sAxx9bUp6e8HP7c798w8hXzIM X-Received: by 2002:a17:906:d18e:: with SMTP id c14mr15104049ejz.62.1615221564124; Mon, 08 Mar 2021 08:39:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615221564; cv=none; d=google.com; s=arc-20160816; b=QMBeCncVqU46uatqP+NEcpwoQEGILYvaE6quBrTsHw5nMHRy1hZ16aUX2iZkw/qwDg OXr+fj7UYQgdotzSiT7OgpyDxKlgvkdXk9eGGjyEWhmUQbbHfAP5Baq/MNPny2TBa+50 TzqrGdIhy778uwhwoJFx7dQ2FFU4NRa3e+2fI+eBUpY/dyT6aRwwfTTifbEzzveldDPj Vai7TM4VJv0EzneL6pYZsUutcKhgQkDUCddUmg58FBTv7H+sGq5gSZdSg74EfyiNCB6t 1cauC0hawTwMrxDorZzA1Jq8KnKXsvnMkvIc6q1juSep0AABWWgLbcvb2AjhBh1KiFxu 7pyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=iTYRrhyHdDU9pH8OSwioO0QIN5U3x49XuZrscq4m5fU=; b=YM3hTcURgvjShWKOIm9hj7wyYP8F1aYozc7Uf4v2zgmJNvvx/SH2XMhKS5HKBi4hEP jRjGcxt5WfrmcGsK7jhiQurkYEdDYt9giYLNIFTAp956C4W7wPAL8tpSNUM5wLm2ywkC tff/m8jg+3XzAbbkmJHOJZR8KetFgCFgYZO7L70zkjUG00n87EcOuqSwsMVHnSMG15cW sI2PGIDpaZFVhrW012G3/HYJo+cGy/sJdDIIV8TGvz+mnPGN0BdOxD8esYlAh3rt4Dce lO/nN8hR68VHc5ygfEdE04cBrNwqqRaP0q77+uNka76e5AeA3oeVlyxa95kj+EWm1aXm mypg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si7299416edv.455.2021.03.08.08.38.53; Mon, 08 Mar 2021 08:39:24 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbhCHQhj (ORCPT + 99 others); Mon, 8 Mar 2021 11:37:39 -0500 Received: from mga02.intel.com ([134.134.136.20]:15606 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbhCHQhc (ORCPT ); Mon, 8 Mar 2021 11:37:32 -0500 IronPort-SDR: WU12QE6EjUqKjz3pgat+RG0uwWTXLlJ7/710uz5dGIbZ+ZU+NxtWgMvPuawVgackwnrQkeU1ns 1PiaplggFqBA== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="175171804" X-IronPort-AV: E=Sophos;i="5.81,232,1610438400"; d="scan'208";a="175171804" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 08:37:31 -0800 IronPort-SDR: 69g6RyvB8FvUhvlLwsDPayz5oaN+Bb4c3jgDX/TkKx67muWTCJ8ycFuCnuptY82bbL0yS9d4L2 zQ3hNqQthPRw== X-IronPort-AV: E=Sophos;i="5.81,232,1610438400"; d="scan'208";a="519991117" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 08:37:27 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lJIsm-00ArFe-9N; Mon, 08 Mar 2021 18:37:24 +0200 Date: Mon, 8 Mar 2021 18:37:24 +0200 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Bartosz Golaszewski , Joel Becker , Christoph Hellwig , Shuah Khan , Linus Walleij , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Geert Uytterhoeven , Kent Gibson , Jonathan Corbet , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , linux-doc Subject: Re: [PATCH v2 09/12] gpio: sim: new testing module Message-ID: References: <20210304102452.21726-1-brgl@bgdev.pl> <20210304102452.21726-10-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 04:37:10PM +0100, Bartosz Golaszewski wrote: > On Mon, Mar 8, 2021 at 4:32 PM Andy Shevchenko > wrote: > > > > On Mon, Mar 08, 2021 at 04:13:33PM +0100, Bartosz Golaszewski wrote: > > > On Mon, Mar 8, 2021 at 4:05 PM Andy Shevchenko > > > wrote: > > > > On Mon, Mar 08, 2021 at 03:23:31PM +0100, Bartosz Golaszewski wrote: > > > > ... > > > > > > I have strong opinion not to open code "yet another parser". > > > > > > > > So, grepping on 'strsep(.*, ",")' shows a lot of code that wants something like > > > > this. Interesting are the net/9p cases. This in particular pointed out to > > > > lib/parser.c which in turn shows promising match_strlcpy() / match_strdup(). I > > > > haven't looked deeply though. > > > > > > > > That said, I agree that next_arg() is not the best here. > > > > > > Shall we revisit this once it's upstream with a generalization for > > > separating comma separated strings? > > > > How can we guarantee it won't be forgotten? > > > > I will add a REVISIT comment, so *obviously* it ***will*** be revisited. :) Fine by me! -- With Best Regards, Andy Shevchenko