Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp446358lqi; Thu, 7 Mar 2024 01:52:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXOCYe4fUE1riT6FMy1RIs9/FdesQ1vuKV2PZIXwqiXDnLN0BDgZF9yrs8jRoC8LG3T1Ts+m4GjNs0S5ToHdS9MAwuaThOLq8Z73lH0nA== X-Google-Smtp-Source: AGHT+IGU4H1ntuRNiA99QchS9V8bnv6upbyc2bqVpU5TReb1TF2gbcIekWaQQP9yv875a6Fjkqid X-Received: by 2002:a25:a108:0:b0:dcd:3f24:bd3c with SMTP id z8-20020a25a108000000b00dcd3f24bd3cmr14352038ybh.22.1709805154584; Thu, 07 Mar 2024 01:52:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709805154; cv=pass; d=google.com; s=arc-20160816; b=Vh71OqfD23vN/faWw87JdcBTWmRSqR73mcpTWl/TTVZ2BmkOnGuv2PZ+q4PeE43CtR VI53kXoYmJE97ZM7RKAjm5rNH8Cbtemq2COn5KR2IXnNVuWa4kx3ukXCEmkWHKNGyNJ3 xlGPnQ/e62YU0MfKsyxmtlDzWx9dHSEoYZ5nTu1HSoIu3gedwflLOASVn94SIizeAaTy ZhNncemhULnhSVvtA+caFGAOfVkAsN5Bsm69s8vwglFVs97ceJpnDd17LYfuQliMD2au 31vXVm5ddZx2PIjFovieBkr/eyY8OjYuN3V9S5oaXHtZeIRONv3R6CVspzjVzkad+dKi eabA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rvWvl/kTXLEpYtvVVoCpoPILbuGwotUcOwoeReKHsMQ=; fh=qi4kBeskBymI5w6NsMzc1dDuT1ws3vjEt5D3JlipxIk=; b=PR9kdJ5IAGJHYdBBQX3GEbv1vYtTbVVCHbPmQmQJqYWeRq9g4kS46MdKu0hoybHPOA XOUAIpFqp73DDbK8JyGBjKUaQ5yKC5nhQHZj4VO2uNKB0SVpsizvSc1f2OCkkbEydHYx KfccbJs/WlfOr29GeFRbN7vpfg7Z1ERQhAtXjiYuT4hN16kFJFIBv2DhghNzDDyMmwGE P63vLAnKzRYR/MgJTyEi35uDZPAhQzuNKYBcNLwwXB5Y1T1qKBsuMEgGZjt05CjInDgl CSVu429BDNKWKINSandfU7vZJHhsqw1SqOnCWezZq+ieiqkBq9JKEFC2v7Hnh1UyMvK4 tRSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W5+dmdhJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-95252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z19-20020a63c053000000b005dcbda499c9si13396144pgi.261.2024.03.07.01.52.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:52:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W5+dmdhJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-95252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1667B283B0D for ; Thu, 7 Mar 2024 09:52:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CC8584FD4; Thu, 7 Mar 2024 09:52:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W5+dmdhJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62D0C657DA; Thu, 7 Mar 2024 09:52:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709805135; cv=none; b=uiYqrjRpubOB8OGhjERHDSzphfz4utnXVKWHeAiFqmOTv+foebUJNEZh7ms1yGCsFQ4M2HyXM6k/z327DZaJlF3YIAViNsobBjlUo6hHxrBOCJfeaLBo5tUF26bGTndWke/UE28WzrVbi7dbhv0GY3rVkeUK/M/bCEZzfxMoIxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709805135; c=relaxed/simple; bh=CKC1PcEhSEHy0nnIfWiAnTwsc5X3hKJXaOZ3NHLYk38=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WXg4pPZCPw7VeOp8BERXZf9N7jWDDP6Z2g41hKRbErRa/8z0Nl+1yvoxp07+bqwPYMEDIKB5PtjMgQ4S+9p8kttA1Lg5w99EqYLiGkxUZegT2YJgJIE7o23j0MDeKy7rwGCGEr3EGb4yWrmtS0MWXnjfej6MqX9ZwVAVVq0Q6MY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W5+dmdhJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1ADFC433F1; Thu, 7 Mar 2024 09:52:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709805135; bh=CKC1PcEhSEHy0nnIfWiAnTwsc5X3hKJXaOZ3NHLYk38=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W5+dmdhJGSpnfvU0vSRcKQ+ahZ1OO7cloPoEj1+Ow1ewBUGu8KkRbjxU9Z5bIp6Iu IckYuxvvaqBjO3BRskMWFh5Fjf6jnGsasTjU0dPVY8S15RjjzDpMzCjLsP1bD6kpKc 59O8JLGBpopiquHM/NYYWw+SxLTm/SQSxonow1D9+9KBKbro3W3j5vhThLpb3pCiYR fFp9O027ADGWx5BDCTIj+2Bh0YRDvZUunPxIVcvx56U8z1MHNQeZoqGEtF0a0P8XXe 3iT8wBlX//QCBDhruSYeoRPy5H0nVXIkCKzP7HIZpsRgGS+9ZoNd4DECzSKFM87Yqx +Tfb9NiEZdO1Q== Date: Thu, 7 Mar 2024 10:52:08 +0100 From: Niklas Cassel To: Igor Pylypiv Cc: Damien Le Moal , John Garry , Jason Yan , "James E.J. Bottomley" , "Martin K. Petersen" , Jack Wang , Hannes Reinecke , Xiang Chen , Artur Paszkiewicz , Bart Van Assche , TJ Adams , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 4/7] scsi: mvsas: Add libsas SATA sysfs attributes group Message-ID: References: <20240306012226.3398927-1-ipylypiv@google.com> <20240306012226.3398927-5-ipylypiv@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Mar 06, 2024 at 01:13:22PM -0800, Igor Pylypiv wrote: > On Wed, Mar 06, 2024 at 11:55:19AM +0100, Niklas Cassel wrote: > > On Tue, Mar 05, 2024 at 05:22:23PM -0800, Igor Pylypiv wrote: > > > The added sysfs attributes group enables the configuration of NCQ Priority > > > feature for HBAs that rely on libsas to manage SATA devices. > > > > > > Reviewed-by: John Garry > > > Reviewed-by: Damien Le Moal > > > Reviewed-by: Jason Yan > > > Signed-off-by: Igor Pylypiv > > > --- > > > drivers/scsi/mvsas/mv_init.c | 7 +++++++ > > > 1 file changed, 7 insertions(+) > > > > > > diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c > > > index 43ebb331e216..f1090bb5f2c9 100644 > > > --- a/drivers/scsi/mvsas/mv_init.c > > > +++ b/drivers/scsi/mvsas/mv_init.c > > > @@ -26,6 +26,7 @@ static const struct mvs_chip_info mvs_chips[] = { > > > }; > > > > > > static const struct attribute_group *mvst_host_groups[]; > > > +static const struct attribute_group *mvst_sdev_groups[]; > > > > I think you can remove this line. > > > I kept the forward declaration to match the mvst_host_groups style. > > Perhaps mvs_sht can be moved to the bottom of the file so that all forward > declarations can be removed? This can be done in a separate cleanup patch > series. > > I'll keep this and aic94xx patches as-is, unless there are objections. Usually, you first do the cleanup, then you do your changes. (That way, there are fewer lines changed, since each patch is smaller.) But no objection from me. Kind regards, Niklas > > > > > > > > > #define SOC_SAS_NUM 2 > > > > > > @@ -53,6 +54,7 @@ static const struct scsi_host_template mvs_sht = { > > > .compat_ioctl = sas_ioctl, > > > #endif > > > .shost_groups = mvst_host_groups, > > > + .sdev_groups = mvst_sdev_groups, > > > .track_queue_depth = 1, > > > }; > > > > > > @@ -779,6 +781,11 @@ static struct attribute *mvst_host_attrs[] = { > > > > > > ATTRIBUTE_GROUPS(mvst_host); > > > > > > +static const struct attribute_group *mvst_sdev_groups[] = { > > > + &sas_ata_sdev_attr_group, > > > + NULL > > > +}; > > > > ..and move these lines up to be after: > > static const struct attribute_group *mvst_host_groups[]; > > > > > > > + > > > module_init(mvs_init); > > > module_exit(mvs_exit); > > > > > > -- > > > 2.44.0.278.ge034bb2e1d-goog > > >