Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1037737lqg; Sat, 2 Mar 2024 12:18:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVOPQaKCXSWpMdxPT2V2zgQ64CzUoiwKgFWLJk2hRSAlBNz4xu7QcdcFuoH6Ak798lNu2chNdL/++HYEWckKVYPaoCWOARbQLn1RkhQQ== X-Google-Smtp-Source: AGHT+IGazjMBm96p4DofxXp8n6P7ox3VE/bPq4uxXqBNGSa8ikyG1bv1CVjy4C41Z8zQygnzEQ3x X-Received: by 2002:a05:6214:10c9:b0:690:5745:5b38 with SMTP id r9-20020a05621410c900b0069057455b38mr5497049qvs.51.1709410717800; Sat, 02 Mar 2024 12:18:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709410717; cv=pass; d=google.com; s=arc-20160816; b=tT74mhJ1OqbrnA/P6f+qIqQXgsOrWsD7dbmr/TKEnsdnKj7j77Os5GCTfu6ShytPep mxmWNn8teqWfPzvfWOhlrP1e9uwDLEITEzatRwOZhnZixo/0DaJqPniUiwuMe7mGo1KL /mhDZgVJOIs7TdUS/Ot3vppeqvGEfGLt+05Sh0CvFBB+5oDGUKwuVLTggk9yta1lZcNE XnzJvbiPPI2q07Cs+th9PdpTuME7vQz58khW/jp0WfV4p9kc3yjZKL5/2bjpnLwflESV HS8zw7+bMniIxgVTi1iUH4oq1sOKkxpLFEDPAMoruuX2En7T4oRzzctZWVo/DL1y+sie mz7w== 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=6eLIO8kHvIyF+nVEO24K/+ffrh7ExfG12XLwVuO+HAI=; fh=w5AAxnLnmBYQnMnAnLzrxm46kOiGsisBku2VQ+LTre4=; b=rIRypINQvCsA5t7hpI7nfTkZ3ytPysGJlazASknwg/6L9NfX5vCXtUXNdxsh+qWTPj GfHBhqNubJlNyjPvSocrbP+JqjyED2omRppciuwQKzQLrszbrXCcczPUjFaaTgmTtCT2 gfnNUL7E4QxYw4Zz4hx0ywxuxpEVEOd/sf8NBE0DluWJZWAJcrQLxotppICxzXhD2Z6N QPflbIJRI9wFRrdR+2YMmc/I5LxV8idXtXFxODAxbCkQtXD9igZB3RW9QAY0Cs67ylgZ ZG39xpfF3HQ3Fv5IYbGiyns8FlACa+7uc1UUvcHBQ7mRmGzUAPXyYseAtKLTqaPSauTv yKsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ku3hPp3S; 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-89584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89584-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 gw9-20020a0562140f0900b0068f2eed8e0esi6277751qvb.287.2024.03.02.12.18.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 12:18:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89584-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=ku3hPp3S; 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-89584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89584-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 7EDF41C20E7D for ; Sat, 2 Mar 2024 20:18:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAB864AEE3; Sat, 2 Mar 2024 20:17:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ku3hPp3S" 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 236A446535 for ; Sat, 2 Mar 2024 20:17:02 +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=1709410625; cv=none; b=Q9ZyD9x4ajCgxQTrc9kGxFZZrzt34iBHik/58iXbFA8gyqLYn4NBrEof5ElhT/EAljbvRXHRnpy1/VcVBLS01doQOal6XHayyKD1/JxPbrGCqKEQC8stO59sbiEYs4XAqGS8/Eq5HxLqEbzVF9iSpLR1Rb3X+6bMM7bdzV9rFc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709410625; c=relaxed/simple; bh=NmBOqWZxMsasMb5PgbvxyvjHON2/Pw2TXxQ33JzQhZE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Z8pZP8NIXDQYemHt/ZnFeWEAuxBUY3wu6THWkU2KhBUr09dcnIzGR+hDsnUae3Zoma0tK/w0DEI8aZaUJYgqu4frUgew4nvykezxCY26t9rRlfbzaiwP70ZbI8ieop3lwHTmnq1jsP3/HxgUqK85J1tql9PQkowCK7YjzWiRNls= 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=ku3hPp3S; 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-607e56f7200so30787327b3.2 for ; Sat, 02 Mar 2024 12:17:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709410622; x=1710015422; 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=6eLIO8kHvIyF+nVEO24K/+ffrh7ExfG12XLwVuO+HAI=; b=ku3hPp3Sq6hCgHmpghYtwwY9SLbxMKkDaVnD5/m6bFHMPGCv3kEhjELXhOg6Z6vopB hQfj7P/mye80iGn1PK66WNz3vq0cQ+msBnGEAZX+mDFPCBqqGCyZARKXgPdNvkCAFic+ Fn/Zq6bB/yar9vMn16Uo1BACsD168wmkXQu9gXOhpRX+GQjvk0C2D8pqhF8C1T4AxCPO 2n/4333sL6x6O1FPyDJYfwpdk+a/96h+1Ft7s8JtTUNUJKG73wqzJAJOdhK7RdQu13vi LIdMgPnyxV4aifLm4c3DzE+BgWNec3PUT7vx3ipfWuH5dhP7NaLf+9obVBvwiYWpWd/f lsAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709410622; x=1710015422; 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=6eLIO8kHvIyF+nVEO24K/+ffrh7ExfG12XLwVuO+HAI=; b=SATeh5dGWClYVc6Q5EganeGsw4HQ1blnERtWUqZ8jHNaZi0yoUVON6xVwbhGT+DvTU Xv3ya+MUPPSOynqgPV/Mk4ioRqsarjGr3mB9ct4x76GjV3M4ZQCkTCj8aG+78IIurFiv WWJszxX9/gNFjFle3Km+7cDXZJJviQ5ssfb02CLt44XYq8a/bT9MDQEL6N56TKInpIwz AtVJZ3tck9pyPpnMGt+/UxNkX9FgGECQNlW7e1HXVBKaKXheA6o2uCW0P3RU0YuN2buv K3/f0Y9JFejo3g3zJUTpoNnvV12zWO8NKtO7RhXQnusuALqMAeODhu/iC4lH0mctpG5q ltbg== X-Forwarded-Encrypted: i=1; AJvYcCUsQX/T3E+xKxRedL19Il6JJ2o0N6Zgwame/Tp7LGhhtXxu/V0Y0TUfscQGEa7ialaX5U/52PQHSTnYqC6uFSolIQT6gSm7+WRmPe2k X-Gm-Message-State: AOJu0Yx1cBOrAgPWu/WGbdoV1ZsfV++YOM2IpXtfDFb3c9tW979DRi/O RN1dSjBVxc4i/StlNBEKiTm/BiS4+ZLLthCwXz6ndAyH4eadRdEWClPBqQfdDbuiFwLCU/4yHe/ NfAEBkVERmQ== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:41a7:9019:9a7:b404]) (user=ipylypiv job=sendgmr) by 2002:a81:9950:0:b0:609:4d6f:7c0b with SMTP id q77-20020a819950000000b006094d6f7c0bmr1094668ywg.4.1709410622201; Sat, 02 Mar 2024 12:17:02 -0800 (PST) Date: Sat, 2 Mar 2024 12:16:35 -0800 In-Reply-To: <20240302201636.1228331-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: <20240302201636.1228331-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240302201636.1228331-7-ipylypiv@google.com> Subject: [PATCH v3 6/7] scsi: aic94xx: 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. Signed-off-by: Igor Pylypiv --- drivers/scsi/aic94xx/aic94xx_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c index 8a3340d8d7ad..ccccd0eb6275 100644 --- a/drivers/scsi/aic94xx/aic94xx_init.c +++ b/drivers/scsi/aic94xx/aic94xx_init.c @@ -14,6 +14,7 @@ #include #include +#include #include #include "aic94xx.h" @@ -34,6 +35,7 @@ MODULE_PARM_DESC(use_msi, "\n" static struct scsi_transport_template *aic94xx_transport_template; static int asd_scan_finished(struct Scsi_Host *, unsigned long); static void asd_scan_start(struct Scsi_Host *); +static const struct attribute_group *asd_sdev_groups[]; static const struct scsi_host_template aic94xx_sht = { .module = THIS_MODULE, @@ -60,6 +62,7 @@ static const struct scsi_host_template aic94xx_sht = { .compat_ioctl = sas_ioctl, #endif .track_queue_depth = 1, + .sdev_groups = asd_sdev_groups, }; static int asd_map_memio(struct asd_ha_struct *asd_ha) @@ -951,6 +954,11 @@ static void asd_remove_driver_attrs(struct device_driver *driver) driver_remove_file(driver, &driver_attr_version); } +static const struct attribute_group *asd_sdev_groups[] = { + &sas_ata_sdev_attr_group, + NULL +}; + static struct sas_domain_function_template aic94xx_transport_functions = { .lldd_dev_found = asd_dev_found, .lldd_dev_gone = asd_dev_gone, -- 2.44.0.278.ge034bb2e1d-goog