Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp985967lqs; Wed, 6 Mar 2024 02:57:16 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV22DF6cFc7fFgoAsxkgO0Bck9JMGcSCowyXqMYiMEIai8gucBSmpiwOz2jULHAUfEtCoVc+wYVCkPlROQjNCAGU2Ai53GORCNVttiEKQ== X-Google-Smtp-Source: AGHT+IEfL51Rx0kC26aqtHAefioOVix4uJx+bS0S7Eu9i0FXfsyDk7HFMzR3vqIMKZz2bwzfW9+/ X-Received: by 2002:a05:620a:2a11:b0:788:42f9:5328 with SMTP id o17-20020a05620a2a1100b0078842f95328mr188195qkp.59.1709722636212; Wed, 06 Mar 2024 02:57:16 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pj22-20020a05620a1d9600b00785d57272a6si13686191qkn.314.2024.03.06.02.57.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 02:57:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=hOVI2+zd; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-93813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93813-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9FD3B1C23A28 for ; Wed, 6 Mar 2024 10:56:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44CE860DCD; Wed, 6 Mar 2024 10:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hOVI2+zd" 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 6714F60DC8; Wed, 6 Mar 2024 10:55:26 +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=1709722526; cv=none; b=QZioi3kKKepmoHlklpvLbl8cDj/PW3NiK/oiosE01uzh9+hVMk0n8A2nUdqS3dCGr/pqSpskMUALe79R4bT0VeGRH1XTuPspML5vaHmGNl3Ww/vrJBQe9dIOMgR3kgom6uTam3s74QbmQgxl4C0bn0L2d/q71BumEX+zZhGl89E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722526; c=relaxed/simple; bh=W5X0vWVPBaZrpRgbR9tIzMlk0v2cDieEZesqxh75Wgw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y2QBlDz5Mw9Z+5izVxNsarBMZDqvbIh0+ISD2QI19JouFEHfXGV23nYKsHJioDdWzimc8W4rjMbOZHQgMdxY8tA0Mpo+GCRVWn5Gck9TffmFQeKR9JIjOq32HTVxQIsg3O+PT+HL7rQBy6j4ddvNF4V9rBuYUcy3RwtE7VRuUTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hOVI2+zd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF3C3C433C7; Wed, 6 Mar 2024 10:55:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709722525; bh=W5X0vWVPBaZrpRgbR9tIzMlk0v2cDieEZesqxh75Wgw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hOVI2+zd3QEyjQqu+inRF6t8IioyfLZiU2MKnsYilQ7hj3gxguWi5rscYX0gkgywV JIQ+IB97Ta975aNGp2XI+rMD/+T+ksk5KgtTb+3PlUOIrrA62Q8QnL8Z60nsJs2wSc bkv7tdiSOjpPseddqVJZn73XfBLTdwQSeXEqJPcvneyt0tN42CO9bRHC+SYjxHIxZk za0uBsuAq3AgYbIFCb/wJ+ntLjpmbZzuoCu6i+NB6JQsc+vnT3hwK6+K8tqM9c027C z1nV9yGhpfjAU5fWImW5OUfz/6UbxJ0yGOmi1sVN/I3u8S5+3pjrKOhOUjBlP/uTCW US7jKTSKcQfBQ== Date: Wed, 6 Mar 2024 11:55:19 +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: <20240306012226.3398927-5-ipylypiv@google.com> 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. > > #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 >