From patchwork Wed Jul 24 05:45:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 1964120 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=bIp3kNT+; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.48.161; helo=sy.mirrors.kernel.org; envelope-from=linux-ide+bounces-1947-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [147.75.48.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WTNKQ4XGZz1yXp for ; Wed, 24 Jul 2024 15:45:46 +1000 (AEST) 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E2919B2347F for ; Wed, 24 Jul 2024 05:45:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FB392C181; Wed, 24 Jul 2024 05:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bIp3kNT+" X-Original-To: linux-ide@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E5C55695 for ; Wed, 24 Jul 2024 05:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721799941; cv=none; b=P//jZKpYvyGV88ZTQKF53KW0XpflMeFmWbNaYkVMwjXW6854U8Cv0s61GgzuV3Tc74N7RI667oGnUujWH3Y8xEjlTaUBiE4NPml+ltUlQYU80lgjddihYcwpuyGTeGKaMzojHLtbIqdk6IDQJhJ3szyp1sLVRrFXl2ur++xZyig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721799941; c=relaxed/simple; bh=O74Q8SC6TiccaNZgfwzNKx2jggEmy1E4nI4Yk4JlKTc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=rOSFuhkxR/mAtNfJA1xR5Df4tlDwMV9abkn3ikzlAB/3BqELeayzI1d1jB/JM9wXzVD74X9vG7wG39CCMTLGHCbB7caQi7CTceMJJftfqUji46A6w0iLfr3/xprsXJZM8JOOayD8IXO0XwAZQWnZ+TN0mEWUsKxmLq61uaLR+kg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bIp3kNT+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0A56C32782; Wed, 24 Jul 2024 05:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721799941; bh=O74Q8SC6TiccaNZgfwzNKx2jggEmy1E4nI4Yk4JlKTc=; h=From:To:Subject:Date:From; b=bIp3kNT+YQuqCM5c+DEDc6UCU2mEnIuW+6Sq+hYXM3q5+1NvFyUdAI/68G4Cr3TXd 9hl/NMMcShl2cf0hU+0dX0t4OaLZgtfKw8EhjLvTII3XmxBsHKBk1mfps5gb1kk9du G8yGqYahnv7sZBgluVbp9w4a5ks+woG/mVHzGLSNNAP90RhP0dZAg7a6JlTSsXfHKc dsq3UHRG7j5ZzAW2rSuYng5Dqn3QJDsBNJUyFBp17db3/MkDLgU6OoRCO/SigqI8BZ jvWXrYl8AM+jSvIsKf9rrzl91B56CEKdn3dBNJhLH9XuQ0vb7yYyoLA/QT4YUOtOI4 msbb6KGLq2LMg== From: Damien Le Moal To: linux-ide@vger.kernel.org, Niklas Cassel Subject: [PATCH v5 0/4] Some cleanup, renaming and horkage improvements Date: Wed, 24 Jul 2024 14:45:35 +0900 Message-ID: <20240724054539.182655-1-dlemoal@kernel.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-ide@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The first 2 patches removes the use of the term "blacklist" from libata-core. Patch 3 cleanups the function ata_dev_knobble(). All these patches do not introduce any functional change. Patch 4 adds printing on device scan of the horkage flags that will be applied to the device, to help with debugging. Changes from v4: - Removed the useless !! in patch 1 - Added Igor's review tags to patch 1 and 2 - Added patch 3 - In patch 4, corrected comment about __ATA_HORKAGE_MAX, added missing newline for the horkage warning message and corrected the commit message. Changes from v3: - Corrected the BUILD_BUG_ON() call in patch 3 - Corrected alignment of horkage definition comments in patch 3 Changes from v2: - Simplified ata_dev_print_horkage() to always print the device revision (patch 3) - Simplified ata_dev_horkage() to having 2 different calls to ata_dev_print_horkage() and to always print the device revision (patch 3) - Added a BUILD_BUG_ON() check in patch 3 to ensure that the horkage flags all fit within an unsigned int. Changes from v1: - Remove unused macro definition in patch 3 - Use unsigned int for horkage flags (patch 3) Damien Le Moal (4): ata: libata: Rename ata_dma_blacklisted() ata: libata: Rename ata_dev_blacklisted() ata: libata: Change ata_dev_knobble() to return a bool ata: libata: Print horkages applied to devices drivers/ata/libata-core.c | 116 ++++++++++++++++++++++++++++++-------- include/linux/libata.h | 112 ++++++++++++++++++++++++------------ 2 files changed, 166 insertions(+), 62 deletions(-)