Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp136661lqc; Thu, 7 Mar 2024 12:36:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWkzPTPBYd3EYP3UPNsuz5B0QtzAgn8pkZDRH2M5FncIWe5ZI4xfQna21fOqonI2vPAWCufShtmF56bcianbKvfymgCu5kE5L/Xhr+Vkg== X-Google-Smtp-Source: AGHT+IHhEf6pYFT3ropIMTmgfiN4jIaKmf4orlJQTQ5BDUFel/qmsPtnUCeeyerey0wdBi7ZKO1U X-Received: by 2002:a17:906:6a9b:b0:a44:e722:db8f with SMTP id p27-20020a1709066a9b00b00a44e722db8fmr11298483ejr.41.1709843765848; Thu, 07 Mar 2024 12:36:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709843765; cv=pass; d=google.com; s=arc-20160816; b=aYrjqGkKRxi3uiAHSl2o6IyXWx/1XA60O2uBI0Gk+7H466LsFzWn62vftCM/Xh+/R2 Z5cgkv3aTlcdXy5s6WFJehoCTWQIGcq6Gz/esxEHL1QkaxCEcNt1PiOb8k/cdDiWFS3G G9zVoZ0N1fiJUhYyiGL1iTPYFZdQMEsQCStaeTJiQU8qh8SGBaTm0oNmVUPQcwnI7pKa 46UgOleXz0NC3VjpioMDixyr7y3knp1+q5uTEPSLFHaADUdycTPO2gWzFHQLBjP7XQ7o ezwRgR5lGV3eu4YR8jiejYZJ1CFgvRUlbk5Ol1NdCdrhd4A0fpiE3Q7XzGg2FmpKVG8Z r0Fw== 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=hYdU1zXSNEoau5wZOigLf4pPixZPgoYe6P8fQG36tI8=; fh=kx3MichX9MpUpOEqhSQyRxaGeVU5Q1OEkzBOxeWdaPQ=; b=HFmvFobxbNVwaXMqyvZIRXXxzbnfXrCxPtEwYeUpWZcAapBTgzeymblI0MKbYWFTvC UzHR5UwdAtthJTUjaqFwSoign8l/vOS1QtQUrRTb9amJgd+qGMgHQBm16hL1SBtWT0f1 XDEeVptZz6LZbpLJH+ppHBaflFXPCbzYMx1qgiRvfaWVU+rM7VuRr4quxsAWh1+KIFvn TVYIrg2OGOtWAr0Y5L7jhion7tu8GhPvXiq0iTFqRwfAHt6ObT2kz4MHPJdSqGby2ZIp Lfm3W2XPOCy5jUbhJao8Ns9vEsx+vcPR925GkuBrPtJzZGIyFN5VTTkzG9q8nVJLTnYh yf+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=wT8mYYPT; 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-96205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h10-20020a17090634ca00b00a43d361aa87si6927651ejb.277.2024.03.07.12.36.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 12:36:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=wT8mYYPT; 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-96205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96205-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 664031F228BB for ; Thu, 7 Mar 2024 20:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02A9B137C5F; Thu, 7 Mar 2024 20:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wT8mYYPT" Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 A6511651B9 for ; Thu, 7 Mar 2024 20:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843753; cv=none; b=quT3+YGtbz1YRwdpgGUpHw7H/F/n9hTLP+SUF8sewuz4sD5hR3SjtPXqycrf6+/XsoJ+yNNOIXxB1cpypbgBQ3wcd5jYDM57nHun9eakQXvB5jbBXzi0XyAOyy8GB+1knDSHIkRUY1jgu1qZ7oG7fIpIsa/xR1wMIP36VwtnwN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709843753; c=relaxed/simple; bh=/mM9XdqoNixs4g0r44HVvGUXKJUKNMwEWmTfaCJb2YU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E4mUf2xJEyIOQXlBCV4qggF5LsXls4f3ZVyecRy38LxtGpiEjQ5INeAf2bCZNv+ZnsHeQEJSnIjPKkyRFzU0hVqjQxD5tV9QfUSLmEMPNB2MNL6p5iDkOJU2+QI6aYBHnmFMRenih1G0U3GOhc+3yT0t/ECMe50iidfzYCEqlog= 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=wT8mYYPT; arc=none smtp.client-ip=209.85.216.41 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-pj1-f41.google.com with SMTP id 98e67ed59e1d1-29ab78237d2so885384a91.1 for ; Thu, 07 Mar 2024 12:35:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709843750; x=1710448550; 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=hYdU1zXSNEoau5wZOigLf4pPixZPgoYe6P8fQG36tI8=; b=wT8mYYPTBZywVOqXuFfFcsnEJrXFmsyi7IyKhccWYnHOXWZGWZbr8ySj0hgtqSS8xW cV/kAY8Mo5AtYxp0c0e8cblu4vBqwu1Ny0vcuKPigddR0paEp1QWCDlHNNuzOSD9JrHw uhw0rTfoVRN/YDMcOnB0J7PNerJp2n+cHKxvPc2HzlO5kU0G8Y674IV9HnEE3QYlw2xs kr8By+Cg4sdZX/23FiUi0o5t5iwxnVJzIOgg3NOzEWP5IY8O0eHs3WNKmdZlDyInln70 /1Tv3llbwWn/15m5JmSKrrXuYSRGXTqJQ11Mdot+DlCk85qTOqGZLaxTyshzyeAWr88Q R2OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709843750; x=1710448550; 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=hYdU1zXSNEoau5wZOigLf4pPixZPgoYe6P8fQG36tI8=; b=ApZd3knoz9hq/ZDDAK6xp+LYeniLxJrc4Dol4W9kJ+POfxy2MymfVEiqXaTD+WgwIB PTeST8fIsrrmEcgn2xX0tTIULL2z+e78qP6AKotXwXZANgQZd7geiUIV5NrKj2HTJ7cg 2GLb39v7enB51jBzh31O1Mr7fkhYm9xm1ovCO3NbBKob3Qa2PPB7sN+PwZf6hh+6OEzR Lw2v3cw9cQZk73sSLGATHJG7HLT48SEAEVQMJD7zrc5LIbXKm7mUV7y2tsD4ROL5C4DF /rrV+Ttkdh7LjIBDJQ7ToCG8NQ0Xtch2uiLW8Xp4apC2qiGHZr8nydOJ09CvjxVVNZSw l3Ww== X-Forwarded-Encrypted: i=1; AJvYcCXtnkpCtxgIyMHEXO/1tCa0shyAwQV2UqilZC1MmTKy1yimQ+6GIZy+vxZupLpM6YG5F9FpAd2kfziriA8fpzZDHUPDusK3lwLEI0He X-Gm-Message-State: AOJu0Yy13CjYNHtY3KJb6/LMZQuIi3VYZ2u+oK1P+ZvwHHk1am1gvG36 vA8SRrTLPVZT614YcW4EznuWZCQvHPHHCNya8V9mZb0f45Vk3KVWBq3JtS9sQA== X-Received: by 2002:a17:90a:9484:b0:29b:2c24:21ff with SMTP id s4-20020a17090a948400b0029b2c2421ffmr16134206pjo.39.1709843749488; Thu, 07 Mar 2024 12:35:49 -0800 (PST) Received: from google.com ([2620:15c:2c5:13:69c0:c447:593d:278c]) by smtp.gmail.com with ESMTPSA id kb12-20020a17090ae7cc00b0029ba8567fd9sm456375pjb.1.2024.03.07.12.35.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 12:35:49 -0800 (PST) Date: Thu, 7 Mar 2024 12:35:44 -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 Thu, Mar 07, 2024 at 10:52:08AM +0100, Niklas Cassel wrote: > 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.) > Ack. I think it makes sense to wait for the John's patch series "Add LIBSAS_SHT_BASE for libsas" to get merged first: https://lore.kernel.org/linux-scsi/20240305122452.340471-1-john.g.garry@oracle.com/T/#t This way John woudn't need to re-do the patches on top of the moved sht. Since the LIBSAS_SHT_BASE reduces the line count the following cleanup patches will have fewer lines changed. > 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 > > > >