Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp100058lqs; Mon, 4 Mar 2024 16:52:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKueF/KT4rprJZdQBwksYwjyUOflHEyFfmV00PuQ7q2wyKlEl9OWn61wwZGM1d0VCspFV5YJY2QEB698Bwd/75xX72jM48l/5BAdPhjw== X-Google-Smtp-Source: AGHT+IFeDCj69Ui6OxyCvt6JDoG4zlu8+T6SJlLuB1Sd2nqYDz+RQQJkLBrPJu0d3uvZZc3IILiA X-Received: by 2002:ad4:4eef:0:b0:690:2139:b50e with SMTP id dv15-20020ad44eef000000b006902139b50emr975581qvb.18.1709599944583; Mon, 04 Mar 2024 16:52:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709599944; cv=pass; d=google.com; s=arc-20160816; b=OFP9J1UyjLZIWRV2YrEKQia0cTGwvCVQRoIGrzw7gynOnCkTeJebkuMhZgPdSj1445 7DiVaHCsTb6HcceFwEwECshUzRtGdtzzrKzDfjAwlXQKkuRUo9DlOzrIg/uhdXhlruLi nxD4vQf3zJoPfpO740CJZ51s7Q0mxzwS6FdS/C1oYoyWlTwrm1G5caTYEjCTT5QCSWE0 g3G8859WMTKCmnHflZw17UeJs2II/Sy0x3R84vy/mIRFfwlVmKEuA5irSju3Zl39N0Dy F5ctn4Vgx2XFV4havcWPT1VvX/X1Duk7i5Mnxw7caMA99VSCcqEWtC7Jcf5qukd9aZbW 4Hww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=qnc29GOaNlgSeW09Vh8SN3Fp8isMCFvcbYSFbDWlfBM=; fh=Pvf++1+sjv+lE83bBQ4RO7sdSBw2BBojPfqIhXFmLP8=; b=loTFGjZRtlG/RvdLGWJ64SGQYNyDI4K1iBykEMYJpr9CXTzF360QDqpPrGF6586mYx 5Wmr34pwrE3N4hEMLcVmLeicOVbHZjK1NTaMhp6oywegRx0KHQrQdxiX9ynyKzFaFyjv BFNCZcPe91L4gqISGnBNzRI+h8sACjMet3FaOF0Ra1f0qcAVaR12OMmgNdipTVUzAifN SfTtINOODpgziOv9w9c5tSReyOnTQku8MU9kdB4mgKu00rjaJjjzBmEAGPwf6oGM1WR5 +4ynlW3Bow3mhYwqvD4C4FnRxNVEUW5VyigiRmWMSDdk/IC4ggoc8X3GT5rf0wVWmoEp wAHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=oxGUfsj+; arc=pass (i=1 spf=pass spfdomain=flex--ipylypiv.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-91474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a9-20020a05622a02c900b0042ef762448asi2386776qtx.552.2024.03.04.16.52.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 16:52:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91474-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=pass header.i=@google.com header.s=20230601 header.b=oxGUfsj+; arc=pass (i=1 spf=pass spfdomain=flex--ipylypiv.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-91474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91474-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4C86F1C225B1 for ; Tue, 5 Mar 2024 00:52:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 320EB8BFB; Tue, 5 Mar 2024 00:51:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="oxGUfsj+" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 A62C0FBFC for ; Tue, 5 Mar 2024 00:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709599879; cv=none; b=Ee+gwz++Gji+b2veFBaivq6rvThrMFcABNTf+JD6fUS3ut/grsELJhc4RtTLt2Kg825hdRE7pOl80Arw2hM6HNudDJabrnxv1OvYO9pSJ+VUkbSd44sCT0rb7cl9Rw5aHpto7/Y5KSXn9BRJc8pt4VXYU8Nf3yuoHzh+q6HMas8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709599879; c=relaxed/simple; bh=aLtlNr+1l6B3hxzUR9P9kYxIKT0n3xMBf3jWVQlgYvU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=uBwWz4zB6xLTKFdfa+WMeoK/bpFjBMY6secjcbcbdvCmjJErSfUwRiYBIG6OkyMml/t4w0GsjPffn4z/+NSMZk6PYKgCQxuIBcHGuj2vfnlprF3gDZFL1p5HID7yxd9y2VvfAmy9E9PTb+9WiCGQxAn8Jx7CDzU8SzPj52NDDSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=oxGUfsj+; arc=none smtp.client-ip=209.85.128.202 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=flex--ipylypiv.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-608ab197437so79596257b3.1 for ; Mon, 04 Mar 2024 16:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709599876; x=1710204676; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=qnc29GOaNlgSeW09Vh8SN3Fp8isMCFvcbYSFbDWlfBM=; b=oxGUfsj+QYXgE92OqVw+J7XKAvJJxIWlBczs0LmObEqvHI6GaHZDaO23wfXpIZ6gVh 3w7hiAMtU2YEP5KVl/BmOS/Cf7AevdMlqD9estfdBJYOzlJu7PIDz+GP0VcxkVp6WWWf Bx0kNiisaeBo3bAFC6amsEvNfqu3T27E5ECbIPR9iDseoQmYhyg6UM84o7Vj9Mfk3PAb IAwXSWWe/LZ+YDeNOfI7viycluTff1IhK0UsBDq5eFAsM5GG2mMVik1z/+Z5W12nyLjX NSQMTQ236q36ld7Fb1s5lNQO9XxWkbb6DyK0kBxYCgnbumhT5eOEtKT1sQ+ExzSqte07 fh0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709599876; x=1710204676; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qnc29GOaNlgSeW09Vh8SN3Fp8isMCFvcbYSFbDWlfBM=; b=Aa6pPn4+u1YN1SGpBGeBJ8TNKX4YybIhGq62VeLnfpAZR85DNoqEo4Ov62Aw8Ktm1M A9PRiOwivXb3eQnp3CJ6BjMHCBfAjWj6pWYCXCRdc696IqcSeE8ptqmDHqQ66RVxBD/O AnPpjVX7+snGgscDxW8KC/A/Rb00tFBGV9BDSrwaZywTBCETnzLswDF4kv5ZJVAzSUuT tFz8DncEZAr21pgV+pO0UW9nxkWS+OZgYPe3/uqQLzg89pTn6BbVm4Ai3Y4kCU2g5Xwf WHbZJrRsozCHooPr6zFgmPLwN+c6qDUOSpgdZIQCi8E1KWiE9JTAGL/m9bKqAE6HeDjf oNVw== X-Forwarded-Encrypted: i=1; AJvYcCW/n1SrxSPcj/nqChxnrvfAiYmRMyP3Y4Rt21Nk6wfC+8sQ0StanraJET6Qvs2KIDJjMqLcRVP9fvr1tQeqpWWYGHYElrRR4213yAUw X-Gm-Message-State: AOJu0Yw4URM1sBt7jE/gpwKxrK3EjE26GaD6U4GqL3Nc97TkYolv16bL P9nl5SA29hGU8HdXl1Y4JcSud+mGZyQSRPQwTlTNODz/FD9TEnsX0hmMt0rB3xWx43IF5Lopxyj JkgrqIKRsWA== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:e901:e760:20cd:d870]) (user=ipylypiv job=sendgmr) by 2002:a05:690c:fcd:b0:609:33af:cca8 with SMTP id dg13-20020a05690c0fcd00b0060933afcca8mr3011166ywb.2.1709599875824; Mon, 04 Mar 2024 16:51:15 -0800 (PST) Date: Mon, 4 Mar 2024 16:51:00 -0800 In-Reply-To: <20240305005103.1849325-1-ipylypiv@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240305005103.1849325-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240305005103.1849325-5-ipylypiv@google.com> Subject: [PATCH v5 4/7] scsi: mvsas: Add libsas SATA sysfs attributes group From: Igor Pylypiv To: Damien Le Moal , Niklas Cassel , John Garry , Jason Yan , "James E.J. Bottomley" , "Martin K. Petersen" , Jack Wang , Hannes Reinecke , Xiang Chen , Artur Paszkiewicz , Bart Van Assche Cc: TJ Adams , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Pylypiv Content-Type: text/plain; charset="UTF-8" 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 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[]; #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 +}; + module_init(mvs_init); module_exit(mvs_exit); -- 2.44.0.278.ge034bb2e1d-goog