Skip to content

Commit

Permalink
pch_gbe: export a method to set the receive match address
Browse files Browse the repository at this point in the history
The code in phc_gbe_main will need to call this method in order to set the
station address register according to the receive time stamping filter.

[ RC - Rebased Takahiro's changes and wrote a commit message
  explaining the changes. ]

Signed-off-by: Takahiro Shimizu <[email protected]>
Signed-off-by: Richard Cochran <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Takahiro Shimizu authored and davem330 committed Apr 21, 2012
1 parent eefc48b commit 17cdedf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ extern u32 pch_src_uuid_lo_read(struct pci_dev *pdev);
extern u32 pch_src_uuid_hi_read(struct pci_dev *pdev);
extern u64 pch_rx_snap_read(struct pci_dev *pdev);
extern u64 pch_tx_snap_read(struct pci_dev *pdev);
extern int pch_set_station_address(u8 *addr, struct pci_dev *pdev);
#endif

/* pch_gbe_param.c */
Expand Down
3 changes: 2 additions & 1 deletion drivers/ptp/ptp_pch.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static void pch_reset(struct pch_dev *chip)
* traffic on the ethernet interface
* @addr: dress which contain the column separated address to be used.
*/
static int pch_set_station_address(u8 *addr, struct pci_dev *pdev)
int pch_set_station_address(u8 *addr, struct pci_dev *pdev)
{
s32 i;
struct pch_dev *chip = pci_get_drvdata(pdev);
Expand Down Expand Up @@ -352,6 +352,7 @@ static int pch_set_station_address(u8 *addr, struct pci_dev *pdev)
}
return 0;
}
EXPORT_SYMBOL(pch_set_station_address);

/*
* Interrupt service routine
Expand Down

0 comments on commit 17cdedf

Please sign in to comment.