* [PATCH net-next 0/2] Fix some typos and an excessive space character
@ 2014-08-03 2:37 Jean Sacren
2014-08-03 2:37 ` [PATCH net-next 1/2] e1000e: fix trivial kernel doc typos Jean Sacren
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jean Sacren @ 2014-08-03 2:37 UTC (permalink / raw)
To: Jeff Kirsher, aaron.f.brown; +Cc: e1000-devel, netdev, Linux NICS
This small series fixes some typos in the kernel doc and an
excessive space character in the debug message. Both are associated
with e1000_mng_enable_host_if() of the Intel e1000e driver.
Please apply in the order as annotated.
Jean Sacren (2):
e1000e: delete excessive space character in debug message
e1000e: fix trivial kernel doc typos
drivers/net/ethernet/intel/e1000e/manage.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH net-next 1/2] e1000e: fix trivial kernel doc typos
2014-08-03 2:37 [PATCH net-next 0/2] Fix some typos and an excessive space character Jean Sacren
@ 2014-08-03 2:37 ` Jean Sacren
2014-08-03 2:37 ` [PATCH net-next 2/2] e1000e: delete excessive space character in debug message Jean Sacren
2014-08-05 0:12 ` [PATCH net-next 0/2] Fix some typos and an excessive space character Brown, Aaron F
2 siblings, 0 replies; 4+ messages in thread
From: Jean Sacren @ 2014-08-03 2:37 UTC (permalink / raw)
To: Jeff Kirsher, aaron.f.brown; +Cc: e1000-devel, netdev, Linux NICS
The macro E1000_success is meant to be E1000_SUCCESS. As the return
statement in the function is good as is, let's simply correct the
comment for this trivial matter.
Additionally E1000_ERR_HOST_INTERFACE_COMMAND is supposed to be
-E1000_ERR_HOST_INTERFACE_COMMAND.
Signed-off-by: Jean Sacren <sakiwit@gmail.com>
---
drivers/net/ethernet/intel/e1000e/manage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/e1000e/manage.c b/drivers/net/ethernet/intel/e1000e/manage.c
index 58856032298d..e156664d5ba1 100644
--- a/drivers/net/ethernet/intel/e1000e/manage.c
+++ b/drivers/net/ethernet/intel/e1000e/manage.c
@@ -14,73 +14,73 @@
* the file called "COPYING".
*
* Contact Information:
* Linux NICS <linux.nics@intel.com>
* e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
* Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
*/
#include "e1000.h"
/**
* e1000_calculate_checksum - Calculate checksum for buffer
* @buffer: pointer to EEPROM
* @length: size of EEPROM to calculate a checksum for
*
* Calculates the checksum for some buffer on a specified length. The
* checksum calculated is returned.
**/
static u8 e1000_calculate_checksum(u8 *buffer, u32 length)
{
u32 i;
u8 sum = 0;
if (!buffer)
return 0;
for (i = 0; i < length; i++)
sum += buffer[i];
return (u8)(0 - sum);
}
/**
* e1000_mng_enable_host_if - Checks host interface is enabled
* @hw: pointer to the HW structure
*
- * Returns E1000_success upon success, else E1000_ERR_HOST_INTERFACE_COMMAND
+ * Returns 0 upon success, else -E1000_ERR_HOST_INTERFACE_COMMAND
*
* This function checks whether the HOST IF is enabled for command operation
* and also checks whether the previous command is completed. It busy waits
* in case of previous command is not completed.
**/
static s32 e1000_mng_enable_host_if(struct e1000_hw *hw)
{
u32 hicr;
u8 i;
if (!hw->mac.arc_subsystem_valid) {
e_dbg("ARC subsystem not valid.\n");
return -E1000_ERR_HOST_INTERFACE_COMMAND;
}
/* Check that the host interface is enabled. */
hicr = er32(HICR);
if (!(hicr & E1000_HICR_EN)) {
e_dbg("E1000_HOST_EN bit disabled.\n");
return -E1000_ERR_HOST_INTERFACE_COMMAND;
}
/* check the previous command is completed */
for (i = 0; i < E1000_MNG_DHCP_COMMAND_TIMEOUT; i++) {
hicr = er32(HICR);
if (!(hicr & E1000_HICR_C))
break;
mdelay(1);
}
if (i == E1000_MNG_DHCP_COMMAND_TIMEOUT) {
e_dbg("Previous command timeout failed .\n");
return -E1000_ERR_HOST_INTERFACE_COMMAND;
}
return 0;
}
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH net-next 2/2] e1000e: delete excessive space character in debug message
2014-08-03 2:37 [PATCH net-next 0/2] Fix some typos and an excessive space character Jean Sacren
2014-08-03 2:37 ` [PATCH net-next 1/2] e1000e: fix trivial kernel doc typos Jean Sacren
@ 2014-08-03 2:37 ` Jean Sacren
2014-08-05 0:12 ` [PATCH net-next 0/2] Fix some typos and an excessive space character Brown, Aaron F
2 siblings, 0 replies; 4+ messages in thread
From: Jean Sacren @ 2014-08-03 2:37 UTC (permalink / raw)
To: Jeff Kirsher, aaron.f.brown; +Cc: e1000-devel, netdev, Linux NICS
There is an excessive space character between the word and the
period in the debug message. So delete it.
Signed-off-by: Jean Sacren <sakiwit@gmail.com>
---
drivers/net/ethernet/intel/e1000e/manage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/e1000e/manage.c b/drivers/net/ethernet/intel/e1000e/manage.c
index 58856032298d..38a0a83b1400 100644
--- a/drivers/net/ethernet/intel/e1000e/manage.c
+++ b/drivers/net/ethernet/intel/e1000e/manage.c
@@ -78,7 +78,7 @@ static s32 e1000_mng_enable_host_if(struct e1000_hw *hw)
}
if (i == E1000_MNG_DHCP_COMMAND_TIMEOUT) {
- e_dbg("Previous command timeout failed .\n");
+ e_dbg("Previous command timeout failed.\n");
return -E1000_ERR_HOST_INTERFACE_COMMAND;
}
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next 0/2] Fix some typos and an excessive space character
2014-08-03 2:37 [PATCH net-next 0/2] Fix some typos and an excessive space character Jean Sacren
2014-08-03 2:37 ` [PATCH net-next 1/2] e1000e: fix trivial kernel doc typos Jean Sacren
2014-08-03 2:37 ` [PATCH net-next 2/2] e1000e: delete excessive space character in debug message Jean Sacren
@ 2014-08-05 0:12 ` Brown, Aaron F
2 siblings, 0 replies; 4+ messages in thread
From: Brown, Aaron F @ 2014-08-05 0:12 UTC (permalink / raw)
To: sakiwit@gmail.com
Cc: Kirsher, Jeffrey T, Linux NICS, e1000-devel@lists.sourceforge.net,
netdev@vger.kernel.org
On Sat, 2014-08-02 at 20:37 -0600, Jean Sacren wrote:
> This small series fixes some typos in the kernel doc and an
> excessive space character in the debug message. Both are associated
> with e1000_mng_enable_host_if() of the Intel e1000e driver.
>
> Please apply in the order as annotated.
>
> Jean Sacren (2):
> e1000e: delete excessive space character in debug message
> e1000e: fix trivial kernel doc typos
>
> drivers/net/ethernet/intel/e1000e/manage.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Thanks Jean, I have added these patches to Jeff's queue.
-Aaron
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-05 0:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-03 2:37 [PATCH net-next 0/2] Fix some typos and an excessive space character Jean Sacren
2014-08-03 2:37 ` [PATCH net-next 1/2] e1000e: fix trivial kernel doc typos Jean Sacren
2014-08-03 2:37 ` [PATCH net-next 2/2] e1000e: delete excessive space character in debug message Jean Sacren
2014-08-05 0:12 ` [PATCH net-next 0/2] Fix some typos and an excessive space character Brown, Aaron F
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).