Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp985511lqs; Wed, 6 Mar 2024 02:55:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXyoPO1sMQmPCvPUMPCTYN2EwikuJDKZDcLerZ/8b86EiD6xs5wDH3szCInlotCb1WnuwXBydRaYlifVX/a5YoDLi8QtArl3LaLX2MGDQ== X-Google-Smtp-Source: AGHT+IEeJxm6KBx0c708SKkAJ3Y5h2QuaYaew/DP08O3m0zsZdUd3S/JWtuDMvcs8xF703MZgqmp X-Received: by 2002:a05:6a00:9283:b0:6e6:4705:a081 with SMTP id jw3-20020a056a00928300b006e64705a081mr3915443pfb.33.1709722558140; Wed, 06 Mar 2024 02:55:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709722558; cv=pass; d=google.com; s=arc-20160816; b=URYxTbKuJ77q+gtfEYx+MUqapOPu0Ty8kVdg5Ug0+qllJ9cWwVJ9HsLaO0kKlddzed ny20Kw9M3CBVO2XDJfCCdjKt/rNJYRAXD/l0opCuPgD3T/D8gQq/BpNMR9et7gB+Jd6E b1odTXUGutp9hkFr0XKOUZHzjFxFsgMS+s4qoV1Az/8MDNWbQsJvHv2JhY6WIEaURYTl bUMsR4nQQyLyPFxYUDhLnE7+F85zwXzzBgq2E5DGnvuTVXH3KMAdyKT5JXLGDh26nEU/ dx8qsKvSMldct+dzAE6X26izJDQHnUXeLYHbsnPy8xx/oxteNFKYp88MIAKj6GG6DABl aB+g== 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=4SdhZPHRV5rktpcoH/QqhJL0t8Sk/E1d4g+7J1sbC/4=; fh=W60HtGL9hGQNTbdbZJWgObGx9Rsft1WRLeze1D5eINA=; b=CFjcFGXQnvfn2ee0vv7Qwp/DD6KMDJfDkqIEimPB9+BAr6Aa4RcW1Q8fBKkNz2UW7h X12Udrt163FB/sndnam3rXwrY0xy87zEJubiaYBrpB+31QNytitvfQOfEFHgiMkRCgcv XzRXM6K9UvrwbmwDDISTtRqcgvvxiGLMBGypfykost22wdTg1gMFcFQZPyty/QkKmyz0 K0zl1r+PWIHDrHD3UuGTsR1Q72lWPMa/PhkqySE+4/+2FfOL4nxoYFZVSngL+uOOy0sg +2TR6jPUoActEuLo2wvBMfl18tTJ0TvmvS1VSc+03UXOndC/Q5cK5DqKQIghOKpYdAko nZzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9iRPm0I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-93812-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93812-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 198-20020a6302cf000000b005e485fc4266si11555288pgc.388.2024.03.06.02.55.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 02:55:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93812-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9iRPm0I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-93812-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93812-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 CCF96289EAB for ; Wed, 6 Mar 2024 10:55:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6252275818; Wed, 6 Mar 2024 10:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S9iRPm0I" 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 DE1E87316E; Wed, 6 Mar 2024 10:55:12 +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=1709722513; cv=none; b=C1YMnh/gylrMy0HoYhorzcmfvTnJZ+ivCOTvrclPSFlpliHil9uCT4kdvU0f+rAHJ1e3IkK9S+H+X1/thUidHNYwupX+CloN42Awfkg4cmCrZaIP3GJndZr0Lpn++qSFvOORn5QawQvP076GjmofJlREwn4maczWFaBr6WbBGBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722513; c=relaxed/simple; bh=lzg4Pu+UfxsSSljft+0gBcLjz5gReuqDgoJRJcpkTpc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Avm1PglzQXYRI8tFB49dpDFQIr7zBOh8sjTqOQP5NyAAF/g2dOXoe38Sce/hkr2Cdpv2Eu089RA3HwyaNYMWtnZ1/B+x9qzuQCGtQapmU0AXUhWE9JPr2eAjwT6vm34Yb/9OcbJx9P1z6zS5zdxWy6XiiOXcfjkGci0LRXVcB4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S9iRPm0I; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C085C433F1; Wed, 6 Mar 2024 10:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709722512; bh=lzg4Pu+UfxsSSljft+0gBcLjz5gReuqDgoJRJcpkTpc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S9iRPm0I1w6hnJJ3QQiY8cZxwkr/IMuCyQ6JpM3gDLV0L3MEANC2fu6/x7cQoQ1Bs D+MTi1srK+hHGV0MJ+TnkKmvpKr9/Mhzy5eay+lDWwuzrh8P/lWD3JscSqtFS989fX 2qfobNiiO8JGL3ATn7d0uQBrlpYnvG/2xCJv8EGBc0a7MfYjj9j6GkXEyvfvHVim8U A7RanepozCVFo9r7d3jh+X7Z38VYJ+R1QlM1fdIwfOt3O3YuGwJYkrqQdpeyffQL1C cKBWLhvgVfJbmCK0c4CuNqRAMbFhsWiYgVvQTeRmGCj6sXcA85vduEIgY2XEoWM3KU fsWsiOZk1Ic9A== Date: Wed, 6 Mar 2024 11:55:06 +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, Jack Wang Subject: Re: [PATCH v7 3/7] scsi: pm80xx: Add libsas SATA sysfs attributes group Message-ID: References: <20240306012226.3398927-1-ipylypiv@google.com> <20240306012226.3398927-4-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-4-ipylypiv@google.com> On Tue, Mar 05, 2024 at 05:22:22PM -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. > > Acked-by: Jack Wang > Reviewed-by: John Garry > Reviewed-by: Damien Le Moal > Reviewed-by: Jason Yan > Signed-off-by: Igor Pylypiv > --- > drivers/scsi/pm8001/pm8001_ctl.c | 5 +++++ > drivers/scsi/pm8001/pm8001_init.c | 1 + > drivers/scsi/pm8001/pm8001_sas.h | 1 + > 3 files changed, 7 insertions(+) > > diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c > index 5c26a13ffbd2..9ffe1a868d0f 100644 > --- a/drivers/scsi/pm8001/pm8001_ctl.c > +++ b/drivers/scsi/pm8001/pm8001_ctl.c > @@ -1039,3 +1039,8 @@ const struct attribute_group *pm8001_host_groups[] = { > &pm8001_host_attr_group, > NULL > }; > + > +const struct attribute_group *pm8001_sdev_groups[] = { > + &sas_ata_sdev_attr_group, > + NULL > +}; > diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c > index ed6b7d954dda..e6b1108f6117 100644 > --- a/drivers/scsi/pm8001/pm8001_init.c > +++ b/drivers/scsi/pm8001/pm8001_init.c > @@ -134,6 +134,7 @@ static const struct scsi_host_template pm8001_sht = { > .compat_ioctl = sas_ioctl, > #endif > .shost_groups = pm8001_host_groups, > + .sdev_groups = pm8001_sdev_groups, > .track_queue_depth = 1, > .cmd_per_lun = 32, > .map_queues = pm8001_map_queues, > diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h > index 3ccb7371902f..ced6721380a8 100644 > --- a/drivers/scsi/pm8001/pm8001_sas.h > +++ b/drivers/scsi/pm8001/pm8001_sas.h > @@ -717,6 +717,7 @@ int pm80xx_fatal_errors(struct pm8001_hba_info *pm8001_ha); > void pm8001_free_dev(struct pm8001_device *pm8001_dev); > /* ctl shared API */ > extern const struct attribute_group *pm8001_host_groups[]; > +extern const struct attribute_group *pm8001_sdev_groups[]; > > #define PM8001_INVALID_TAG ((u32)-1) > > -- > 2.44.0.278.ge034bb2e1d-goog > Reviewed-by: Niklas Cassel