Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3231203pxu; Tue, 15 Dec 2020 01:46:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPH13C0x9ooy8YHwoDSAWJqc6W+jHXLtCcC37hKyodsbktrX79slYuDKwesz8N3c7AHh2N X-Received: by 2002:a17:906:b56:: with SMTP id v22mr25993661ejg.145.1608025618015; Tue, 15 Dec 2020 01:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608025618; cv=none; d=google.com; s=arc-20160816; b=NXX7ACKKmDG2A8EWE0X/jL2RtVZ7GNvELTtp10PsZRUeF3jypy6RfcOyyxj/yNTRia nJY0xUJDJVn9VWS82rGrT7CKFC2xLJbDSl9vQa41NZ0OnLr3QMjFWcw2jU78rP6kIQmj PbH2LjoPSI8yMHoZ4DB/piMzppfLja1XCbnj/DTK5O1sLFzDngepONTtbYrEzyA55PaN n2vbKNHzWHPqN16AUMFiZpvR9R4je8ESd8e0m6PWfQnflwiZWIws/T9/LP5Pess5/eEr ynhheKLPCWz0nObhLaxjoTkN/s2SZuFgE+rWv0s6tEQQF+0K5zkgPYLsg/CQNmZVeBgq sMkQ== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=sbp7bazvQ/Kg/Kx4Lh7f+HzqSKdsXL4CqYh5zWYbn/Q=; b=rI/plimNloxC5Vk4ZF8voUGj1rl+zcur7dI9vnPl7Tsn6vrXK7RMYWVX5SBohEdHvB lpa+0YCs4uH4N46jQ9gsqA86u7YYsT3V/10ZDy9JFI/XPPCjFpuWZHnTRsuAE963dO9p 9UjAhd0ArEZ2OCRteyTHvShV1tf5kBgi7xQrfcXPYSASHlfu5pUFcJJgcbA86/aGu0zg nFvYPh7IaxVGcOOCi1/3+6YXkV9Vro0xQ7SzXYxn8Fd1B4MGxOFzc4NRW4V9c/oOJXit KhSm1Y2kOPusxzhDSgWMBddpKruQlYFKIJ5ypyLVYsItlT7wuALt0SXMakIXLA6vMtb5 X/wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t6rETd8B; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si580917edt.452.2020.12.15.01.46.35; Tue, 15 Dec 2020 01:46:58 -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=@gmail.com header.s=20161025 header.b=t6rETd8B; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728132AbgLOJnT (ORCPT + 99 others); Tue, 15 Dec 2020 04:43:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbgLOJnS (ORCPT ); Tue, 15 Dec 2020 04:43:18 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62113C06179C; Tue, 15 Dec 2020 01:42:38 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id ga15so26710773ejb.4; Tue, 15 Dec 2020 01:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=sbp7bazvQ/Kg/Kx4Lh7f+HzqSKdsXL4CqYh5zWYbn/Q=; b=t6rETd8BKnh9JPwR+wiUit332ATV4QQgbXbdlcS7VK4HhpteabSiMrJPrQWZUc1bxk rgUgKkfy+CX8IGNZj4ONxneMVg0rL9NbDNXk6Lnf0D3D/37hRX+YgUgLAKowX3F6WN9s W2Dobap8Dn0UQiYkgW2MS0yqPIabGP7XcEfRvHjyfcdFkRF/J+z9C4rW9UMteWErlRH/ fLxUnkCaQsFKEAqf6Ew7IxigWuaaUBMiAKesebEitcTO+lCBkJuTgQ9DBLWH/Bjl0egY 7vdSqWtWoHdebps5n9yqHUAZ2YPgTErQZjHp+1DMubGJUFGznL9hRAstABRDYqimsMyc xKSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=sbp7bazvQ/Kg/Kx4Lh7f+HzqSKdsXL4CqYh5zWYbn/Q=; b=XQkwoOn0RUGYd2GIvZoEmy8ZUckhVrLCOO6DOAHSVsu9OdImgCUDK5mAU6hK2YMHjo v5g3GVZQ0GxryJbpKJlPoh1M5hvICa0EWK6/gWDcNRBRPCacVCjefmkjm3TBpaqauqjV 1pNoc65+43L7VpWJ7YWsd0cN6kiUfAFpLe9Q/+LL0A6VEptT3+XnxQjfb/6qModzAxgs +5IIgXvqibhnL04a22NB1F1sjCXVO3zRXFTidCWv1xlFff9Wm6kbx4uCLufggPg2+ORq qk4x26xsgCMInxwNmKd71AdKQm3cABwiXtidsOgpwWglYRfnRSstzFMqkAWllcUWj17G FXBA== X-Gm-Message-State: AOAM531Vdfw7cpR9FNL9vi8PWJ+ZWg09XgB0rSVblmMR83dgrTGgVLdG Wz0sT6lSAs/MKMUTDLESFiE= X-Received: by 2002:a17:906:a29a:: with SMTP id i26mr25934867ejz.45.1608025357153; Tue, 15 Dec 2020 01:42:37 -0800 (PST) Received: from ubuntu-laptop (ip5f5bfce9.dynamic.kabel-deutschland.de. [95.91.252.233]) by smtp.googlemail.com with ESMTPSA id m7sm943808ejo.125.2020.12.15.01.42.36 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Dec 2020 01:42:36 -0800 (PST) Message-ID: <615bb13dc394dac2b56fa60787e1841d2db12462.camel@gmail.com> Subject: Re: [PATCH v4 3/6] scsi: ufs: Group UFS WB related flags to struct ufs_dev_info From: Bean Huo To: Stanley Chu Cc: alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 15 Dec 2020 10:42:36 +0100 In-Reply-To: <1608022873.10163.17.camel@mtkswgap22> References: <20201211140035.20016-1-huobean@gmail.com> <20201211140035.20016-4-huobean@gmail.com> <1608022873.10163.17.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-12-15 at 17:01 +0800, Stanley Chu wrote: > > + bool wb_buf_flush_enabled; > > + u8 wb_dedicated_lu; > > + u8 b_wb_buffer_type; > > + u32 d_wb_alloc_units; > > + > > + bool b_rpm_dev_flush_capable; > > + u8 b_presrv_uspc_en; > > Perhaps we could unify the style of these WB related stuff to wb_* ? yes, agree. I will change them. > > Besides, I am not sure if using tab instead space between the type > and > name in this struct is a good idea. > using space, in addition single space, type and parameter names are mixed. use space: /* UFS WB related flags */ bool wb_enabled; bool wb_buf_flush_enabled; u8 wb_dedicated_lu; u8 b_wb_buffer_type; u32 d_wb_alloc_units; use table: /* UFS WB related flags */ bool wb_enabled; bool wb_buf_flush_enabled; u8 wb_dedicated_lu; u8 b_wb_buffer_type; u32 d_wb_alloc_units; I think, the result is very clear comparing above two examples. yes, there is no explicit stipulation that we must use space or tab. Both styles exist in Linux. Maybe this is just matter of personal interest. Bean > Thanks, > Stanley Chu