From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796305167; b=0kPrVk08raDM8jlR1eTfAugTCzN9X1LXy746hlQGH1O2EqPYaF61jbPtLnp/i7bp/ZlK WHGhf2ki2FqOMxbJGcbknsgDHQuCdd5o6XQY0sCz1gLUEABPhDvkDOff0Z9H7Gl/X+1eR ZfTvKPZJe6rjUclsuLrsjfKbcLw4lfZOBKZOImVJhN7aFWnw9lIH/DnP1r7ptQ3rr2GOb 5E5sT5RzNBm/fdI2b6LN8Ax4A72gNE5aIo+43hetffvAU1YhnPL0TYw2pe4p9TeE/hkl4 bBWAyQd87f7ca0ymjU7mwy2k8B/i4rZ26rSuOOHlZ0A6s7fLKM6zcYF7pBJoqj8zmOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796305167; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=sxOQyHIbSRPviinpXVp4hsuOH/IXdeHi97DRy0AM/3Y=; b=NeUduPUzRwPeeo6EiTUCDOZT6bx5OnCZriUxhJomnqArp03NfIQFM74CImqJieAjVmOJ 4paURVXTd6Fa4t2rPm7Czz1ZI+VQZALaZ8j5fQJwQ8OymbcErWBHkE4JswXwe+2Z+690C YCNjFSttkYvgnKVzqtl3lT0MBoEpFpfsrzO7klGAkkaFDlscsjofN6TAEoSLUhDGvBmNI ofY1VNGN+bhssUvktKhFwF+7KXqMeE1nl7Hugf/lz2CwozjDYhv6dxkKiKBmPAxgk5/jg dT0nUMMLEHpKVeh1JLZa/s93JNN0jGNzcGWzL8oWryG4iZitIhXr62fN+VeNCrUNbTA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=S49GSvKK; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF663606A322; Thu, 3 Dec 2026 13:39:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=S49GSvKK Received: by smtp.kernel.org (Postfix) with ESMTPSA id D35661F00893; Thu, 3 Dec 2026 13:39:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796305166; bh=sxOQyHIbSRPviinpXVp4hsuOH/IXdeHi97DRy0AM/3Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=S49GSvKKhqGDZjHAgLbC2a3HEim3C+HCQK8wDyDIpfVKh6XmaJFzsXeYDPAxqJtRH vFms37Bq7kkuC9XtdVBBvBTVRct/hR30jB/INV+mVAdvPFLj/YoGUSRgk99CmzFkWe hiYNm+oXS7Krr60XqTvRWZ883SNXOzVSawYswda1+h431p5UG/C4MSxFLQbDlYAL66 GFVEV4npMukl7x88QhuvBHVDaWsry94r/dhlV7qsWLE0L2lZ7AWpNukHwBFhF2KEu8 SVuwBhnpI7z8u7qqZEpKousk7FxPQVuJAHJl9YoZjgiFeXmDFX4Wm6kmr3bqJXBHzH PsYttN2u3oDJw== Date: Thu, 3 Dec 2026 14:39:22 +0100 From: Niklas Cassel To: Weidong Wang Cc: "pstanner@redhat.com" , Damien Le Moal , linux-ide@vger.kernel.org, Bjorn Helgaas , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] ata: libata-core: Do not use pcim_enable_device() on PCI resume Message-ID: References: <022e98e0c153e1e306fd06bf9198c25f32645389.camel@redhat.com> <20261201201504.1308278-1-weidongw@illinois.edu> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 03, 2026 at 02:27:53PM +0100, Niklas Cassel wrote: > > But to me it makes sense to make libata consistent, either fully use the > pci_* APIs or fully use the pcim_* APIs. > > Without looking at the patches, it is hard to know if it is more wise to > convert everything to pci_* or to convert everything to pcim_*. > > (I assume that there was some weird corner case that caused someone to mix > the APIs in the first place... So personally I would prefer the solution > which untangles this mess with the most logical/beautiful end result.) Untangling a mix of APIs because of some weird corner case, sounds like a perfect job for an LLM, since they are good at finding the weird corner cases by being able to follow the call chain of all the libata drivers. If you don't say anything, I will wait for your findings. I have access to some LLM models and could help out if you don't have time. Kind regards, Niklas