Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4519512imm; Mon, 30 Jul 2018 16:41:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/JY4jTnLlJahn4dzMZTT1DRL0+NZJSpuMCFmkXlBR1pSRlpcw01KG1GShNsWuwktytzsF X-Received: by 2002:a62:a119:: with SMTP id b25-v6mr19561919pff.163.1532994066751; Mon, 30 Jul 2018 16:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532994066; cv=none; d=google.com; s=arc-20160816; b=Nwbd2K5zhxwbP69BU72N1fus5rfydBTNhbAkw1UJ2612aPoPmYyOVNaC0PbE6MnyRw cKkEftMysZ2pGlz+SM4x3+Mgi4z/OUnluf3k/IjL5/B43g2h8YYLrumY+zz40HfoqkLH GDNv5NjETU+99islF3sOmDOZXPKi46zxlBDGG/JUpyVd5eYUh6IWSb2o0iIhHfTbuVSN +sgokp1gtleKkt6HbITOW9ZFIT751meM7GxDmOwcU4vYiF23qf2k86Li/dAnm9uXYPd1 fa8PmXeeSaf02NqNuRLqVCKT9IdzJrcSGXRNPX1m9x7lHuO4Tot1Fek27QC3saWniEWu odUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=+e6BZWb1k7n/t+az2o9anKHxJCyta5M9Ajf7sUPLRtE=; b=ITbZT0qK8kzFU1OZHOm6VZZ0+Q1QyuPKUXf45W/mkmd+zK6t7uGwtiJG+RTUfs2auI 8q67cerfbAMVBfGN8CfpdFy8HmT8Ff3SmghzqWTHUWjSzZmDaMZmHUcyH8hQDib7ma1U nR8B/pHH4EAStNzZbOBU1+OD1Lw0277JbGOhYsOYE+I8q1bR5NjkpP6D09HkD5auC/ru FGLT0HblFKd6Y3rR7CJToauPEFTCs8ho2vbPz80YeXdfr+2eb17xjwsXfsZi7ugkPZEg Yqqurn/afdMC5+oh+NtN10P46uyN1V+gA51xCmGYqO7lQWD4YTUAVG7tBxaO6BNbYSxh 40Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FLS9yHGh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19-v6si10470617plp.52.2018.07.30.16.40.51; Mon, 30 Jul 2018 16:41:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FLS9yHGh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731632AbeGaBRZ (ORCPT + 99 others); Mon, 30 Jul 2018 21:17:25 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:45158 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727478AbeGaBRZ (ORCPT ); Mon, 30 Jul 2018 21:17:25 -0400 Received: by mail-lf1-f67.google.com with SMTP id j143-v6so9372689lfj.12 for ; Mon, 30 Jul 2018 16:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+e6BZWb1k7n/t+az2o9anKHxJCyta5M9Ajf7sUPLRtE=; b=FLS9yHGhIp7n3ZuHqjlaHKYOnj7WKeU0cmnU1foAiEMu3JGkebJv8q7H99VerMbEuj Xia0NrKK2NRD4fZcobZK0zuTEW9vSFvSM0n+e94PjpPPBVgg8aSecGIIqg5h/xAwZOrr iWwbqC3vWqacz4VIyUg+FdyfakAlV0N0K9SpY= 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=+e6BZWb1k7n/t+az2o9anKHxJCyta5M9Ajf7sUPLRtE=; b=Sqfpccihsgm3q5pyxWnElPSDaHvZpF9FCFG96dk+Uro3DVcLCOcwxv7FL0UxlUFZH2 98Zbg6pTiFuz0vxyvy2dyTfEc9xjj8JYEDSqKHKo0e11HxZ6tCoweltgLu/fTp9SE8MQ fi1ExeD4JcGN99tqFoPJgAWQU6sIBLqZdOywerLmB1O02F61FvWtDFWSufHan+EtqI7h 4YGrOQcI5U4oXH+oCVbpw5Fj6ziZu0jE7CTcTYpcK6VOTpTUOSPwACXpahHxhk0WI+Ei Wy2/+wyi+/pQOtGk91tK7HtDMw+QHsI/QdZgn2HDzLTRzADyEHsE0Ofy4IF2Wz2twt8c mJnQ== X-Gm-Message-State: AOUpUlG8fCBo3swRjVGSE+OgWgxpxKZTt09K6QI/gsSZ3iKggmbgvO7Q JUl0Nj+MAgXrq4L/xrnagKFjYMPyzwc= X-Received: by 2002:a19:e307:: with SMTP id a7-v6mr8969185lfh.125.1532994001621; Mon, 30 Jul 2018 16:40:01 -0700 (PDT) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id b14-v6sm1724371lfa.62.2018.07.30.16.39.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 16:40:00 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id j143-v6so9372638lfj.12 for ; Mon, 30 Jul 2018 16:39:59 -0700 (PDT) X-Received: by 2002:a19:cb44:: with SMTP id b65-v6mr11796574lfg.12.1532993999649; Mon, 30 Jul 2018 16:39:59 -0700 (PDT) MIME-Version: 1.0 References: <1530858040-13971-1-git-send-email-sayalil@codeaurora.org> <1530858040-13971-3-git-send-email-sayalil@codeaurora.org> <0dce9e9c-4f93-9857-72ee-f65ff195c41a@codeaurora.org> <4cb931e199599314829f5ff750797c88fc123f1f.camel@wdc.com> <8e6af8ed-1ec0-f10e-69b2-08281b638a4b@codeaurora.org> In-Reply-To: <8e6af8ed-1ec0-f10e-69b2-08281b638a4b@codeaurora.org> From: Evan Green Date: Mon, 30 Jul 2018 16:39:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V5 2/2] scsi: ufs: Add configfs support for ufs provisioning To: sayalil@codeaurora.org Cc: Bart.VanAssche@wdc.com, Vinayak Holikatti , linux-kernel@vger.kernel.org, asutoshd@codeaurora.org, riteshh@codeaurora.org, cang@codeaurora.org, martin.petersen@oracle.com, subhashj@codeaurora.org, linux-scsi@vger.kernel.org, vivek.gautam@codeaurora.org, Rajendra Nayak , jejb@linux.vnet.ibm.com, gregkh@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 12:46 AM Sayali Lokhande wrote: > > Hi Evan, > > > On 7/18/2018 1:53 AM, Evan Green wrote: ... > > I'm not dead set on binary, since as above I could do it either way, > > but it seemed worth at least talking through. Let me know what you > > think. > > -Evan > > I am using ASCII format for reading/writing to config desc as it will be > more readable for users and easier/comfortable to compare any value to > default spec value(if required). > So I don't really see any harm in using current ASCII format for > provisioning purpose. I'm not convinced by those arguments, but ultimately it's between you and the maintainers. If you're going with the ASCII route, then I have another review comment. Currently in your patch, if kstrtoint fails, you print, but then break out of the loop and try to write the partially parsed descriptor anyway. That "break" should probably be changed to a "goto out". -Evan