public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ahci: Add Intel Cannon Lake PCH-H PCI ID
@ 2018-01-11 12:55 Mika Westerberg
  2018-01-11 12:55 ` [PATCH 2/2] ahci: Use usleep_range() in ahci_start_port() Mika Westerberg
  2018-01-11 18:10 ` [PATCH 1/2] ahci: Add Intel Cannon Lake PCH-H PCI ID Tejun Heo
  0 siblings, 2 replies; 5+ messages in thread
From: Mika Westerberg @ 2018-01-11 12:55 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Mika Westerberg, linux-ide

Add Intel Cannon Lake PCH-H PCI ID to the list of supported controllers.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/ata/ahci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 5443cb71d7ba..a3131107136f 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -386,6 +386,7 @@ static const struct pci_device_id ahci_pci_tbl[] = {
 	{ PCI_VDEVICE(INTEL, 0xa206), board_ahci }, /* Lewisburg RAID*/
 	{ PCI_VDEVICE(INTEL, 0xa252), board_ahci }, /* Lewisburg RAID*/
 	{ PCI_VDEVICE(INTEL, 0xa256), board_ahci }, /* Lewisburg RAID*/
+	{ PCI_VDEVICE(INTEL, 0xa356), board_ahci }, /* Cannon Lake PCH-H RAID */
 
 	/* JMicron 360/1/3/5/6, match class to avoid IDE function */
 	{ PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
-- 
2.15.1


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

* [PATCH 2/2] ahci: Use usleep_range() in ahci_start_port()
  2018-01-11 12:55 [PATCH 1/2] ahci: Add Intel Cannon Lake PCH-H PCI ID Mika Westerberg
@ 2018-01-11 12:55 ` Mika Westerberg
  2018-01-11 18:11   ` Tejun Heo
  2018-01-11 18:10 ` [PATCH 1/2] ahci: Add Intel Cannon Lake PCH-H PCI ID Tejun Heo
  1 sibling, 1 reply; 5+ messages in thread
From: Mika Westerberg @ 2018-01-11 12:55 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Mika Westerberg, linux-ide

Using msleep(1) may actually sleep much longer than 1 msecs (~20 msecs)
which unnecessarily slows down system startup. Avoid that and use
usleep_range() instead.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/ata/libahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index a0de7a38430c..27e7daa01ccb 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -871,7 +871,7 @@ static void ahci_start_port(struct ata_port *ap)
 				 * ports to fail the same way.
 				 */
 				if (rc == -EBUSY)
-					msleep(1);
+					usleep_range(1000, 1050);
 				else
 					break;
 			}
-- 
2.15.1


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

* Re: [PATCH 1/2] ahci: Add Intel Cannon Lake PCH-H PCI ID
  2018-01-11 12:55 [PATCH 1/2] ahci: Add Intel Cannon Lake PCH-H PCI ID Mika Westerberg
  2018-01-11 12:55 ` [PATCH 2/2] ahci: Use usleep_range() in ahci_start_port() Mika Westerberg
@ 2018-01-11 18:10 ` Tejun Heo
  1 sibling, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2018-01-11 18:10 UTC (permalink / raw)
  To: Mika Westerberg; +Cc: linux-ide

On Thu, Jan 11, 2018 at 03:55:50PM +0300, Mika Westerberg wrote:
> Add Intel Cannon Lake PCH-H PCI ID to the list of supported controllers.
> 
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>

Applied to libata/for-4.16.

Thanks.

-- 
tejun

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

* Re: [PATCH 2/2] ahci: Use usleep_range() in ahci_start_port()
  2018-01-11 12:55 ` [PATCH 2/2] ahci: Use usleep_range() in ahci_start_port() Mika Westerberg
@ 2018-01-11 18:11   ` Tejun Heo
  2018-01-11 18:22     ` Mika Westerberg
  0 siblings, 1 reply; 5+ messages in thread
From: Tejun Heo @ 2018-01-11 18:11 UTC (permalink / raw)
  To: Mika Westerberg; +Cc: linux-ide

On Thu, Jan 11, 2018 at 03:55:51PM +0300, Mika Westerberg wrote:
> Using msleep(1) may actually sleep much longer than 1 msecs (~20 msecs)
> which unnecessarily slows down system startup. Avoid that and use
> usleep_range() instead.
> 
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>

Heh, I'm not sure.  How big of a problem is this?

Thanks.

-- 
tejun

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

* Re: [PATCH 2/2] ahci: Use usleep_range() in ahci_start_port()
  2018-01-11 18:11   ` Tejun Heo
@ 2018-01-11 18:22     ` Mika Westerberg
  0 siblings, 0 replies; 5+ messages in thread
From: Mika Westerberg @ 2018-01-11 18:22 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide

On Thu, Jan 11, 2018 at 10:11:17AM -0800, Tejun Heo wrote:
> On Thu, Jan 11, 2018 at 03:55:51PM +0300, Mika Westerberg wrote:
> > Using msleep(1) may actually sleep much longer than 1 msecs (~20 msecs)
> > which unnecessarily slows down system startup. Avoid that and use
> > usleep_range() instead.
> > 
> > Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> 
> Heh, I'm not sure.  How big of a problem is this?

It's not a big problem so you may ignore the patch if you think it is
not needed. I just noticed the msleep(1) there and though we could do
better using usleep_range().

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

end of thread, other threads:[~2018-01-11 18:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-11 12:55 [PATCH 1/2] ahci: Add Intel Cannon Lake PCH-H PCI ID Mika Westerberg
2018-01-11 12:55 ` [PATCH 2/2] ahci: Use usleep_range() in ahci_start_port() Mika Westerberg
2018-01-11 18:11   ` Tejun Heo
2018-01-11 18:22     ` Mika Westerberg
2018-01-11 18:10 ` [PATCH 1/2] ahci: Add Intel Cannon Lake PCH-H PCI ID Tejun Heo

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