licon.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
b/drivers/net/ethernet/hisilicon/hns/hns
From: Qianqian Xie
The bit fileds of PPE reset register are different between HNS v1 and
HNS v2, but the current procedure just only match HNS v1. Here is a
patch to fix it.
Signed-off-by: Kejian Yan
Signed-off-by: Qianqian Xie
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon
From: Daode Huang
For SoC hip06, PFC pause handled in dsaf, while hip05 in XGMAC,
so change the statistics of pfc pause in dsaf and remove the old
pfc pause frame statistics.
Signed-off-by: Daode Huang
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 6
From: Daode Huang
The current driver stores the high bit value of tcam data register
to the tcam data low element, stores the low bit value of tcam data
register to tcam data high element, this patch fixes this bug.
Signed-off-by: Daode Huang
Signed-off-by: Yisen Zhuang
---
drivers/net
From: Daode Huang <huangda...@hisilicon.com>
This patch adds spin lock for tcam table operation,
there maybe a race condition happens when more than
one thread try to change the tcam talbe entries.
Signed-off-by: Daode Huang <huangda...@hisilicon.com>
Signed-off-by: Yisen Zhuan
value at that time.That make for bond's
wrong speed. Thus only one state machine should be used and
if phy_state_machine is used, it does not need to do
hns_nic_update_link_status().
Signed-off-by: Qianqian Xie <xieqianq...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
From: Daode Huang
This patch adds spin lock for tcam table operation,
there maybe a race condition happens when more than
one thread try to change the tcam talbe entries.
Signed-off-by: Daode Huang
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 25
for bond's
wrong speed. Thus only one state machine should be used and
if phy_state_machine is used, it does not need to do
hns_nic_update_link_status().
Signed-off-by: Qianqian Xie
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_enet.c| 43 +---
drivers
From: Daode Huang <huangda...@hisilicon.com>
This patch adds get_coalesce_range api for hns, it shows
range of coalesce usecs and frames that can be set on
this interface.
Signed-off-by: Daode Huang <huangda...@hisilicon.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
From: Daode Huang
This patch adds get_coalesce_range api for hns, it shows
range of coalesce usecs and frames that can be set on
this interface.
Signed-off-by: Daode Huang
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hnae.h | 5 +
drivers/net/ethernet
uawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 26 +-
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c
b/drivers/net/ethe
From: Kejian Yan
As Hilink3 and Hilink4 use the same xge training and xge u adaptor for
HNSv2, it needs to select which Hilink to be set before relative serdes
being configed. The hilink_access_sel is the register to do that.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers
在 2016/6/15 18:30, Yisen Zhuang 写道:
> Hi David,
>
> Thanks for your suggestions.
>
> Please see my comments below.
>
> Thanks,
>
> Yisen
>
> 在 2016/6/15 13:41, David Miller 写道:
>> From: Yisen Zhuang <yisen.zhu...@huawei.com>
>> Date: Mon,
在 2016/6/15 18:30, Yisen Zhuang 写道:
> Hi David,
>
> Thanks for your suggestions.
>
> Please see my comments below.
>
> Thanks,
>
> Yisen
>
> 在 2016/6/15 13:41, David Miller 写道:
>> From: Yisen Zhuang
>> Date: Mon, 13 Jun 2016 20:41:22 +0800
Hi David,
Thanks for your suggestions.
Please see my comments below.
Thanks,
Yisen
在 2016/6/15 13:41, David Miller 写道:
> From: Yisen Zhuang <yisen.zhu...@huawei.com>
> Date: Mon, 13 Jun 2016 20:41:22 +0800
>
>> From: Kejian Yan <yankej...@huawei.com>
>>
>&
Hi David,
Thanks for your suggestions.
Please see my comments below.
Thanks,
Yisen
在 2016/6/15 13:41, David Miller 写道:
> From: Yisen Zhuang
> Date: Mon, 13 Jun 2016 20:41:22 +0800
>
>> From: Kejian Yan
>>
>> HNS receives a packet without doing a
Hi David,
I'm really sorry for this.
Because i didn't receive the first two emails, i resented it a few times.
I will pay more attention next time.
Thanks,
Yisen
在 2016/6/15 14:24, David Miller 写道:
> From: Yisen Zhuang <yisen.zhu...@huawei.com>
> Date: Wed, 15 Jun 2016 14
Hi David,
I'm really sorry for this.
Because i didn't receive the first two emails, i resented it a few times.
I will pay more attention next time.
Thanks,
Yisen
在 2016/6/15 14:24, David Miller 写道:
> From: Yisen Zhuang
> Date: Wed, 15 Jun 2016 14:03:33 +0800
>
>> Hi David,
Hi David,
You mean that i send this patch 3 times?
I am sorry for this.
I don't know why you can receive 3 times. I can only receive an email for this
patch.
Thanks,
Yisen
在 2016/6/15 13:26, David Miller 写道:
> From: Yisen Zhuang <yisen.zhu...@huawei.com>
> Date: Mon, 13 Jun 2
Hi David,
You mean that i send this patch 3 times?
I am sorry for this.
I don't know why you can receive 3 times. I can only receive an email for this
patch.
Thanks,
Yisen
在 2016/6/15 13:26, David Miller 写道:
> From: Yisen Zhuang
> Date: Mon, 13 Jun 2016 19:56:27 +0800
>
>&g
From: Kejian Yan <yankej...@huawei.com>
HNS receives a packet without doing anything, but it should call
skb_reset_mac_header() to initialize the header before using
eth_hdr().
Fixes: 0d6b425a3773c3445b0f51b2f333821beaacb619
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-o
From: Kejian Yan
HNS receives a packet without doing anything, but it should call
skb_reset_mac_header() to initialize the header before using
eth_hdr().
Fixes: 0d6b425a3773c3445b0f51b2f333821beaacb619
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon
From: Kejian Yan <yankej...@huawei.com>
After the patchset about adding support of ACPI (commit id is 6343488)
being applied, HNS does not depend on OF. It depends on OF or ACPI, so
the Kconfig file needs to be updated.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by:
From: Kejian Yan
After the patchset about adding support of ACPI (commit id is 6343488)
being applied, HNS does not depend on OF. It depends on OF or ACPI, so
the Kconfig file needs to be updated.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon
From: Kejian Yan <yankej...@huawei.com>
After the patchset about adding support of ACPI (commit id is 6343488)
being applied, HNS does not depend on OF. It depends on OF or ACPI, so
the Kconfig file needs to be updated.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by:
From: Kejian Yan
After the patchset about adding support of ACPI (commit id is 6343488)
being applied, HNS does not depend on OF. It depends on OF or ACPI, so
the Kconfig file needs to be updated.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon
From: Kejian Yan <yankej...@huawei.com>
After the patchset about adding support of ACPI (commit id is 6343488)
being applied, HNS does not depend on OF. It depends on OF or ACPI, so
the Kconfig file needs to be updated.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by:
From: Kejian Yan
After the patchset about adding support of ACPI (commit id is 6343488)
being applied, HNS does not depend on OF. It depends on OF or ACPI, so
the Kconfig file needs to be updated.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon
quence by _RST method in DSDT in ACPI
case.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2:
1. use dev_of_node instead of IS_ENABLED macro
2. Add ACPI bits
v1: first submit
Link: https://lk
From: Kejian Yan <yankej...@huawei.com>
Hns-mdio only supports DT case now. do some cleanup to prepare
for introducing other cases later, no functional change.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change
From: Kejian Yan
This series adds HNS support of acpi. The routine will call some ACPI
helper functions, like acpi_dev_found() and acpi_evaluate_dsm(), which
are not included in other cases. In order to make system compile
successfully in other cases except ACPI, it needs
From: Kejian Yan <yankej...@huawei.com>
As device_node is only used by DT case, it is expected to find uniform
ways. So fwnode_handle is the suitable method.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
chang
From: Kejian Yan <yankej...@huawei.com>
The miscellaneous operation is implemented in BIOS, the kernel can call
_DSM method help to call the implementation in ACPI case. Here is a patch
to do that.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuan
From: Kejian Yan
As device_node is only used by DT case, it is expected to find uniform
ways. So fwnode_handle is the suitable method.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2: remove the redundant line
v1: first submit
link: https://lkml.org/lkml/2016/5/13
From: Kejian Yan
The miscellaneous operation is implemented in BIOS, the kernel can call
_DSM method help to call the implementation in ACPI case. Here is a patch
to do that.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2: use a serial function to implement
in DSDT in ACPI
case.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. use dev_of_node instead of IS_ENABLED macro
2. Add ACPI bits
v1: first submit
Link: https://lkml.org/lkml/2016/5/13/93
---
drivers/net/ethernet/hisilicon/hns_mdio.c | 106
From: Kejian Yan
Hns-mdio only supports DT case now. do some cleanup to prepare
for introducing other cases later, no functional change.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v4:
mii-id gets from dev_name instead of address
v3:
first submit
Link: https
From: Kejian Yan
This series adds HNS support of acpi. The routine will call some ACPI
helper functions, like acpi_dev_found() and acpi_evaluate_dsm(), which
are not included in other cases. In order to make system compile
successfully in other cases except ACPI, it needs to add relative stub
From: Kejian Yan <yankej...@huawei.com>
As irq_of_parse_and_map is only used by DT case, it is excepted to use
a uniform interface. So it is used platform_get_irq() instead.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
uawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 4 +-
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 6 +-
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 14 ++--
drivers/net/ethernet/hisilicon/hns/hn
From: Kejian Yan
As irq_of_parse_and_map is only used by DT case, it is excepted to use
a uniform interface. So it is used platform_get_irq() instead.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 5 ++---
1 file changed, 2
From: Kejian Yan
The misc operation for different hw platform may be different, if using
current implementation, it will add a new branch on each function for
every new hw platform, so we add a method for this operation.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net
PHY PHY
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2: fix the build error by kbuild test robot
v1: first submit
link: https://lkml.org/lkml/2016/5/13/97
---
drivers/net/ethernet/hisilicon/hns/hn
-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2: fix the build error by kbuild test robot
v1: first submit
link: https://lkml.org/lkml/2016/5/13/97
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 133 --
1 file changed, 126 insertions(+), 7 deletions
needs to use uniform interface
to handle that sequence by both DT and ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2:
1. remove the redundant functions, and
2. adds fwnode match method beside DT and
From: Kejian Yan <yankej...@huawei.com>
Dsaf needs to get configuration parameter by ACPI, so this patch add
support of ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2:
1. use dev_of_node() ins
From: Kejian Yan
Dsaf needs to get configuration parameter by ACPI, so this patch add
support of ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. use dev_of_node() instead of IS_ENABLED() to check if it is in
DT case,
2. split a new patch to implement
to handle that sequence by both DT and ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. remove the redundant functions, and
2. adds fwnode match method beside DT and ACPI.
v1: first submit
link: https://lkml.org/lkml/2016/5/13/100
---
drivers/net
From: Kejian Yan <yankej...@huawei.com>
Enet needs to get configration parameter by acpi. This patch
adds support of ACPI for enet. The configuration parameter will
be configed in BIOS.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zh
acpi.h to make compiled successfully in
non-ACPI cases.
Cc: Rafael J. Wysocki <r...@rjwysocki.net>
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
include/linux/acpi.h | 5 +
1 file changed, 5 insertions(+)
diff --git
successfully in
non-ACPI cases.
Cc: Rafael J. Wysocki
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
include/linux/acpi.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 288fac5..3025d19 100644
--- a/include/linux/acpi.h
+++ b/include
From: Kejian Yan
Enet needs to get configration parameter by acpi. This patch
adds support of ACPI for enet. The configuration parameter will
be configed in BIOS.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. use acpi_dev_found() instead
o make compiled successfully in non-ACPI cases.
Cc: Rafael J. Wysocki <r...@rjwysocki.net>
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
include/linux/acpi.h | 8
1 file changed, 8 insertions(+)
diff --git a/includ
-ACPI cases.
Cc: Rafael J. Wysocki
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
include/linux/acpi.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 3025d19..4d4bb49 100644
--- a/include/linux/acpi.h
+++ b/include/linux
From: Kejian Yan <yankej...@huawei.com>
OF series functions can be used only for DT case. Use unified
device property function instead to support both DT and ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
dr
From: Kejian Yan
OF series functions can be used only for DT case. Use unified
device property function instead to support both DT and ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 9 +
drivers/net/ethernet
Hi David,
Thanks for your comment, i will use dev name of this mdio bus instead of
address.
Thanks,
Yisen
在 2016/6/2 7:07, David Miller 写道:
> From: Yisen Zhuang <yisen.zhu...@huawei.com>
> Date: Mon, 30 May 2016 20:34:14 +0800
>
>> -static void hns_mdio_bus_na
Hi David,
Thanks for your comment, i will use dev name of this mdio bus instead of
address.
Thanks,
Yisen
在 2016/6/2 7:07, David Miller 写道:
> From: Yisen Zhuang
> Date: Mon, 30 May 2016 20:34:14 +0800
>
>> -static void hns_mdio_bus_name(char *name, struct device_node *np)
quence by _RST method in DSDT in ACPI
case.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v3:
add Reviewed-by: Andy Shevchenko
v2:
in DSDT in ACPI
case.
Signed-off-by: Kejian Yan
Reviewed-by: Andy Shevchenko
Signed-off-by: Yisen Zhuang
---
change log:
v3:
add Reviewed-by: Andy Shevchenko
v2:
1. use dev_of_node instead of IS_ENABLED macro
2. Add ACPI bits
Link: https://lkml.org/lkml/2016/5/29/185
v1
needs to use uniform interface
to handle that sequence by both DT and ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v3:
add Reviewed-
acpi.h to make compiled successfully in
non-ACPI cases.
Cc: Rafael J. Wysocki <r...@rjwysocki.net>
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
include/linux/acpi.h | 5 +
1 file changed, 5 insertions(+)
diff --git
PHY PHY
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2: fix the build error by kbuild test robot
v1: first submit
link: https://lkml.org/lkml/2016/5/13/97
---
drivers/net/ethernet/hisilicon/hns/hn
From: Kejian Yan
This series adds HNS support of acpi. The routine will call some ACPI
helper functions, like acpi_dev_found() and acpi_evaluate_dsm(), which
are not included in other cases. In order to make system compile
successfully in other cases except ACPI, it needs
to handle that sequence by both DT and ACPI.
Signed-off-by: Kejian Yan
Reviewed-by: Andy Shevchenko
Signed-off-by: Yisen Zhuang
---
change log:
v3:
add Reviewed-by: Andy Shevchenko
v2:
1. remove the redundant functions, and
2. adds fwnode match method beside DT and ACPI.
link: https
successfully in
non-ACPI cases.
Cc: Rafael J. Wysocki
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
include/linux/acpi.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 288fac5..3025d19 100644
--- a/include/linux/acpi.h
+++ b/include
-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2: fix the build error by kbuild test robot
v1: first submit
link: https://lkml.org/lkml/2016/5/13/97
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 133 --
1 file changed, 126 insertions(+), 7 deletions
From: Kejian Yan
This series adds HNS support of acpi. The routine will call some ACPI
helper functions, like acpi_dev_found() and acpi_evaluate_dsm(), which
are not included in other cases. In order to make system compile
successfully in other cases except ACPI, it needs to add relative stub
o make compiled successfully in non-ACPI cases.
Cc: Rafael J. Wysocki <r...@rjwysocki.net>
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
include/linux/acpi.h | 8
1 file changed, 8 insertions(+)
diff --git a/includ
From: Kejian Yan <yankej...@huawei.com>
OF series functions can be used only for DT case. Use unified
device property function instead to support both DT and ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
dr
-ACPI cases.
Cc: Rafael J. Wysocki
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
include/linux/acpi.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 3025d19..4d4bb49 100644
--- a/include/linux/acpi.h
+++ b/include/linux
From: Kejian Yan
OF series functions can be used only for DT case. Use unified
device property function instead to support both DT and ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 9 +
drivers/net/ethernet
From: Kejian Yan <yankej...@huawei.com>
Dsaf needs to get configuration parameter by ACPI, so this patch add
support of ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Yisen Zhuang <yi
From: Kejian Yan <yankej...@huawei.com>
Enet needs to get configration parameter by acpi. This patch
adds support of ACPI for enet. The configuration parameter will
be configed in BIOS.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zh
From: Kejian Yan
Enet needs to get configration parameter by acpi. This patch
adds support of ACPI for enet. The configuration parameter will
be configed in BIOS.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. use acpi_dev_found() instead
From: Kejian Yan
Dsaf needs to get configuration parameter by ACPI, so this patch add
support of ACPI.
Signed-off-by: Kejian Yan
Reviewed-by: Andy Shevchenko
Signed-off-by: Yisen Zhuang
---
change log:
v3:
add Reviewed-by: Andy Shevchenko
v2:
1. use dev_of_node() instead of IS_ENABLED
From: Kejian Yan <yankej...@huawei.com>
As device_node is only used by DT case, it is expected to find uniform
ways. So fwnode_handle is the suitable method.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Si
uawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 4 +-
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 6 +-
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 14 ++--
drivers/net/ethernet/hisilicon/hns/hn
From: Kejian Yan <yankej...@huawei.com>
As irq_of_parse_and_map is only used by DT case, it is excepted to use
a uniform interface. So it is used platform_get_irq() instead.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
From: Kejian Yan
As device_node is only used by DT case, it is expected to find uniform
ways. So fwnode_handle is the suitable method.
Signed-off-by: Kejian Yan
Reviewed-by: Andy Shevchenko
Signed-off-by: Yisen Zhuang
---
change log:
v3: add Reviewed-by: Andy Shevchenko
v2: remove
From: Kejian Yan
The misc operation for different hw platform may be different, if using
current implementation, it will add a new branch on each function for
every new hw platform, so we add a method for this operation.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net
From: Kejian Yan
As irq_of_parse_and_map is only used by DT case, it is excepted to use
a uniform interface. So it is used platform_get_irq() instead.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 5 ++---
1 file changed, 2
From: Kejian Yan <yankej...@huawei.com>
Hns-mdio only supports DT case now. do some cleanup to prepare
for introducing other cases later, no functional change.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
dr
From: Kejian Yan
Hns-mdio only supports DT case now. do some cleanup to prepare
for introducing other cases later, no functional change.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns_mdio.c | 46 +++
1 file changed
;andriy.shevche...@linux.intel.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v3: fix potential memory leak
add Reviewed-by: Andy Shevchenko
v2: use a serial function to implement the reset sequence
link: https://lkml.org/lkml/2016/5/29/186
v1: fi
From: Kejian Yan
The miscellaneous operation is implemented in BIOS, the kernel can call
_DSM method help to call the implementation in ACPI case. Here is a patch
to do that.
Signed-off-by: Kejian Yan
Reviewed-by: Andy Shevchenko
Signed-off-by: Yisen Zhuang
---
change log:
v3: fix potential
Hi Heinrich,
This patch is fine to me.
Thanks,
Yisen
在 2016/5/18 4:01, Heinrich Schuchardt 写道:
> In the statement
> assert(priv || priv->ae_handle);
> the right side of || is only evaluated if priv is null.
>
> Signed-off-by: Heinrich Schuchardt
> ---
>
Hi Heinrich,
This patch is fine to me.
Thanks,
Yisen
在 2016/5/18 4:01, Heinrich Schuchardt 写道:
> In the statement
> assert(priv || priv->ae_handle);
> the right side of || is only evaluated if priv is null.
>
> Signed-off-by: Heinrich Schuchardt
> ---
>
From: Kejian Yan <yankej...@huawei.com>
Dsaf needs to get configuration parameter by ACPI, so this patch add
support of ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns
From: Kejian Yan
Dsaf needs to get configuration parameter by ACPI, so this patch add
support of ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 80 +++
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 86
From: Kejian Yan <yankej...@huawei.com>
As irq_of_parse_and_map is only used by OF case, it is excepted to use
a uniform interface. So it is used platform_get_irq() instead.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
From: Kejian Yan
As irq_of_parse_and_map is only used by OF case, it is excepted to use
a uniform interface. So it is used platform_get_irq() instead.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 5 ++---
1 file changed, 2
needs to add uniform interface
to handle that sequence by both OF and ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hnae.h | 2 +-
drivers/net/ethernet/hisilicon/hns/hn
o make compiled successfully in non-ACPI cases.
Cc: Rafael J. Wysocki <r...@rjwysocki.net>
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
include/linux/acpi.h | 8
1 file changed, 8 insertions(+)
diff --git a/includ
-ACPI cases.
Cc: Rafael J. Wysocki
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
include/linux/acpi.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index e578bce..5c5566e 100644
--- a/include/linux/acpi.h
+++ b/include/linux
to handle that sequence by both OF and ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hnae.h | 2 +-
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 2 +-
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 34
From: Kejian Yan <yankej...@huawei.com>
As device_node is only used by OF case, it is expected to find uniform
ways. So fwnode_handle is the suitable method.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/
From: Kejian Yan
As device_node is only used by OF case, it is expected to find uniform
ways. So fwnode_handle is the suitable method.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hnae.c | 18 --
drivers/net/ethernet
series functions instead of of_* functions.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 9 +
drivers/net/ethernet/hisilicon/hns/hns_enet.c | 11 +++
From: Kejian Yan <yankej...@huawei.com>
Enet needs to get configration parameter by acpi. This patch
adds support of ACPI for enet. The configuration parameter will
be configed in BIOS.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zh
101 - 200 of 294 matches
Mail list logo