Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2228532/?format=api
{ "id": 2228532, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2228532/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260426190920.2051289-6-philpem@philpem.me.uk/", "project": { "id": 13, "url": "http://patchwork.ozlabs.org/api/1.2/projects/13/?format=api", "name": "Linux IDE development", "link_name": "linux-ide", "list_id": "linux-ide.vger.kernel.org", "list_email": "linux-ide@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260426190920.2051289-6-philpem@philpem.me.uk>", "list_archive_url": null, "date": "2026-04-26T19:09:18", "name": "[v3,5/7] ata: libata-scsi: probe additional LUNs for multi-LUN ATAPI devices", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7f435203dc0b39bd18037f3cef1685c6d729e87a", "submitter": { "id": 93108, "url": "http://patchwork.ozlabs.org/api/1.2/people/93108/?format=api", "name": "Phil Pemberton", "email": "philpem@philpem.me.uk" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260426190920.2051289-6-philpem@philpem.me.uk/mbox/", "series": [ { "id": 501551, "url": "http://patchwork.ozlabs.org/api/1.2/series/501551/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ide/list/?series=501551", "date": "2026-04-26T19:09:18", "name": "ata: libata-scsi: multi-LUN ATAPI device support", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/501551/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228532/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228532/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-ide+bounces-5541-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-ide@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=philpem.me.uk header.i=@philpem.me.uk\n header.a=rsa-sha256 header.s=mail header.b=L8ZQ32ym;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ide+bounces-5541-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=philpem.me.uk header.i=@philpem.me.uk\n header.b=\"L8ZQ32ym\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=178.62.38.78", "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=philpem.me.uk", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=philpem.me.uk" ], "Received": [ "from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g3br409Xtz1yHg\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 05:10:27 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 0F5E0300617C\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 19:10:04 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 2838237F8BD;\n\tSun, 26 Apr 2026 19:09:44 +0000 (UTC)", "from nick.sneptech.io (nick.sneptech.io [178.62.38.78])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EC3B37C108;\n\tSun, 26 Apr 2026 19:09:39 +0000 (UTC)", "from wolf.philpem.me.uk (81-187-163-148.ip4.reverse-dns.uk\n [81.187.163.148])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits))\n\t(No client certificate requested)\n\t(Authenticated sender: mailrelay_wolf@philpem.me.uk)\n\tby nick.sneptech.io (Postfix) with ESMTPSA id 97685BEFF0;\n\tSun, 26 Apr 2026 19:09:29 +0000 (UTC)", "from cheetah.homenet.philpem.me.uk (cheetah.homenet.philpem.me.uk\n [10.0.0.32])\n\tby wolf.philpem.me.uk (Postfix) with ESMTPSA id 3D11B5FC57;\n\tSun, 26 Apr 2026 20:09:29 +0100 (BST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777230584; cv=none;\n b=jzXwBuUA54OrG6m3B+2eZ/xZNxtSLgXr8WBI/1p8VHq7/YvRCiR16aM2TfGnfaioJg306HV3qEIStiI7JxNdoAh9aCobQCRNzaV2qp/TmRGG4PpXwsjJK5krT0VV8SRsbu72R2bAGH7TI/JyZlUhFEQrB7H8LUrR5NCKuCMTehI=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777230584; c=relaxed/simple;\n\tbh=FbOQbJbQwX4HDdjMy+Pjy5LUOfdit7DkdhbmA+zqbrU=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=YrPirjxbwf9YwJRuJoU1fOMRAqhmfZq11j/5TTGQUjko2b9NCMJtkhGKotYC7kFSTXCNT923DRnQpJUzm7vsws09oQ9EoXmZN4tXRGWv/yJIo7dBNdK6G5PDEvayuZ/FBzHr+bzLYiPS5MIX/U183XpSC70VvP6kASbRLW7H5uw=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=philpem.me.uk;\n spf=pass smtp.mailfrom=philpem.me.uk;\n dkim=pass (1024-bit key) header.d=philpem.me.uk header.i=@philpem.me.uk\n header.b=L8ZQ32ym; arc=none smtp.client-ip=178.62.38.78", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=philpem.me.uk;\n\ts=mail; t=1777230569;\n\tbh=FbOQbJbQwX4HDdjMy+Pjy5LUOfdit7DkdhbmA+zqbrU=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=L8ZQ32ymQlEQnhuznZm29yzzZW4HpgcblUouHGtSHEc1+TXUUA5AosQVmOYOIvrX/\n\t qsRFVRpQYnHZ9K7Q7eHuKLQ6BLLRWJEIzZ6HuNcju5AZL8lC6sHO6K+csQ4yksSTtC\n\t EGrhS8r8FwVf7/OblpJ6friOPq4A97OL7HTpbgUA=", "From": "Phil Pemberton <philpem@philpem.me.uk>", "To": "linux-ide@vger.kernel.org,\n\tlinux-scsi@vger.kernel.org", "Cc": "linux-kernel@vger.kernel.org,\n\tDamien Le Moal <dlemoal@kernel.org>,\n\tNiklas Cassel <cassel@kernel.org>,\n\t\"James E . J . Bottomley\" <James.Bottomley@HansenPartnership.com>,\n\t\"Martin K . Petersen\" <martin.petersen@oracle.com>,\n\tHannes Reinecke <hare@suse.de>,\n\tPhil Pemberton <philpem@philpem.me.uk>", "Subject": "[PATCH v3 5/7] ata: libata-scsi: probe additional LUNs for multi-LUN\n ATAPI devices", "Date": "Sun, 26 Apr 2026 20:09:18 +0100", "Message-ID": "<20260426190920.2051289-6-philpem@philpem.me.uk>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260426190920.2051289-1-philpem@philpem.me.uk>", "References": "<20260426190920.2051289-1-philpem@philpem.me.uk>", "Precedence": "bulk", "X-Mailing-List": "linux-ide@vger.kernel.org", "List-Id": "<linux-ide.vger.kernel.org>", "List-Subscribe": "<mailto:linux-ide+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-ide+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "After LUN 0 is added for an ATAPI device, check its BLIST_FORCELUN\nflag. If set, call scsi_scan_target() with SCAN_WILD_CARD to trigger\nthe SCSI layer's built-in sequential LUN scan for that target only.\nThis probes LUNs 1..shost->max_lun, driven by the atapi_max_lun module\nparameter from patch 1/6. Devices without BLIST_FORCELUN (the vast\nmajority of ATAPI devices) are left with only LUN 0 -- no sequential\nscan is triggered, so single-LUN devices like the iHAS124 DVD writer\nare completely unaffected.\n\nNon-responding LUNs (PQ=0/PDT=0x1f) are silently skipped by\nscsi_probe_and_add_lun() when BLIST_NO_LUN_1F is set on the device\nvia scsi_devinfo (see patch 4/6).\n\nSigned-off-by: Phil Pemberton <philpem@philpem.me.uk>\n---\n drivers/ata/libata-scsi.c | 37 ++++++++++++++++++++++++++++---------\n 1 file changed, 28 insertions(+), 9 deletions(-)", "diff": "diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c\nindex 48c7d323d6f9..fc719e3d7d60 100644\n--- a/drivers/ata/libata-scsi.c\n+++ b/drivers/ata/libata-scsi.c\n@@ -26,6 +26,7 @@\n #include <scsi/scsi_device.h>\n #include <scsi/scsi_tcq.h>\n #include <scsi/scsi_transport.h>\n+#include <scsi/scsi_devinfo.h>\n #include <linux/libata.h>\n #include <linux/hdreg.h>\n #include <linux/uaccess.h>\n@@ -4700,7 +4701,6 @@ void ata_scsi_scan_host(struct ata_port *ap, int sync)\n repeat:\n \tata_for_each_link(link, ap, EDGE) {\n \t\tata_for_each_dev(dev, link, ENABLED) {\n-\t\t\tstruct scsi_device *sdev;\n \t\t\tint channel = 0, id = 0;\n \n \t\t\tif (dev->sdev[0])\n@@ -4711,15 +4711,34 @@ void ata_scsi_scan_host(struct ata_port *ap, int sync)\n \t\t\telse\n \t\t\t\tchannel = link->pmp;\n \n-\t\t\tsdev = __scsi_add_device(ap->scsi_host, channel, id, 0,\n-\t\t\t\t\t\t NULL);\n-\t\t\tif (!IS_ERR(sdev)) {\n-\t\t\t\tdev->sdev[0] = sdev;\n-\t\t\t\tata_scsi_assign_ofnode(dev, ap);\n-\t\t\t\tscsi_device_put(sdev);\n-\t\t\t} else {\n-\t\t\t\tdev->sdev[0] = NULL;\n+\t\t\t{\n+\t\t\t\tstruct scsi_device *sdev;\n+\n+\t\t\t\tsdev = __scsi_add_device(ap->scsi_host,\n+\t\t\t\t\t\t\t channel, id, 0, NULL);\n+\t\t\t\tif (!IS_ERR(sdev)) {\n+\t\t\t\t\t/*\n+\t\t\t\t\t * For multi-LUN ATAPI (BLIST_FORCELUN),\n+\t\t\t\t\t * trigger the sequential LUN scan.\n+\t\t\t\t\t * pdt_1f_for_no_lun (set during LUN 0\n+\t\t\t\t\t * configure) ensures non-responding LUNs\n+\t\t\t\t\t * are silently skipped. dev->sdev[] is\n+\t\t\t\t\t * populated by ata_scsi_dev_config()\n+\t\t\t\t\t * during the scan callbacks.\n+\t\t\t\t\t */\n+\t\t\t\t\tif (dev->class == ATA_DEV_ATAPI &&\n+\t\t\t\t\t sdev->sdev_bflags & BLIST_FORCELUN)\n+\t\t\t\t\t\tscsi_scan_target(\n+\t\t\t\t\t\t\t&ap->scsi_host->shost_gendev,\n+\t\t\t\t\t\t\tchannel, id,\n+\t\t\t\t\t\t\tSCAN_WILD_CARD,\n+\t\t\t\t\t\t\tSCSI_SCAN_RESCAN);\n+\t\t\t\t\tscsi_device_put(sdev);\n+\t\t\t\t}\n \t\t\t}\n+\n+\t\t\tif (dev->sdev[0])\n+\t\t\t\tata_scsi_assign_ofnode(dev, ap);\n \t\t}\n \t}\n \n", "prefixes": [ "v3", "5/7" ] }