Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp788423lqs; Tue, 5 Mar 2024 17:25:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXvbpK4Rx21uoXNbBO7j/8jrb9GaUk3v6enls7U24r7F51/gD3S3LjaEd7zyayxD8whVeBSSvhXRAaDhB6U03RuA8/24mTLLwVbgUB1LQ== X-Google-Smtp-Source: AGHT+IFDpAXnmjE0RrXhJ1DeuwOR2hldtQFttJlpU5Qck04g+y3BPD0ahbErDJsQniZfSs+ybaOl X-Received: by 2002:a05:6358:2926:b0:17b:f0c2:a177 with SMTP id y38-20020a056358292600b0017bf0c2a177mr4373751rwb.27.1709688309771; Tue, 05 Mar 2024 17:25:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709688309; cv=pass; d=google.com; s=arc-20160816; b=b/X3Z9uElOYKwrnFINfm79A1/HEV/n+6hJ/Heid+TRSDFHLKC8gJgiVBcMEMT8m1MQ NlcYEKQKG94a72dVT++ognLb/cEQTv6tjpVJ/oeIEI2lnclOm8NpMxfMBPGrl+6pTvo1 aPNSToaIdOHcEvZoRt21BAmtKjr7PF9bPo3JrgMTh+A2DKs43U/QhpwIjbmiiy/A2x0+ u+E7pP7ZQl9D/TRu+olTRzbsjgpXOB1MX4kHofCF3hs/W8WFOP6ILDNlWu/clGpi9N4O RW3WDO/BQRKMeWdfTLrwoPU7aTSBzcmXX19KTDSOfMP63sd6JQiJuIJjrcBJhjsKhDh+ /xVA== 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=iW4+YjuNAKvAoJg+NmQ5C96xY/u5WzV8UruESW/Bs4M=; fh=tpFqZ1pDjQ6E2BhAENZqwZt2zMuHUfRguKRTmnP37l4=; b=mtfnj9z+uJ7jjwQra/5Lm1s0ttr5dk/sCWbIc1rNlqAkgaNyUUQYfkGlMHyccZuvcV XGsB3XWMdSL0kyuve0NzqKvrjzsAx7QXqCZcfzTscmmIxhmdFBDSr+pZDojdADopn8vT DqE3yiu6z3zHVBaDIh5cbVsdel32DtDWFeX1r5Lx0YoNiqq7RjiOwIB5JPnhNtcO2ss8 AJczgPqvZRs1+Y3eBRmgZ8KP9Rzpw0TgdezfcCdq16yBJvaxaOt4qvLicmlzwDWXOLHi p1Ppq/WOgFIXyJheySmZdd/8y7FiqvJQcLnvw8mWNsxWa/CuEgG+HykLUZW/6u+UlEkU ajHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=k8jNQqeK; 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-93196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93196-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 kf3-20020a056214524300b0068f5506c3c1si13222620qvb.171.2024.03.05.17.25.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 17:25:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93196-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=k8jNQqeK; 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-93196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93196-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 7E0BB1C24FE6 for ; Wed, 6 Mar 2024 01:25:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C10C41BDE7; Wed, 6 Mar 2024 01:22:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="k8jNQqeK" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 8159E1B96E for ; Wed, 6 Mar 2024 01:22:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709688167; cv=none; b=ifuFCONqCaKGETPAI3V3S9O61aWJPRVtUA2GPggXtGj6VwCdwgnBNqgaxF+k3UnV7xVE2B1eAyCg8IyskX434MGtwwPjG6fgkVVuUDtOLuMynvwmwx4oE3UvlrowokcSOpWacq6frxy/7wgsBmwGJW9TCDAut/NJVhjJ7FG9Rw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709688167; c=relaxed/simple; bh=ZQgGWVSWytcgK5MJZ6jggoBjQfFJugefhTJSzcVcgYk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=MQvPTq24EpMH0mLjVNSbLuPMWEmLf+WHQS+jGw/u+8piL0IUK0aoyF12a+UBxLUrTF9K++5m7T6gaX4alHRrTmMFmQeJ4qc8W2asL1M0eecrTP1kV2sz7DOu/DLlpCvkriVdhSwhAY4llOVt58MMYkix4n4l0Wl43LSNm9o2zos= 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=k8jNQqeK; arc=none smtp.client-ip=209.85.219.201 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-yb1-f201.google.com with SMTP id 3f1490d57ef6-dbf216080f5so10531995276.1 for ; Tue, 05 Mar 2024 17:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709688164; x=1710292964; 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=iW4+YjuNAKvAoJg+NmQ5C96xY/u5WzV8UruESW/Bs4M=; b=k8jNQqeK7gQKIbzMge/onFNDkBDQoWlKZc9e1Yu5CHgqUsTYSSqY8AvFKi/KUny4DT eopA1+krKRaFD23m9rv6jQF0VejsCHmxr5u0R4oLH64/KmvAcIQjvVSnFCrglueIk5rE +811v4ySFHjV5W/G5zybxXKbGN0RpuM7A38KXr+KiDdgsOLYSVDgsScifR4XuFNE/Ofe fR2HaeDOz1SeyUQvp1ZJTkm1mPCMLLlTWozsmEswBw3jTw0VlgxDspSE6qhgysp/RktO u8X9t2eA4dFH37vUCJ8LIM+t+2ck2ck3LO5L1Yc3Yl86HRj1EiYR+uMWrGhWMAau+QtH BaYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709688164; x=1710292964; 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=iW4+YjuNAKvAoJg+NmQ5C96xY/u5WzV8UruESW/Bs4M=; b=G6g/kq0wJHR3x/brMUnH7HIEzvWlP3dxbVk+UrbnsQi/VWcO3XNRZmOBHADQeNNx/j ECycuclrg059vUfhhy3oWwWyjKaXTyfS+t2yVrA/k53bN0P84hKt1AIgh3SRtr0GI8k4 w3VTALpCBNHPbc8raIOiG0wddUuYr/5ivbTXbNDE0fPcIqvicrVIAPxjoNRY5YR6lIVW LKd+0D2ZhwV98qHLpNU04ncR7hkYQ0v/kuaPfii5gvz9GRbF6XSczothfkUyDIrSvBgN EkgB/oO/eMX0NewJwCE1cVIQJrq5AQ8smxtEmhc6BbzkRFEilSfBa1FHTfzKvz6Y+sw7 6Qhg== X-Forwarded-Encrypted: i=1; AJvYcCUIAciyGJtIuw6qcpEQDiJinf0iy9f0XatD5zn7XkHlGMDmLc3pPwooNWNrUkIDQY3eSmwrNbfLSdZAgqpG4C4GL0NhqySzdt0T4pvP X-Gm-Message-State: AOJu0YwnNpviDxYHBgVL4FtwYSablv4XFWJ262cMgnfw+wKtZHng/FIG i9l329F2cEoWK23+YYoV48gq6+a0bylgW3wjijomLHQ5BspRtrjb8aP70ek0UN/3CIEKgF4dAwJ uRsAa9gDWnA== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69ff:df2c:aa81:7b74]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:728:b0:dc2:1f34:fac4 with SMTP id l8-20020a056902072800b00dc21f34fac4mr3554574ybt.2.1709688164688; Tue, 05 Mar 2024 17:22:44 -0800 (PST) Date: Tue, 5 Mar 2024 17:22:26 -0800 In-Reply-To: <20240306012226.3398927-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: <20240306012226.3398927-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240306012226.3398927-8-ipylypiv@google.com> Subject: [PATCH v7 7/7] scsi: isci: 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 Reviewed-by: Jason Yan Signed-off-by: Igor Pylypiv --- drivers/scsi/isci/init.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index 6277162a028b..8658dcd61b87 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c @@ -149,6 +149,11 @@ static struct attribute *isci_host_attrs[] = { ATTRIBUTE_GROUPS(isci_host); +static const struct attribute_group *isci_sdev_groups[] = { + &sas_ata_sdev_attr_group, + NULL +}; + static const struct scsi_host_template isci_sht = { .module = THIS_MODULE, @@ -176,6 +181,7 @@ static const struct scsi_host_template isci_sht = { .compat_ioctl = sas_ioctl, #endif .shost_groups = isci_host_groups, + .sdev_groups = isci_sdev_groups, .track_queue_depth = 1, }; -- 2.44.0.278.ge034bb2e1d-goog