Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254463
b: refs/heads/master
c: 1dea554
h: refs/heads/master
i:
  254461: 20e13d6
  254459: ec41527
  254455: dfd999f
  254447: 0e976e0
  254431: 2b50bbc
  254399: 7164e59
  254335: db73d86
  254207: ef7cc8f
  253951: 4e3be88
v: v3
  • Loading branch information
Dave Jiang authored and Dan Williams committed Jul 3, 2011
1 parent 2817bcf commit 5f432e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4b7ebd05fc074ac2ffdc803232d83f3593d4f548
refs/heads/master: 1dea554fce698b7e8ad03cab1525f41cd6c28092
12 changes: 6 additions & 6 deletions trunk/drivers/scsi/isci/core/scic_sds_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ void scic_sds_phy_get_attached_sas_address(struct scic_sds_phy *sci_phy,
{
struct sas_identify_frame *iaf;

iaf = &sci_phy->phy_type.sas.identify_address_frame_buffer;
iaf = &sci_phy->phy_type.sas_id_frame;
memcpy(sas_address, iaf->sas_addr, SAS_ADDR_SIZE);
}

Expand All @@ -457,7 +457,7 @@ void scic_sds_phy_get_attached_phy_protocols(
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SAS) {
struct sas_identify_frame *iaf;

iaf = &sci_phy->phy_type.sas.identify_address_frame_buffer;
iaf = &sci_phy->phy_type.sas_id_frame;
memcpy(&protocols->u.all, &iaf->initiator_bits, 2);
} else if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SATA) {
protocols->u.bits.stp_target = 1;
Expand Down Expand Up @@ -558,7 +558,7 @@ enum sci_status scic_sas_phy_get_properties(
{
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SAS) {
memcpy(&properties->rcvd_iaf,
&sci_phy->phy_type.sas.identify_address_frame_buffer,
&sci_phy->phy_type.sas_id_frame,
sizeof(struct sas_identify_frame));

properties->received_capabilities.u.all =
Expand All @@ -577,7 +577,7 @@ enum sci_status scic_sata_phy_get_properties(
{
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SATA) {
memcpy(&properties->signature_fis,
&sci_phy->phy_type.sata.signature_fis_buffer,
&sci_phy->phy_type.sata_sig_fis,
sizeof(struct dev_to_host_fis));

/* / @todo add support for port selectors. */
Expand Down Expand Up @@ -1185,7 +1185,7 @@ static enum sci_status scic_sds_phy_starting_substate_await_iaf_uf_frame_handler
frame_words[4] = SCIC_SWAP_DWORD(frame_words[4]);
frame_words[5] = SCIC_SWAP_DWORD(frame_words[5]);

memcpy(&sci_phy->phy_type.sas.identify_address_frame_buffer,
memcpy(&sci_phy->phy_type.sas_id_frame,
identify_frame,
sizeof(struct sas_identify_frame));

Expand Down Expand Up @@ -1253,7 +1253,7 @@ static enum sci_status scic_sds_phy_starting_substate_await_sig_fis_frame_handle
(void **)&fis_frame_data);

scic_sds_controller_copy_sata_response(
&sci_phy->phy_type.sata.signature_fis_buffer,
&sci_phy->phy_type.sata_sig_fis,
frame_header,
fis_frame_data);

Expand Down
12 changes: 2 additions & 10 deletions trunk/drivers/scsi/isci/core/scic_sds_phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,8 @@ struct scic_sds_phy {
bool is_in_link_training;

union {
struct {
struct sas_identify_frame identify_address_frame_buffer;

} sas;

struct {
struct dev_to_host_fis signature_fis_buffer;

} sata;

struct sas_identify_frame sas_id_frame;
struct dev_to_host_fis sata_sig_fis;
} phy_type;

/**
Expand Down

0 comments on commit 5f432e8

Please sign in to comment.