public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ata: libata: Advertize device support for DIPM and HIPM features for ATAPI
@ 2026-01-08 14:12 Niklas Cassel
  2026-01-08 14:48 ` Niklas Cassel
  0 siblings, 1 reply; 3+ messages in thread
From: Niklas Cassel @ 2026-01-08 14:12 UTC (permalink / raw)
  To: Damien Le Moal, Niklas Cassel; +Cc: linux-ide

Commit b1f5af54f1f5 ("ata: libata-core: Advertize device support for DIPM
and HIPM features") added prints if the device supports DIPM and HIPM,
however, it forgot to update the same print for ATAPI devices.

Before changes:
ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133

After changes:
ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133 HIPM DIPM

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/ata/libata-core.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index b96105481784..20d539730553 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3143,11 +3143,13 @@ int ata_dev_configure(struct ata_device *dev)
 		/* print device info to dmesg */
 		if (print_info)
 			ata_dev_info(dev,
-				     "ATAPI: %s, %s, max %s%s%s%s\n",
+				     "ATAPI: %s, %s, max %s%s%s%s%s%s\n",
 				     modelbuf, fwrevbuf,
 				     ata_mode_string(xfer_mask),
 				     cdb_intr_string, atapi_an_string,
-				     dma_dir_string);
+				     dma_dir_string,
+				     ata_id_has_hipm(dev->id) ? " HIPM" : "",
+				     ata_id_has_dipm(dev->id) ? " DIPM" : "");
 	}
 
 	/* determine max_sectors */
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ata: libata: Advertize device support for DIPM and HIPM features for ATAPI
  2026-01-08 14:12 [PATCH] ata: libata: Advertize device support for DIPM and HIPM features for ATAPI Niklas Cassel
@ 2026-01-08 14:48 ` Niklas Cassel
  2026-01-08 15:32   ` Damien Le Moal
  0 siblings, 1 reply; 3+ messages in thread
From: Niklas Cassel @ 2026-01-08 14:48 UTC (permalink / raw)
  To: Damien Le Moal; +Cc: linux-ide

On Thu, Jan 08, 2026 at 03:12:34PM +0100, Niklas Cassel wrote:
> Commit b1f5af54f1f5 ("ata: libata-core: Advertize device support for DIPM
> and HIPM features") added prints if the device supports DIPM and HIPM,
> however, it forgot to update the same print for ATAPI devices.
> 
> Before changes:
> ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133
> 
> After changes:
> ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133 HIPM DIPM
> 
> Signed-off-by: Niklas Cassel <cassel@kernel.org>

Don't merge this.
I think I have a nicer way.


Kind regards,
Niklas

> ---
>  drivers/ata/libata-core.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index b96105481784..20d539730553 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -3143,11 +3143,13 @@ int ata_dev_configure(struct ata_device *dev)
>  		/* print device info to dmesg */
>  		if (print_info)
>  			ata_dev_info(dev,
> -				     "ATAPI: %s, %s, max %s%s%s%s\n",
> +				     "ATAPI: %s, %s, max %s%s%s%s%s%s\n",
>  				     modelbuf, fwrevbuf,
>  				     ata_mode_string(xfer_mask),
>  				     cdb_intr_string, atapi_an_string,
> -				     dma_dir_string);
> +				     dma_dir_string,
> +				     ata_id_has_hipm(dev->id) ? " HIPM" : "",
> +				     ata_id_has_dipm(dev->id) ? " DIPM" : "");
>  	}
>  
>  	/* determine max_sectors */
> -- 
> 2.52.0
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ata: libata: Advertize device support for DIPM and HIPM features for ATAPI
  2026-01-08 14:48 ` Niklas Cassel
@ 2026-01-08 15:32   ` Damien Le Moal
  0 siblings, 0 replies; 3+ messages in thread
From: Damien Le Moal @ 2026-01-08 15:32 UTC (permalink / raw)
  To: Niklas Cassel; +Cc: linux-ide

On 1/8/26 15:48, Niklas Cassel wrote:
> On Thu, Jan 08, 2026 at 03:12:34PM +0100, Niklas Cassel wrote:
>> Commit b1f5af54f1f5 ("ata: libata-core: Advertize device support for DIPM
>> and HIPM features") added prints if the device supports DIPM and HIPM,
>> however, it forgot to update the same print for ATAPI devices.
>>
>> Before changes:
>> ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133
>>
>> After changes:
>> ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133 HIPM DIPM
>>
>> Signed-off-by: Niklas Cassel <cassel@kernel.org>
> 
> Don't merge this.
> I think I have a nicer way.

Yeah. Adding a different "Features" message like we have for ATA and ZAC devices
would be better.

-- 
Damien Le Moal
Western Digital Research

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-08 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08 14:12 [PATCH] ata: libata: Advertize device support for DIPM and HIPM features for ATAPI Niklas Cassel
2026-01-08 14:48 ` Niklas Cassel
2026-01-08 15:32   ` Damien Le Moal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox