[PATCH net-next 1/1] net: stmmac: fix memory leak during driver probe

2021-04-19 Thread Wong Vee Khee
d86b76d>] __do_sys_finit_module+0xb5/0x120 [<2b0cef95>] do_syscall_64+0x33/0x40 [<67b45bbb>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy") Cc: Ong Boon Leong Signed-off-by: Wong Vee Khee --- drivers/

[PATCH net-next v4 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-13 Thread Wong Vee Khee
-space using application such as testptp or any other applications that uses the PTP_EXTTS_REQUEST ioctl request. Cc: Richard Cochran Signed-off-by: Tan Tee Min Co-developed-by: Wong Vee Khee Signed-off-by: Wong Vee Khee --- v3 -> v4: - Group variable of same datatype together in onel

Re: [PATCH net-next v3 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-12 Thread Wong Vee Khee
On Sun, Apr 11, 2021 at 08:10:55AM -0700, Richard Cochran wrote: > On Sun, Apr 11, 2021 at 10:40:28AM +0800, Wong Vee Khee wrote: > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c > > b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c > > index 60566598d644

[PATCH net-next v3 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-10 Thread Wong Vee Khee
-space using application such as testptp or any other applications that uses the PTP_EXTTS_REQUEST ioctl request. Cc: Richard Cochran Signed-off-by: Tan Tee Min Co-developed-by: Wong Vee Khee Signed-off-by: Wong Vee Khee --- v2 -> v3: - Flip ext_snapshot_en condition check for early return.

Re: [PATCH net-next v2 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-10 Thread Wong Vee Khee
On Fri, Apr 09, 2021 at 05:50:04PM -0700, Jakub Kicinski wrote: > Other than the minor nit below LGTM. Let's give Richard one more day. > > On Thu, 8 Apr 2021 01:04:42 +0800 Wong Vee Khee wrote: > > +static void timestamp_interrupt(struct stmmac_priv *priv) > > +{ > >

[PATCH net-next v2 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-07 Thread Wong Vee Khee
-space using application such as testptp or any other applications that uses the PTP_EXTTS_REQUEST ioctl request. Cc: Richard Cochran Signed-off-by: Tan Tee Min Co-developed-by: Wong Vee Khee Signed-off-by: Wong Vee Khee --- v1 -> v2: Changed from pr_info() to netdev_dbg(). .../net/ether

Re: [PATCH net-next 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-07 Thread Wong Vee Khee
On Wed, Apr 07, 2021 at 04:21:09PM +0200, Andrew Lunn wrote: > On Wed, Apr 07, 2021 at 10:15:37PM +0800, Wong Vee Khee wrote: > > From: Tan Tee Min > > > > The Synopsis MAC controller supports auxiliary snapshot feature that > > allows user to store a snapsh

[PATCH net-next 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-07 Thread Wong Vee Khee
-space using application such as testptp or any other applications that uses the PTP_EXTTS_REQUEST ioctl request. Signed-off-by: Tan Tee Min Co-developed-by: Wong Vee Khee Signed-off-by: Wong Vee Khee --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 11 + drivers/net/ethernet/stmicro/stmmac

[PATCH net v1 1/1] ethtool: fix incorrect datatype in set_eee ops

2021-04-06 Thread Wong Vee Khee
The member 'tx_lpi_timer' is defined with __u32 datatype in the ethtool header file. Hence, we should use ethnl_update_u32() in set_eee ops. Fixes: fd77be7bd43c ("ethtool: set EEE settings with EEE_SET request") Cc: # 5.10.x Cc: Michal Kubecek Signed-off-by: Wong Vee Khee --- n

Re: [PATCH net-next v1 1/1] stmmac: intel: Drop duplicate ID in the list of PCI device IDs

2021-04-06 Thread Wong Vee Khee
On Tue, Apr 06, 2021 at 01:13:06PM +0300, Andy Shevchenko wrote: > The PCI device IDs are defined with a prefix PCI_DEVICE_ID. > There is no need to repeat the ID part at the end of each definition. > > Signed-off-by: Andy Shevchenko Reviewed-by: Wong Vee Khee > --- >

RE: [PATCH net-next] net: intel: Enable SERDES PHY rx clk for PSE

2021-04-05 Thread Wong, Vee Khee
On Tue, Apr 06, 2021 at 12:33:57AM +0800, Voon Weifeng wrote: > > EHL PSE SGMII mode requires to ungate the SERDES PHY rx clk for power up > sequence and vice versa. > > Signed-off-by: Voon Weifeng > --- > drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 10 ++ >

[PATCH net-next 1/1] net: stmmac: remove unnecessary pci_enable_msi() call

2021-04-01 Thread Wong Vee Khee
n moved to the newly created driver. Removing this unnecessary pci_enable_msi() call as there are no other devices that uses stmmac-pci and need MSI to be enabled. Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/

[PATCH net-next 1/1] stmmac: intel: use managed PCI function on probe and resume

2021-03-31 Thread Wong Vee Khee
Update dwmac-intel to use managed function, i.e. pcim_enable_device(). This will allow devres framework to call resource free function for us. Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff

[PATCH 1/1] watchdog: Fix a typo in Kconfig

2021-03-31 Thread Wong Vee Khee
s/thershold/threshold Cc: Vijayakannan Ayyathurai Signed-off-by: Wong Vee Khee --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 0470dc15c085..aa382e5edfef 100644 --- a/drivers/watchdog

[PATCH net-next 1/1] net: stmmac: enable MTL ECC Error Address Status Over-ride by default

2021-03-31 Thread Wong Vee Khee
-by: Tan Tee Min Co-developed-by: Wong Vee Khee Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac5.c | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac5.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac5.c b/drivers/net

[PATCH net-next 1/1] stmmac: intel: add cross time-stamping freq difference adjustment

2021-03-29 Thread Wong Vee Khee
-off-by: Wong Vee Khee --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index 08b4852eed4c..3d9a57043af2 100644

RE: [PATCH net-next] net: stmmac: support FPE link partner hand-shaking procedure

2021-03-25 Thread Wong, Vee Khee
On Thu, 25 March 2021, 11:13PM +800, Marek Szyprowski wrote: > This patch landed in today's linux-next as commit 5a5586112b92 ("net: > stmmac: support FPE link partner hand-shaking procedure"). It causes the > following NULL pointer dereference issue on various Amlogic SoC based > boards: > >  

[PATCH net-next 2/2] net: phy: marvell10g: Add PHY loopback support

2021-03-23 Thread Wong Vee Khee
Add support for PHY loopback for Marvell 88x2110 and Marvell 88x3310. This allow user to perform PHY loopback test using ethtool selftest. Signed-off-by: Wong Vee Khee --- drivers/net/phy/marvell10g.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/marvell10g.c b/drivers

[PATCH net-next 0/2] Add support for Clause-45 PHY Loopback

2021-03-23 Thread Wong Vee Khee
This patch series add support for Clause-45 PHY loopback. It involves adding a generic API in the PHY framework, which can be accessed by all C45 PHY drivers using the .set_loopback callback. Also, enable PHY loopback for the Marvell 88x3310/88x2110 driver. Wong Vee Khee (2): net: phy: add

[PATCH net-next 1/2] net: phy: add genphy_c45_loopback

2021-03-23 Thread Wong Vee Khee
Add generic code to enable C45 PHY loopback into the common phy-c45.c file. This will allow C45 PHY drivers aceess this by setting .set_loopback. Suggested-by: Heiner Kallweit Signed-off-by: Wong Vee Khee --- drivers/net/phy/phy-c45.c | 8 include/linux/phy.h | 1 + 2 files

[PATCH net-next 1/1] net: stmmac: Add hardware supported cross-timestamp

2021-03-23 Thread Wong Vee Khee
(). Device time is stored in the MAC Auxiliary register. The 64-bit System time (ART timestamp) is stored in registers that are only addressable by using MDIO space. Signed-off-by: Tan Tee Min Co-developed-by: Wong Vee Khee Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/common.h

[PATCH net-next 1/1] net: phy: marvell10g: Add PHY loopback support for 88E2110 PHY

2021-03-23 Thread Wong Vee Khee
From: Tan Tee Min Add support for PHY loopback for the Marvell 88E2110 PHY. This allow user to perform selftest using ethtool. Signed-off-by: Tan Tee Min Signed-off-by: Wong Vee Khee --- drivers/net/phy/marvell10g.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers

RE: [PATCH net V2 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-22 Thread Wong, Vee Khee
On Fri, Mar 19, 2021 at 04:56PM +0800, Russell King - ARM Linux admin wrote: > On Fri, Mar 19, 2021 at 08:40:45AM +0100, Heiner Kallweit wrote: >> Is there a specific reason why c22 is probed first? Reversing the order >> would solve the issue we speak about here. >> c45-probing of c22-only PHY's

[PATCH net V2 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-18 Thread Wong Vee Khee
: phy: clean up get_phy_c22_id() invalid ID handling") Cc: sta...@vger.kernel.org Reviewed-by: Voon Weifeng Signed-off-by: Wong Vee Khee --- v2 changelog: - added fixes tag - marked for net instead of net-next --- drivers/net/phy/phy_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2

RE: [PATCH net-next 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-18 Thread Wong, Vee Khee
> -Original Message- > From: Heiner Kallweit > Sent: Wednesday, March 17, 2021 4:15 PM > To: Wong, Vee Khee ; Andrew Lunn > ; Russell King ; David S . Miller > ; Jakub Kicinski > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > sta...@vger.kernel

[PATCH net-next 1/1] net: stmmac: add timestamp correction to rid CDC sync error

2021-03-16 Thread Wong Vee Khee
-by: Wong Vee Khee --- .../net/ethernet/stmicro/stmmac/stmmac_main.c| 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index a10704d8e3c6..ddf54b8ad75d 100644 --- a/drivers/net

[PATCH net-next 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-16 Thread Wong Vee Khee
Reviewed-by: Voon Weifeng Signed-off-by: Wong Vee Khee --- drivers/net/phy/phy_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index a009d1769b08..f1afc00fcba2 100644 --- a/drivers/net/phy/phy_device.c +++ b

[PATCH net 1/1] stmmac: intel: Fix mdio bus registration issue for TGL-H/ADL-S

2021-03-02 Thread Wong Vee Khee
Fixes: 88af9bd4efbd ("stmmac: intel: Add ADL-S 1Gbps PCI IDs") Fixes: 8450e23f142f ("stmmac: intel: Add PCI IDs for TGL-H platform") Signed-off-by: Wong Vee Khee --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 54 ++- 1 file changed, 41 insertions(+), 13 deletions(-)

[PATCH net-next 1/1] net: stmmac: Add PCI bus info to ethtool driver query output

2021-02-17 Thread Wong Vee Khee
This patch populates the PCI bus info in the ethtool driver query data. Users will be able to view PCI bus info using 'ethtool -i '. Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c| 1 + drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 4

[PATCH net-next 1/1] stmmac: intel: Add ADL-S 1Gbps PCI IDs

2021-01-26 Thread Wong Vee Khee
From: "Wong, Vee Khee" Added PCI IDs for both Ethernet TSN Controllers on the ADL-S. Also, skip SerDes programming sequences as these are being carried out at the BIOS level for ADL-S. Signed-off-by: Wong, Vee Khee --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 19

[PATCH v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices

2020-12-09 Thread Wong Vee Khee
Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45. This extended the probing of C45 PHY devices on the MDIO bus. Signed-off-by: Wong Vee Khee --- v2 changelog: - Added conditional check for gmac4. --- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 3 +++ 1 file changed, 3

RE: [PATCH net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices

2020-12-09 Thread Wong, Vee Khee
> -Original Message- > From: Andrew Lunn > Sent: Thursday, December 10, 2020 12:09 AM > To: Wong, Vee Khee > Cc: Giuseppe Cavallaro ; Alexandre Torgue > ; Jose Abreu ; David > S . Miller ; Jakub Kicinski ; > Maxime Coquelin ; Voon, Weifeng > ; net...@vg

[PATCH net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices

2020-12-09 Thread Wong Vee Khee
Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45. This extends the probing of C45 PHY devices on the MDIO bus. Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac

[PATCH v2 net 1/1] net: stmmac: Use rtnl_lock/unlock on netif_set_real_num_rx_queues() call

2020-11-14 Thread Wong Vee Khee
ULLIER Cc: Alexandre TORGUE Reviewed-by: Ong Boon Leong Signed-off-by: Wong Vee Khee --- v2 changelog: - Move rtnl_lock() before priv->lock and release it after to avoid a possible ABBA deadlock scenario. --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 ++ 1 file changed,

[PATCH net-next 1/1] net: phy: Add additional logics on probing C45 PHY devices

2020-11-12 Thread Wong Vee Khee
For clause 45 PHY, introduce additional logics in get_phy_c45_ids() to check if there is at least one valid device ID, return 0 on true, and -ENODEV otherwise. Signed-off-by: Wong Vee Khee --- drivers/net/phy/phy_device.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers

[PATCH net 1/1] net: stmmac: Use rtnl_lock/unlock on netif_set_real_num_rx_queues() call

2020-11-12 Thread Wong Vee Khee
ULLIER Cc: Alexandre TORGUE Reviewed-by: Ong Boon Leong Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ma

[PATCH net-next 1/1] net: phy: Allow mdio buses to probe C45 before falling back to C22

2020-11-09 Thread Wong Vee Khee
This patch makes mdiobus_scan() to try on C45 first as C45 can access all devices. This allows the function available for the PHY that supports for both C45 and C22. Reviewed-by: Voon Weifeng Reviewed-by: Ong Boon Leong Signed-off-by: Wong Vee Khee --- drivers/net/phy/mdio_bus.c | 5

[PATCH net-next 1/1] stmmac: intel: change all EHL/TGL to auto detect phy addr

2020-11-06 Thread Wong Vee Khee
From: Voon Weifeng Set all EHL/TGL phy_addr to -1 so that the driver will automatically detect it at run-time by probing all the possible 32 addresses. Signed-off-by: Voon Weifeng Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 6 +- 1 file changed, 1

[PATCH net 1/1] stmmac: intel: Fix kernel panic on pci probe

2020-10-29 Thread Wong Vee Khee
r LPI cntr") Cc: Voon Weifeng Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac

[PATCH net 1/1] net: stmmac: Fix clock handling on remove path

2020-09-25 Thread Wong Vee Khee
intel: Fix clock handling on error and remove paths") Cc: Andy Shevchenko Reviewed-by: Voon Weifeng Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/d

[PATCH net-next 1/1] net: stmmac: Add option for VLAN filter fail queue enable

2020-09-25 Thread Wong Vee Khee
From: "Chuah, Kim Tatt" Add option in plat_stmmacenet_data struct to enable VLAN Filter Fail Queuing. This option allows packets that fail VLAN filter to be routed to a specific Rx queue when Receive All is also set. When this option is enabled: - Enable VFFQ only when entering promiscuous

[PATCH net-next 0/1] net: stmmac: Enable VLAN filter fail queue for Intel platform data

2020-09-25 Thread Wong Vee Khee
This is a follow-up on a earlier patch submission at:- https://patchwork.ozlabs.org/patch/1275604/ Changes since the previous patch submission: - Enable VLAN fail queue for Intel platform data (dwmac-intel). - Steer the VLAN failed packet to the last Rx queue. Chuah, Kim Tatt (1): net:

[PATCH net-next] net: stmmac: introduce rtnl_lock|unlock() on configuring real_num_rx|tx_queues

2020-09-16 Thread Wong Vee Khee
From: "Tan, Tee Min" For driver open(), rtnl_lock is acquired by network stack but not in the resume(). Therefore, we introduce lock_acquired boolean to control when to use rtnl_lock|unlock() within stmmac_hw_setup(). Fixes: 686cff3d7022 ("net: stmmac: Fix incorrect location to set

[PATCH net-next] net: stmmac: Add support to Ethtool get/set ring parameters

2020-09-16 Thread Wong Vee Khee
From: "Song, Yoong Siang" This patch add support to --show-ring & --set-ring Ethtool functions: - Adding min, max, power of two check to new ring parameter's value. - Bring down the network interface before changing the value of ring parameters. - Bring up the network interface after changing

RE: [PATCH net-next 0/3] net: stmmac: Add ethtool support for get|set channels

2020-09-15 Thread Wong, Vee Khee
t; To: David Miller ; Wong, Vee Khee > > Cc: peppe.cavall...@st.com; alexandre.tor...@st.com; > joab...@synopsys.com; mcoquelin.st...@gmail.com; k...@kernel.org; > joao.pi...@synopsys.com; a...@arndb.de; li...@armlinux.org.uk; > net...@vger.kernel.org; linux-st...@st-md-mailman.stor

[PATCH net-next 0/3] net: stmmac: Add ethtool support for get|set channels

2020-09-14 Thread Wong Vee Khee
This patch set is to add support for user to get or set Tx/Rx channel via ethtool. There are two patches that fixes bug introduced on upstream in order to have the feature work. Tested on Intel Tigerlake Platform. Aashish Verma (1): net: stmmac: Fix incorrect location to set

[PATCH net-next 2/3] net: stmmac: Fix incorrect location to set real_num_rx|tx_queues

2020-09-14 Thread Wong Vee Khee
From: Aashish Verma netif_set_real_num_tx_queues() & netif_set_real_num_rx_queues() should be used to inform network stack about the real Tx & Rx queue (active) number in both stmmac_open() and stmmac_resume(), therefore, we move the code from stmmac_dvr_probe() to stmmac_hw_setup(). Fixes:

[PATCH net-next 2/3] net: stmmac: Fix incorrect location to set real_num_rx|tx_queues

2020-09-10 Thread Wong Vee Khee
From: Aashish Verma netif_set_real_num_tx_queues() & netif_set_real_num_rx_queues() should be used to inform network stack about the real Tx & Rx queue (active) number in both stmmac_open() and stmmac_resume(), therefore, we move the code from stmmac_dvr_probe() to stmmac_hw_setup(). Fixes:

[PATCH net-next 3/3] net: stmmac: use netif_tx_start|stop_all_queues() function

2020-09-10 Thread Wong Vee Khee
From: Ong Boon Leong The current implementation of stmmac_stop_all_queues() and stmmac_start_all_queues() will not work correctly when the value of tx_queues_to_use is changed through ethtool -L DEVNAME rx N tx M command. Also, netif_tx_start|stop_all_queues() are only needed in driver open()

RE: [PATCH net-next 1/1] net: stmmac: Add option for VLAN filter fail queue enable

2020-05-05 Thread Wong, Vee Khee
> -Original Message- > From: netdev-ow...@vger.kernel.org On > Behalf Of David Miller > Sent: Friday, April 24, 2020 6:53 AM > To: Wong, Vee Khee > Cc: peppe.cavall...@st.com; alexandre.tor...@st.com; > joab...@synopsys.com; mcoquelin.st...@gmail.com; > net...@v

[RESEND PATCH v3] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-06-01 Thread Wong Vee Khee
doing this rather than getting these information through parsing lspci is due to the fact that accessing PCIe link information via lspci require root privilege. This changes also allow clients to get PCIe bridges information easily because lspci list out all PCIe devices. Signed-off-by: Wong Ve

[RESEND PATCH v3] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-06-01 Thread Wong Vee Khee
these information through parsing lspci is due to the fact that accessing PCIe link information via lspci require root privilege. This changes also allow clients to get PCIe bridges information easily because lspci list out all PCIe devices. Signed-off-by: Wong Vee Khee Signed-off-by: Hui

[PATCH v3] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-05-19 Thread Wong Vee Khee
doing this rather than getting these information through parsing lspci is due to the fact that accessing PCIe link information via lspci require root privilege. This changes also allow clients to get PCIe bridges information easily because lspci list out all PCIe devices. Signed-off-by: Wong Ve

[PATCH v3] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-05-19 Thread Wong Vee Khee
these information through parsing lspci is due to the fact that accessing PCIe link information via lspci require root privilege. This changes also allow clients to get PCIe bridges information easily because lspci list out all PCIe devices. Signed-off-by: Wong Vee Khee Signed-off-by: Hui

[PATCH v2] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-05-11 Thread Wong Vee Khee
From: vwong <vee.khee.w...@ni.com> Export the PCIe link attributes of PCI bridges to sysfs. Signed-off-by: Wong Vee Khee <vee.khee.w...@ni.com> Signed-off-by: Hui Chun Ong <hui.chun@ni.com> --- drivers/pci/pci-sysfs.c | 197 ++

[PATCH v2] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-05-11 Thread Wong Vee Khee
From: vwong Export the PCIe link attributes of PCI bridges to sysfs. Signed-off-by: Wong Vee Khee Signed-off-by: Hui Chun Ong --- drivers/pci/pci-sysfs.c | 197 +- include/uapi/linux/pci_regs.h | 1 + 2 files changed, 194 insertions(+), 4

[PATCH] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-04-16 Thread Wong Vee Khee
From: vwong <vee.khee.w...@ni.com> Export the PCIe link attributes of PCI bridges to sysfs. Signed-off-by: Wong Vee Khee <vee.khee.w...@ni.com> Signed-off-by: Hui Chun Ong <hui.chun@ni.com> --- drivers/pci/pci-sysfs.c | 197 ++

[PATCH] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-04-16 Thread Wong Vee Khee
From: vwong Export the PCIe link attributes of PCI bridges to sysfs. Signed-off-by: Wong Vee Khee Signed-off-by: Hui Chun Ong --- drivers/pci/pci-sysfs.c | 197 +- include/uapi/linux/pci_regs.h | 4 + 2 files changed, 197 insertions(+), 4