aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/port_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/isci/port_config.c')
-rw-r--r--drivers/scsi/isci/port_config.c132
1 files changed, 66 insertions, 66 deletions
diff --git a/drivers/scsi/isci/port_config.c b/drivers/scsi/isci/port_config.c
index a0a135d54e95..c8b16db6bbde 100644
--- a/drivers/scsi/isci/port_config.c
+++ b/drivers/scsi/isci/port_config.c
@@ -112,7 +112,7 @@ static s32 sci_sas_address_compare(
112 * port. port address if the port can be found to match the phy. 112 * port. port address if the port can be found to match the phy.
113 * NULL if there is no matching port for the phy. 113 * NULL if there is no matching port for the phy.
114 */ 114 */
115static struct isci_port *scic_sds_port_configuration_agent_find_port( 115static struct isci_port *sci_port_configuration_agent_find_port(
116 struct isci_host *ihost, 116 struct isci_host *ihost,
117 struct isci_phy *iphy) 117 struct isci_phy *iphy)
118{ 118{
@@ -127,14 +127,14 @@ static struct isci_port *scic_sds_port_configuration_agent_find_port(
127 * more phys match the sent and received SAS address as this phy in which 127 * more phys match the sent and received SAS address as this phy in which
128 * case it should participate in the same port. 128 * case it should participate in the same port.
129 */ 129 */
130 scic_sds_phy_get_sas_address(iphy, &phy_sas_address); 130 sci_phy_get_sas_address(iphy, &phy_sas_address);
131 scic_sds_phy_get_attached_sas_address(iphy, &phy_attached_device_address); 131 sci_phy_get_attached_sas_address(iphy, &phy_attached_device_address);
132 132
133 for (i = 0; i < ihost->logical_port_entries; i++) { 133 for (i = 0; i < ihost->logical_port_entries; i++) {
134 struct isci_port *iport = &ihost->ports[i]; 134 struct isci_port *iport = &ihost->ports[i];
135 135
136 scic_sds_port_get_sas_address(iport, &port_sas_address); 136 sci_port_get_sas_address(iport, &port_sas_address);
137 scic_sds_port_get_attached_sas_address(iport, &port_attached_device_address); 137 sci_port_get_attached_sas_address(iport, &port_attached_device_address);
138 138
139 if (sci_sas_address_compare(port_sas_address, phy_sas_address) == 0 && 139 if (sci_sas_address_compare(port_sas_address, phy_sas_address) == 0 &&
140 sci_sas_address_compare(port_attached_device_address, phy_attached_device_address) == 0) 140 sci_sas_address_compare(port_attached_device_address, phy_attached_device_address) == 0)
@@ -156,9 +156,9 @@ static struct isci_port *scic_sds_port_configuration_agent_find_port(
156 * this port configuration agent. SCI_FAILURE_UNSUPPORTED_PORT_CONFIGURATION 156 * this port configuration agent. SCI_FAILURE_UNSUPPORTED_PORT_CONFIGURATION
157 * the port configuration is not valid for this port configuration agent. 157 * the port configuration is not valid for this port configuration agent.
158 */ 158 */
159static enum sci_status scic_sds_port_configuration_agent_validate_ports( 159static enum sci_status sci_port_configuration_agent_validate_ports(
160 struct isci_host *ihost, 160 struct isci_host *ihost,
161 struct scic_sds_port_configuration_agent *port_agent) 161 struct sci_port_configuration_agent *port_agent)
162{ 162{
163 struct sci_sas_address first_address; 163 struct sci_sas_address first_address;
164 struct sci_sas_address second_address; 164 struct sci_sas_address second_address;
@@ -194,8 +194,8 @@ static enum sci_status scic_sds_port_configuration_agent_validate_ports(
194 * PE0 and PE3 can never have the same SAS Address unless they 194 * PE0 and PE3 can never have the same SAS Address unless they
195 * are part of the same x4 wide port and we have already checked 195 * are part of the same x4 wide port and we have already checked
196 * for this condition. */ 196 * for this condition. */
197 scic_sds_phy_get_sas_address(&ihost->phys[0], &first_address); 197 sci_phy_get_sas_address(&ihost->phys[0], &first_address);
198 scic_sds_phy_get_sas_address(&ihost->phys[3], &second_address); 198 sci_phy_get_sas_address(&ihost->phys[3], &second_address);
199 199
200 if (sci_sas_address_compare(first_address, second_address) == 0) { 200 if (sci_sas_address_compare(first_address, second_address) == 0) {
201 return SCI_FAILURE_UNSUPPORTED_PORT_CONFIGURATION; 201 return SCI_FAILURE_UNSUPPORTED_PORT_CONFIGURATION;
@@ -207,8 +207,8 @@ static enum sci_status scic_sds_port_configuration_agent_validate_ports(
207 * part of the same port. */ 207 * part of the same port. */
208 if (port_agent->phy_valid_port_range[0].min_index == 0 && 208 if (port_agent->phy_valid_port_range[0].min_index == 0 &&
209 port_agent->phy_valid_port_range[1].min_index == 1) { 209 port_agent->phy_valid_port_range[1].min_index == 1) {
210 scic_sds_phy_get_sas_address(&ihost->phys[0], &first_address); 210 sci_phy_get_sas_address(&ihost->phys[0], &first_address);
211 scic_sds_phy_get_sas_address(&ihost->phys[2], &second_address); 211 sci_phy_get_sas_address(&ihost->phys[2], &second_address);
212 212
213 if (sci_sas_address_compare(first_address, second_address) == 0) { 213 if (sci_sas_address_compare(first_address, second_address) == 0) {
214 return SCI_FAILURE_UNSUPPORTED_PORT_CONFIGURATION; 214 return SCI_FAILURE_UNSUPPORTED_PORT_CONFIGURATION;
@@ -221,8 +221,8 @@ static enum sci_status scic_sds_port_configuration_agent_validate_ports(
221 * part of the same port. */ 221 * part of the same port. */
222 if (port_agent->phy_valid_port_range[2].min_index == 2 && 222 if (port_agent->phy_valid_port_range[2].min_index == 2 &&
223 port_agent->phy_valid_port_range[3].min_index == 3) { 223 port_agent->phy_valid_port_range[3].min_index == 3) {
224 scic_sds_phy_get_sas_address(&ihost->phys[1], &first_address); 224 sci_phy_get_sas_address(&ihost->phys[1], &first_address);
225 scic_sds_phy_get_sas_address(&ihost->phys[3], &second_address); 225 sci_phy_get_sas_address(&ihost->phys[3], &second_address);
226 226
227 if (sci_sas_address_compare(first_address, second_address) == 0) { 227 if (sci_sas_address_compare(first_address, second_address) == 0) {
228 return SCI_FAILURE_UNSUPPORTED_PORT_CONFIGURATION; 228 return SCI_FAILURE_UNSUPPORTED_PORT_CONFIGURATION;
@@ -239,8 +239,8 @@ static enum sci_status scic_sds_port_configuration_agent_validate_ports(
239 239
240/* verify all of the phys in the same port are using the same SAS address */ 240/* verify all of the phys in the same port are using the same SAS address */
241static enum sci_status 241static enum sci_status
242scic_sds_mpc_agent_validate_phy_configuration(struct isci_host *ihost, 242sci_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
243 struct scic_sds_port_configuration_agent *port_agent) 243 struct sci_port_configuration_agent *port_agent)
244{ 244{
245 u32 phy_mask; 245 u32 phy_mask;
246 u32 assigned_phy_mask; 246 u32 assigned_phy_mask;
@@ -254,7 +254,7 @@ scic_sds_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
254 sas_address.low = 0; 254 sas_address.low = 0;
255 255
256 for (port_index = 0; port_index < SCI_MAX_PORTS; port_index++) { 256 for (port_index = 0; port_index < SCI_MAX_PORTS; port_index++) {
257 phy_mask = ihost->oem_parameters.sds1.ports[port_index].phy_mask; 257 phy_mask = ihost->oem_parameters.ports[port_index].phy_mask;
258 258
259 if (!phy_mask) 259 if (!phy_mask)
260 continue; 260 continue;
@@ -269,7 +269,7 @@ scic_sds_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
269 for (phy_index = 0; phy_index < SCI_MAX_PHYS; phy_index++) { 269 for (phy_index = 0; phy_index < SCI_MAX_PHYS; phy_index++) {
270 if ((phy_mask & (1 << phy_index)) == 0) 270 if ((phy_mask & (1 << phy_index)) == 0)
271 continue; 271 continue;
272 scic_sds_phy_get_sas_address(&ihost->phys[phy_index], 272 sci_phy_get_sas_address(&ihost->phys[phy_index],
273 &sas_address); 273 &sas_address);
274 274
275 /* 275 /*
@@ -294,7 +294,7 @@ scic_sds_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
294 while (phy_index < SCI_MAX_PHYS) { 294 while (phy_index < SCI_MAX_PHYS) {
295 if ((phy_mask & (1 << phy_index)) == 0) 295 if ((phy_mask & (1 << phy_index)) == 0)
296 continue; 296 continue;
297 scic_sds_phy_get_sas_address(&ihost->phys[phy_index], 297 sci_phy_get_sas_address(&ihost->phys[phy_index],
298 &phy_assigned_address); 298 &phy_assigned_address);
299 299
300 if (sci_sas_address_compare(sas_address, phy_assigned_address) != 0) { 300 if (sci_sas_address_compare(sas_address, phy_assigned_address) != 0) {
@@ -307,7 +307,7 @@ scic_sds_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
307 port_agent->phy_valid_port_range[phy_index].min_index = port_index; 307 port_agent->phy_valid_port_range[phy_index].min_index = port_index;
308 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; 308 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
309 309
310 scic_sds_port_add_phy(&ihost->ports[port_index], 310 sci_port_add_phy(&ihost->ports[port_index],
311 &ihost->phys[phy_index]); 311 &ihost->phys[phy_index]);
312 312
313 assigned_phy_mask |= (1 << phy_index); 313 assigned_phy_mask |= (1 << phy_index);
@@ -316,14 +316,14 @@ scic_sds_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
316 phy_index++; 316 phy_index++;
317 } 317 }
318 318
319 return scic_sds_port_configuration_agent_validate_ports(ihost, port_agent); 319 return sci_port_configuration_agent_validate_ports(ihost, port_agent);
320} 320}
321 321
322static void mpc_agent_timeout(unsigned long data) 322static void mpc_agent_timeout(unsigned long data)
323{ 323{
324 u8 index; 324 u8 index;
325 struct sci_timer *tmr = (struct sci_timer *)data; 325 struct sci_timer *tmr = (struct sci_timer *)data;
326 struct scic_sds_port_configuration_agent *port_agent; 326 struct sci_port_configuration_agent *port_agent;
327 struct isci_host *ihost; 327 struct isci_host *ihost;
328 unsigned long flags; 328 unsigned long flags;
329 u16 configure_phy_mask; 329 u16 configure_phy_mask;
@@ -355,8 +355,8 @@ done:
355 spin_unlock_irqrestore(&ihost->scic_lock, flags); 355 spin_unlock_irqrestore(&ihost->scic_lock, flags);
356} 356}
357 357
358static void scic_sds_mpc_agent_link_up(struct isci_host *ihost, 358static void sci_mpc_agent_link_up(struct isci_host *ihost,
359 struct scic_sds_port_configuration_agent *port_agent, 359 struct sci_port_configuration_agent *port_agent,
360 struct isci_port *iport, 360 struct isci_port *iport,
361 struct isci_phy *iphy) 361 struct isci_phy *iphy)
362{ 362{
@@ -367,10 +367,10 @@ static void scic_sds_mpc_agent_link_up(struct isci_host *ihost,
367 if (!iport) 367 if (!iport)
368 return; 368 return;
369 369
370 port_agent->phy_ready_mask |= (1 << scic_sds_phy_get_index(iphy)); 370 port_agent->phy_ready_mask |= (1 << sci_phy_get_index(iphy));
371 scic_sds_port_link_up(iport, iphy); 371 sci_port_link_up(iport, iphy);
372 if ((iport->active_phy_mask & (1 << scic_sds_phy_get_index(iphy)))) 372 if ((iport->active_phy_mask & (1 << sci_phy_get_index(iphy))))
373 port_agent->phy_configured_mask |= (1 << scic_sds_phy_get_index(iphy)); 373 port_agent->phy_configured_mask |= (1 << sci_phy_get_index(iphy));
374} 374}
375 375
376/** 376/**
@@ -390,9 +390,9 @@ static void scic_sds_mpc_agent_link_up(struct isci_host *ihost,
390 * not associated with a port there is no action taken. Is it possible to get a 390 * not associated with a port there is no action taken. Is it possible to get a
391 * link down notification from a phy that has no assocoated port? 391 * link down notification from a phy that has no assocoated port?
392 */ 392 */
393static void scic_sds_mpc_agent_link_down( 393static void sci_mpc_agent_link_down(
394 struct isci_host *ihost, 394 struct isci_host *ihost,
395 struct scic_sds_port_configuration_agent *port_agent, 395 struct sci_port_configuration_agent *port_agent,
396 struct isci_port *iport, 396 struct isci_port *iport,
397 struct isci_phy *iphy) 397 struct isci_phy *iphy)
398{ 398{
@@ -405,9 +405,9 @@ static void scic_sds_mpc_agent_link_down(
405 * state. 405 * state.
406 */ 406 */
407 port_agent->phy_ready_mask &= 407 port_agent->phy_ready_mask &=
408 ~(1 << scic_sds_phy_get_index(iphy)); 408 ~(1 << sci_phy_get_index(iphy));
409 port_agent->phy_configured_mask &= 409 port_agent->phy_configured_mask &=
410 ~(1 << scic_sds_phy_get_index(iphy)); 410 ~(1 << sci_phy_get_index(iphy));
411 411
412 /* 412 /*
413 * Check to see if there are more phys waiting to be 413 * Check to see if there are more phys waiting to be
@@ -424,7 +424,7 @@ static void scic_sds_mpc_agent_link_down(
424 SCIC_SDS_MPC_RECONFIGURATION_TIMEOUT); 424 SCIC_SDS_MPC_RECONFIGURATION_TIMEOUT);
425 } 425 }
426 426
427 scic_sds_port_link_down(iport, iphy); 427 sci_port_link_down(iport, iphy);
428 } 428 }
429} 429}
430 430
@@ -432,8 +432,8 @@ static void scic_sds_mpc_agent_link_down(
432 * configuration mode. 432 * configuration mode.
433 */ 433 */
434static enum sci_status 434static enum sci_status
435scic_sds_apc_agent_validate_phy_configuration(struct isci_host *ihost, 435sci_apc_agent_validate_phy_configuration(struct isci_host *ihost,
436 struct scic_sds_port_configuration_agent *port_agent) 436 struct sci_port_configuration_agent *port_agent)
437{ 437{
438 u8 phy_index; 438 u8 phy_index;
439 u8 port_index; 439 u8 port_index;
@@ -446,11 +446,11 @@ scic_sds_apc_agent_validate_phy_configuration(struct isci_host *ihost,
446 port_index = phy_index; 446 port_index = phy_index;
447 447
448 /* Get the assigned SAS Address for the first PHY on the controller. */ 448 /* Get the assigned SAS Address for the first PHY on the controller. */
449 scic_sds_phy_get_sas_address(&ihost->phys[phy_index], 449 sci_phy_get_sas_address(&ihost->phys[phy_index],
450 &sas_address); 450 &sas_address);
451 451
452 while (++phy_index < SCI_MAX_PHYS) { 452 while (++phy_index < SCI_MAX_PHYS) {
453 scic_sds_phy_get_sas_address(&ihost->phys[phy_index], 453 sci_phy_get_sas_address(&ihost->phys[phy_index],
454 &phy_assigned_address); 454 &phy_assigned_address);
455 455
456 /* Verify each of the SAS address are all the same for every PHY */ 456 /* Verify each of the SAS address are all the same for every PHY */
@@ -465,11 +465,11 @@ scic_sds_apc_agent_validate_phy_configuration(struct isci_host *ihost,
465 } 465 }
466 } 466 }
467 467
468 return scic_sds_port_configuration_agent_validate_ports(ihost, port_agent); 468 return sci_port_configuration_agent_validate_ports(ihost, port_agent);
469} 469}
470 470
471static void scic_sds_apc_agent_configure_ports(struct isci_host *ihost, 471static void sci_apc_agent_configure_ports(struct isci_host *ihost,
472 struct scic_sds_port_configuration_agent *port_agent, 472 struct sci_port_configuration_agent *port_agent,
473 struct isci_phy *iphy, 473 struct isci_phy *iphy,
474 bool start_timer) 474 bool start_timer)
475{ 475{
@@ -478,10 +478,10 @@ static void scic_sds_apc_agent_configure_ports(struct isci_host *ihost,
478 struct isci_port *iport; 478 struct isci_port *iport;
479 enum SCIC_SDS_APC_ACTIVITY apc_activity = SCIC_SDS_APC_SKIP_PHY; 479 enum SCIC_SDS_APC_ACTIVITY apc_activity = SCIC_SDS_APC_SKIP_PHY;
480 480
481 iport = scic_sds_port_configuration_agent_find_port(ihost, iphy); 481 iport = sci_port_configuration_agent_find_port(ihost, iphy);
482 482
483 if (iport) { 483 if (iport) {
484 if (scic_sds_port_is_valid_phy_assignment(iport, iphy->phy_index)) 484 if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index))
485 apc_activity = SCIC_SDS_APC_ADD_PHY; 485 apc_activity = SCIC_SDS_APC_ADD_PHY;
486 else 486 else
487 apc_activity = SCIC_SDS_APC_SKIP_PHY; 487 apc_activity = SCIC_SDS_APC_SKIP_PHY;
@@ -499,7 +499,7 @@ static void scic_sds_apc_agent_configure_ports(struct isci_host *ihost,
499 iport = &ihost->ports[port_index]; 499 iport = &ihost->ports[port_index];
500 500
501 /* First we must make sure that this PHY can be added to this Port. */ 501 /* First we must make sure that this PHY can be added to this Port. */
502 if (scic_sds_port_is_valid_phy_assignment(iport, iphy->phy_index)) { 502 if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) {
503 /* 503 /*
504 * Port contains a PHY with a greater PHY ID than the current 504 * Port contains a PHY with a greater PHY ID than the current
505 * PHY that has gone link up. This phy can not be part of any 505 * PHY that has gone link up. This phy can not be part of any
@@ -559,7 +559,7 @@ static void scic_sds_apc_agent_configure_ports(struct isci_host *ihost,
559 559
560 switch (apc_activity) { 560 switch (apc_activity) {
561 case SCIC_SDS_APC_ADD_PHY: 561 case SCIC_SDS_APC_ADD_PHY:
562 status = scic_sds_port_add_phy(iport, iphy); 562 status = sci_port_add_phy(iport, iphy);
563 563
564 if (status == SCI_SUCCESS) { 564 if (status == SCI_SUCCESS) {
565 port_agent->phy_configured_mask |= (1 << iphy->phy_index); 565 port_agent->phy_configured_mask |= (1 << iphy->phy_index);
@@ -588,7 +588,7 @@ static void scic_sds_apc_agent_configure_ports(struct isci_host *ihost,
588} 588}
589 589
590/** 590/**
591 * scic_sds_apc_agent_link_up - handle apc link up events 591 * sci_apc_agent_link_up - handle apc link up events
592 * @scic: This is the controller object that receives the link up 592 * @scic: This is the controller object that receives the link up
593 * notification. 593 * notification.
594 * @sci_port: This is the port object associated with the phy. If the is no 594 * @sci_port: This is the port object associated with the phy. If the is no
@@ -599,8 +599,8 @@ static void scic_sds_apc_agent_configure_ports(struct isci_host *ihost,
599 * notifications. Is it possible to get a link down notification from a phy 599 * notifications. Is it possible to get a link down notification from a phy
600 * that has no assocoated port? 600 * that has no assocoated port?
601 */ 601 */
602static void scic_sds_apc_agent_link_up(struct isci_host *ihost, 602static void sci_apc_agent_link_up(struct isci_host *ihost,
603 struct scic_sds_port_configuration_agent *port_agent, 603 struct sci_port_configuration_agent *port_agent,
604 struct isci_port *iport, 604 struct isci_port *iport,
605 struct isci_phy *iphy) 605 struct isci_phy *iphy)
606{ 606{
@@ -609,7 +609,7 @@ static void scic_sds_apc_agent_link_up(struct isci_host *ihost,
609 if (!iport) { 609 if (!iport) {
610 /* the phy is not the part of this port */ 610 /* the phy is not the part of this port */
611 port_agent->phy_ready_mask |= 1 << phy_index; 611 port_agent->phy_ready_mask |= 1 << phy_index;
612 scic_sds_apc_agent_configure_ports(ihost, port_agent, iphy, true); 612 sci_apc_agent_configure_ports(ihost, port_agent, iphy, true);
613 } else { 613 } else {
614 /* the phy is already the part of the port */ 614 /* the phy is already the part of the port */
615 u32 port_state = iport->sm.current_state_id; 615 u32 port_state = iport->sm.current_state_id;
@@ -620,7 +620,7 @@ static void scic_sds_apc_agent_link_up(struct isci_host *ihost,
620 */ 620 */
621 BUG_ON(port_state != SCI_PORT_RESETTING); 621 BUG_ON(port_state != SCI_PORT_RESETTING);
622 port_agent->phy_ready_mask |= 1 << phy_index; 622 port_agent->phy_ready_mask |= 1 << phy_index;
623 scic_sds_port_link_up(iport, iphy); 623 sci_port_link_up(iport, iphy);
624 } 624 }
625} 625}
626 626
@@ -637,20 +637,20 @@ static void scic_sds_apc_agent_link_up(struct isci_host *ihost,
637 * possible to get a link down notification from a phy that has no assocoated 637 * possible to get a link down notification from a phy that has no assocoated
638 * port? 638 * port?
639 */ 639 */
640static void scic_sds_apc_agent_link_down( 640static void sci_apc_agent_link_down(
641 struct isci_host *ihost, 641 struct isci_host *ihost,
642 struct scic_sds_port_configuration_agent *port_agent, 642 struct sci_port_configuration_agent *port_agent,
643 struct isci_port *iport, 643 struct isci_port *iport,
644 struct isci_phy *iphy) 644 struct isci_phy *iphy)
645{ 645{
646 port_agent->phy_ready_mask &= ~(1 << scic_sds_phy_get_index(iphy)); 646 port_agent->phy_ready_mask &= ~(1 << sci_phy_get_index(iphy));
647 647
648 if (!iport) 648 if (!iport)
649 return; 649 return;
650 if (port_agent->phy_configured_mask & (1 << iphy->phy_index)) { 650 if (port_agent->phy_configured_mask & (1 << iphy->phy_index)) {
651 enum sci_status status; 651 enum sci_status status;
652 652
653 status = scic_sds_port_remove_phy(iport, iphy); 653 status = sci_port_remove_phy(iport, iphy);
654 654
655 if (status == SCI_SUCCESS) 655 if (status == SCI_SUCCESS)
656 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); 656 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index);
@@ -662,7 +662,7 @@ static void apc_agent_timeout(unsigned long data)
662{ 662{
663 u32 index; 663 u32 index;
664 struct sci_timer *tmr = (struct sci_timer *)data; 664 struct sci_timer *tmr = (struct sci_timer *)data;
665 struct scic_sds_port_configuration_agent *port_agent; 665 struct sci_port_configuration_agent *port_agent;
666 struct isci_host *ihost; 666 struct isci_host *ihost;
667 unsigned long flags; 667 unsigned long flags;
668 u16 configure_phy_mask; 668 u16 configure_phy_mask;
@@ -686,7 +686,7 @@ static void apc_agent_timeout(unsigned long data)
686 if ((configure_phy_mask & (1 << index)) == 0) 686 if ((configure_phy_mask & (1 << index)) == 0)
687 continue; 687 continue;
688 688
689 scic_sds_apc_agent_configure_ports(ihost, port_agent, 689 sci_apc_agent_configure_ports(ihost, port_agent,
690 &ihost->phys[index], false); 690 &ihost->phys[index], false);
691 } 691 }
692 692
@@ -706,8 +706,8 @@ done:
706 * call is universal for both manual port configuration and automatic port 706 * call is universal for both manual port configuration and automatic port
707 * configuration modes. 707 * configuration modes.
708 */ 708 */
709void scic_sds_port_configuration_agent_construct( 709void sci_port_configuration_agent_construct(
710 struct scic_sds_port_configuration_agent *port_agent) 710 struct sci_port_configuration_agent *port_agent)
711{ 711{
712 u32 index; 712 u32 index;
713 713
@@ -725,29 +725,29 @@ void scic_sds_port_configuration_agent_construct(
725 } 725 }
726} 726}
727 727
728enum sci_status scic_sds_port_configuration_agent_initialize( 728enum sci_status sci_port_configuration_agent_initialize(
729 struct isci_host *ihost, 729 struct isci_host *ihost,
730 struct scic_sds_port_configuration_agent *port_agent) 730 struct sci_port_configuration_agent *port_agent)
731{ 731{
732 enum sci_status status; 732 enum sci_status status;
733 enum scic_port_configuration_mode mode; 733 enum sci_port_configuration_mode mode;
734 734
735 mode = ihost->oem_parameters.sds1.controller.mode_type; 735 mode = ihost->oem_parameters.controller.mode_type;
736 736
737 if (mode == SCIC_PORT_MANUAL_CONFIGURATION_MODE) { 737 if (mode == SCIC_PORT_MANUAL_CONFIGURATION_MODE) {
738 status = scic_sds_mpc_agent_validate_phy_configuration( 738 status = sci_mpc_agent_validate_phy_configuration(
739 ihost, port_agent); 739 ihost, port_agent);
740 740
741 port_agent->link_up_handler = scic_sds_mpc_agent_link_up; 741 port_agent->link_up_handler = sci_mpc_agent_link_up;
742 port_agent->link_down_handler = scic_sds_mpc_agent_link_down; 742 port_agent->link_down_handler = sci_mpc_agent_link_down;
743 743
744 sci_init_timer(&port_agent->timer, mpc_agent_timeout); 744 sci_init_timer(&port_agent->timer, mpc_agent_timeout);
745 } else { 745 } else {
746 status = scic_sds_apc_agent_validate_phy_configuration( 746 status = sci_apc_agent_validate_phy_configuration(
747 ihost, port_agent); 747 ihost, port_agent);
748 748
749 port_agent->link_up_handler = scic_sds_apc_agent_link_up; 749 port_agent->link_up_handler = sci_apc_agent_link_up;
750 port_agent->link_down_handler = scic_sds_apc_agent_link_down; 750 port_agent->link_down_handler = sci_apc_agent_link_down;
751 751
752 sci_init_timer(&port_agent->timer, apc_agent_timeout); 752 sci_init_timer(&port_agent->timer, apc_agent_timeout);
753 } 753 }