Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1843927pxb; Mon, 8 Mar 2021 07:41:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0jO5LdgNCXILpsacKi8sOBJ9vW53bxNATUhZAadSbKoF5cOPTsSrTQeG+4feRcJd111aq X-Received: by 2002:a17:906:948d:: with SMTP id t13mr15110762ejx.402.1615218091131; Mon, 08 Mar 2021 07:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615218091; cv=none; d=google.com; s=arc-20160816; b=CH4u6Gah6NLqS16xOUOgN20t4WTTm5H9NKxX0/SBrKeuvMVAZaMD7zqMUrgTGhoKcW KurWPuyeo/sq18tT6kmtVAwYI91muRBMG0AD2tx6LxxiZK7otBh7rIldurakaeaBRnAO bnp3t8KasgsmevfSsQyu75zB6Onc+NjlNXt/Bh7sKUWg2hbi2dgeHJkIa60KuMs/ClAJ iXXDF/c27tNURE/CwIc9qjaOLizQxRz9x9dwTU4UcPhmoJKhdw//c3LUrNBCVSyLQeiO X5vBfbT4hCLTLZTVHzlEPwQXVoqS9bEL64+wbtH42ck8g0muXYLGD5x5Krkri/tKILDc nKiQ== 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=gjHfcAXY88yF8tNbjJtkmDUGnU+swDxc27GpD7p9UQA=; b=BtiNtoVyTnDoBfM4oLVARtZI/eWZ/seETUs7Z54zGQ5jqf63GZOKsPbyZGSQnVYqJK CSFqeCV1MfdpawWVzjXDuy3MksmQm05aWrZ9MyZXx3/U0nX4+v7J8FQo6b6IBSRVCRTq K4DZArpEAf34EA+POUrk8ZHlnhtW/UkiOSyZIN3cScNzL2j5fICvhLdZ/nvnGTbPfrGB WPg+d7d8kICJbaZBZGqWDPQj6NcGmG+pu45URmQTF1F49Lo6iwG36/S9u/pyNH2QbdbP rnHaQFnIztYsdYdZmRh9eskiJ/+I1/g1gvCUlqXMld5mdWp42yz5JUgBNQJDFQj3UL0U n5nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Iub5yJdp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si7255790ejx.720.2021.03.08.07.41.07; Mon, 08 Mar 2021 07:41:31 -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; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Iub5yJdp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbhCHPht (ORCPT + 99 others); Mon, 8 Mar 2021 10:37:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbhCHPhX (ORCPT ); Mon, 8 Mar 2021 10:37:23 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD5BFC061760 for ; Mon, 8 Mar 2021 07:37:22 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id c10so21182209ejx.9 for ; Mon, 08 Mar 2021 07:37:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gjHfcAXY88yF8tNbjJtkmDUGnU+swDxc27GpD7p9UQA=; b=Iub5yJdpOGm9mEiEIh1q9/Q+9Bs8dvvUxWsQHTo29W+sAERu2/clpPH5quQvPUcJQ9 ha7uoMf4Ehox4DQgT2c4M1GtX2bHxm8RfUQcas4mFrbs8Ungu3/4Hc/r1ANJ/P8vD1VJ ySwh0SiPaFSfYmAITK8jfrP7rYjhvndQa8Kq/sJOJ6td69GgFhRwZ7JcVYaN2niDcGf+ P3JJft2jubop/zBjHLb0uL0A3jG9JYCJXIrBjMOF/hoxcjgchCH5PjrIqLfpbmTeHV1k EtsuqFLy5awWOxakAjXyTZ9MqPuUo2OI9pvrSTtKlqMMewnrze9GXSKTWqQ6KawaBJy2 SC2g== 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=gjHfcAXY88yF8tNbjJtkmDUGnU+swDxc27GpD7p9UQA=; b=pcuXLXxp1gDIqHtN9pwX8U88O/tnUPMO9M1wxMiPFLneLBx/FEma/Wosw9jELOPI/F xHAdVJUhPUUgJPt5N8arvS1QLfln5Qw0bVwJUoOf3VeZmc6xTa6FGcx1yJYJ8/YAZYcE ZArJN4lY1NnpmeZGfdz8u0gK6wJJ9ny579VpDfVZE2Il86cA/Nd1bTnwpvFUaeqZGdpD LGtQ6nUd66G9JI6IgakUK2Rm+nGP2hr5hsDUTrjpAozTiYBVUAfJ6bEPjVDcC5YpVHQ4 RCCG3ZBaZzrnCUQFohYT5oFp0VI4GWL8Pl54VNFRxK0+kIBydZGQM4h5sKp7s+tkyWiB 9xgQ== X-Gm-Message-State: AOAM530ydTVg69wfmTQlGz98TWOPkBOsQe4FMXYGv64Z/fwjLZ1df9y9 0V1wzm9h5a0wNV6PFqaBlI+SV9RaMn01xjnwvTS4gQ== X-Received: by 2002:a17:906:d938:: with SMTP id rn24mr16289501ejb.87.1615217841387; Mon, 08 Mar 2021 07:37:21 -0800 (PST) MIME-Version: 1.0 References: <20210304102452.21726-1-brgl@bgdev.pl> <20210304102452.21726-10-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Mon, 8 Mar 2021 16:37:10 +0100 Message-ID: Subject: Re: [PATCH v2 09/12] gpio: sim: new testing module To: Andy Shevchenko Cc: Bartosz Golaszewski , Joel Becker , Christoph Hellwig , Shuah Khan , Linus Walleij , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Geert Uytterhoeven , Kent Gibson , Jonathan Corbet , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , linux-doc Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. :) Bartosz