Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp165187lqi; Wed, 6 Mar 2024 13:13:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVfZTpGQx91UExz0AO18nviwkeHhdHnSfZ6T/vRaoovDlr2IF5+9xMgMBJUo+ZYzLfOLcknmQEQZl22MUPj93jk82LIUKj13IrAZpgJzA== X-Google-Smtp-Source: AGHT+IH3UEsWCjTBlpzmU8ThaY561Wag9C+RRHgLs5ece9Udsn3d5jLmJf2Ulo0tDkmUqV41KK1l X-Received: by 2002:a05:6808:2189:b0:3c1:f569:45c8 with SMTP id be9-20020a056808218900b003c1f56945c8mr7345123oib.41.1709759617004; Wed, 06 Mar 2024 13:13:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709759616; cv=pass; d=google.com; s=arc-20160816; b=UUZnqMAFBRIikFrHaSFuq8tqcBtUs7UtjUWMaGF91OcVKaOFNwVCArZ/rzgsmP/2gB S6s6vdMCGz4XQBrbg1U0Ovq1hxrZxI8rE+8ox/625qMSd0Mzhs4WH5LWMOrcAP1VSiu9 Rb5VKMmdrYV3XGJnEMQWKL9mXMrCOEB2yOeVsKFG6CVOrYp+cAwomiBnzCiUCNw5I6D/ Zq2m0gWHZ4TglNnQ7l7/YCqDSLJpgSDe6zJ55WJbaL8gxblzKRWhsuNMLb3vheJwvB05 48mdiq+E4XlARc7eERdYmCUDUvwEdFHo7+f2qnS8J2PTzUcZB00lUjkWXi7mO32Mt5L5 kgtg== 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=l2JVk38XPxvsT3/YhoDsMGF+vCTpgTNDdkuD7ePo4Wc=; fh=MY9SEHLe0DUjTZqajpTrxWbMevgakug3Mdzqiri9MlE=; b=AurYJ9zVpqJjRm8/8t17DzkcI4wBUpfxZvecDUkSvCwRejjAqBW27TETAy6rB2DKnY InprB3puZUQ7wwaXmxqCUgRPoZ1tKR36rMuPoo5IDa0JFMEaZzNF9uupscDUzr9qrloG CX7YAMykhVU7IRq8RsDCG4tp7PzH8mHjGSMp91KP1sozlOLxjHjQVXGhzVC2LnadrigY rJ8Iz05l2efL+PzngXX6+iD6ePbdpmfN7iyHBrxWY+LaK7+2zc1ekjc2+hB2UpoRJPzO rkLAFnjZY7rByqMORFu9lwzSMyzZDDSzgT1I2nnZiF5zvjeKwIE8FOpoTbgj2CMfxNGu cAFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3MlpxjPt; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-94577-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d25-20020a631d19000000b005be03f0da68si12543979pgd.13.2024.03.06.13.13.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 13:13:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94577-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=@google.com header.s=20230601 header.b=3MlpxjPt; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-94577-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 A5482283DEF for ; Wed, 6 Mar 2024 21:13:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 114F6819; Wed, 6 Mar 2024 21:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3MlpxjPt" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B3651B806 for ; Wed, 6 Mar 2024 21:13:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709759611; cv=none; b=iggAtqF0y1iveXyb3Ftmu0ScWM9NMODfSLkO/URA5dVsd+8vqPEq8KeWt4DK53pZFWepm0VEAH3RABXuikCxXExoW3wb7eIQ1ErElH/iXvQEDtcFizUsTSiWDGWj3OYausTT3QdGYnTrFDzReSLWUuQhlCEoFzfS/EVmiMA5FQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709759611; c=relaxed/simple; bh=d883N2vJtpZj5bifCRAlDtYmvlYuDPPoWBWkmtRiq6w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IgCZcF8tT2/U0uCRO3OMY4hdwqC9r9YFRJjYh4L49Nyzuvevhq9xL4ynnlE5f2rlQxngQdx23usBKsqLVdCqYKDYAYYJr3n8gwsnaqoe2CB3a3JPtBVDz8frJVpFggs7x9YwR5nmY+0MrAkg2cAlOlANDbuO0xIPZI1Mu6Mg26A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=3MlpxjPt; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1dcd6a3da83so1101725ad.3 for ; Wed, 06 Mar 2024 13:13:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709759608; x=1710364408; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=l2JVk38XPxvsT3/YhoDsMGF+vCTpgTNDdkuD7ePo4Wc=; b=3MlpxjPtVLPVJ5BScvq0HiKkCmWisnlK5Ozt8VO/pN7XFO7YPc6ynB16pLx8vDmE2b fI/3LDxOpB4Iu8+HSM8F4MIfRAMJIyH6k1sFv7oldzb8U6hKtJYfGi1hfATts+f3ATzu J6U2LDjS6pCafGa+LYU1ts57MXbwEk2NMDiM2JRTBeJcbOaguhXUCFaknOO0QHPAyeG5 +OeyzrxncKsk974cNimDVbUbxXTWO1BqpNWUnoQodthV83TFKUIzAQRGyLga6kgRK+jg XLTbXmZNIMHg7Cvbsp303SASiHAcvg5BquewW2wrr9kmbVLu8xyp3BWRDMAqcWzLjxxt LLAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709759608; x=1710364408; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=l2JVk38XPxvsT3/YhoDsMGF+vCTpgTNDdkuD7ePo4Wc=; b=bWmx2OzRcNMSAS/ttX58EwO8rzTOl9MrSHOj0qUw+me9wTPi37txT9wq4nqvJW6Zpz NZGgtYBt5eKyMtXQKPGXceOQ4Xdc1TnutGXzzusQ4U5vEHgdfFai3TxMICXGnaJSAjon tFCAuwi77jHTHcyLskTSc4+M+7pn6IBtq2pqoViTQKOVsaoqR9LKcTwYEutai+wI2+mb CS4erqiLIU6Ue+QIs4nLqA0uOvC34z9E10oUQqOwDql2Rb4WyoouxLGgMuKa9oc+L55t +pZRkzubPGDS+PGy/GuRjwp2Wl7FxoeNPYwpNN/hoIp33Ug9chZ3x9KzzAtnRAIAlBuH E7Rw== X-Forwarded-Encrypted: i=1; AJvYcCVaxIUIFTzAGUaGAgFedRJrNr5+PpRf09tl7ip+WyXweeQih4ZJ0Ll2W8C6kjLsPb42htdPLyTZsQnb68f4hzRq1ZCvye+mzvHI0ynM X-Gm-Message-State: AOJu0YxhZ+NgHC855+P/xf5crpBsWP1mzQc1piREBmhqJrwN7fLuVFrv Hj7O4Z1Un2RYsH0dGZeaX6q48NuhSO/kElAa/Z389urIUAihvBLRJnM1cLppxg== X-Received: by 2002:a17:903:18f:b0:1dd:152:225d with SMTP id z15-20020a170903018f00b001dd0152225dmr8094717plg.8.1709759607700; Wed, 06 Mar 2024 13:13:27 -0800 (PST) Received: from google.com ([2620:15c:2c5:13:9a91:c17:53d9:d156]) by smtp.gmail.com with ESMTPSA id q12-20020a170902a3cc00b001dbad2172cbsm13343407plb.8.2024.03.06.13.13.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 13:13:27 -0800 (PST) Date: Wed, 6 Mar 2024 13:13:22 -0800 From: Igor Pylypiv To: Niklas Cassel 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 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. > > > > > #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 > >