public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* re: atl1c: Atheros L1C Gigabit Ethernet driver
@ 2013-02-15 10:34 Dan Carpenter
  2013-02-15 11:12 ` Dan Carpenter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dan Carpenter @ 2013-02-15 10:34 UTC (permalink / raw)
  To: kernel-janitors

Hello Jie Yang,

The patch 43250ddd75a3: "atl1c: Atheros L1C Gigabit Ethernet driver"
from Feb 18, 2009, leads to the following Smatch warning:
"drivers/net/ethernet/atheros/atl1c/atl1c_hw.c:472 atl1c_phy_setup_adv()
	 warn: odd binop '0x300 & 0xfffffffffffffcff'"

[ This check as too many false positives so I haven't released it ]

drivers/net/ethernet/atheros/atl1c/atl1c_hw.c
   472          u16 mii_giga_ctrl_data = GIGA_CR_1000T_DEFAULT_CAP &
   473                                  ~GIGA_CR_1000T_SPEED_MASK;

The defines are set up like this:

#define GIGA_CR_1000T_SPEED_MASK        0x0300
#define GIGA_CR_1000T_DEFAULT_CAP       0x0300

So we're just setting mii_giga_ctrl_data to zero.  It seems odd.  Did
you intend to do the bitwise negate of GIGA_CR_1000T_SPEED_MASK?
They're only used one time so I can't tell from the context what was
intented.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: atl1c: Atheros L1C Gigabit Ethernet driver
  2013-02-15 10:34 atl1c: Atheros L1C Gigabit Ethernet driver Dan Carpenter
@ 2013-02-15 11:12 ` Dan Carpenter
  2013-02-18 21:54 ` J. K. Cliburn
  2013-02-18 23:39 ` Huang, Xiong
  2 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2013-02-15 11:12 UTC (permalink / raw)
  To: kernel-janitors

Jie Yang's email is bouncing.  2009 was a long time ago.  Jay,
Chris, any ideas?

regards,
dan carpenter

On Fri, Feb 15, 2013 at 01:34:28PM +0300, Dan Carpenter wrote:
> Hello Jie Yang,
> 
> The patch 43250ddd75a3: "atl1c: Atheros L1C Gigabit Ethernet driver"
> from Feb 18, 2009, leads to the following Smatch warning:
> "drivers/net/ethernet/atheros/atl1c/atl1c_hw.c:472 atl1c_phy_setup_adv()
> 	 warn: odd binop '0x300 & 0xfffffffffffffcff'"
> 
> [ This check as too many false positives so I haven't released it ]
> 
> drivers/net/ethernet/atheros/atl1c/atl1c_hw.c
>    472          u16 mii_giga_ctrl_data = GIGA_CR_1000T_DEFAULT_CAP &
>    473                                  ~GIGA_CR_1000T_SPEED_MASK;
> 
> The defines are set up like this:
> 
> #define GIGA_CR_1000T_SPEED_MASK        0x0300
> #define GIGA_CR_1000T_DEFAULT_CAP       0x0300
> 
> So we're just setting mii_giga_ctrl_data to zero.  It seems odd.  Did
> you intend to do the bitwise negate of GIGA_CR_1000T_SPEED_MASK?
> They're only used one time so I can't tell from the context what was
> intented.
> 
> regards,
> dan carpenter

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: atl1c: Atheros L1C Gigabit Ethernet driver
  2013-02-15 10:34 atl1c: Atheros L1C Gigabit Ethernet driver Dan Carpenter
  2013-02-15 11:12 ` Dan Carpenter
@ 2013-02-18 21:54 ` J. K. Cliburn
  2013-02-18 23:39 ` Huang, Xiong
  2 siblings, 0 replies; 4+ messages in thread
From: J. K. Cliburn @ 2013-02-18 21:54 UTC (permalink / raw)
  To: kernel-janitors

Xiong,

Is Jie still an active maintainer of atl1c?

Thanks,
Jay

On 02/15/2013 05:12 AM, Dan Carpenter wrote:
> Jie Yang's email is bouncing.  2009 was a long time ago.  Jay,
> Chris, any ideas?
>
> regards,
> dan carpenter
>
> On Fri, Feb 15, 2013 at 01:34:28PM +0300, Dan Carpenter wrote:
>> Hello Jie Yang,
>>
>> The patch 43250ddd75a3: "atl1c: Atheros L1C Gigabit Ethernet driver"
>> from Feb 18, 2009, leads to the following Smatch warning:
>> "drivers/net/ethernet/atheros/atl1c/atl1c_hw.c:472 atl1c_phy_setup_adv()
>> 	 warn: odd binop '0x300 & 0xfffffffffffffcff'"
>>
>> [ This check as too many false positives so I haven't released it ]
>>
>> drivers/net/ethernet/atheros/atl1c/atl1c_hw.c
>>     472          u16 mii_giga_ctrl_data = GIGA_CR_1000T_DEFAULT_CAP &
>>     473                                  ~GIGA_CR_1000T_SPEED_MASK;
>>
>> The defines are set up like this:
>>
>> #define GIGA_CR_1000T_SPEED_MASK        0x0300
>> #define GIGA_CR_1000T_DEFAULT_CAP       0x0300
>>
>> So we're just setting mii_giga_ctrl_data to zero.  It seems odd.  Did
>> you intend to do the bitwise negate of GIGA_CR_1000T_SPEED_MASK?
>> They're only used one time so I can't tell from the context what was
>> intented.
>>
>> regards,
>> dan carpenter


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: atl1c: Atheros L1C Gigabit Ethernet driver
  2013-02-15 10:34 atl1c: Atheros L1C Gigabit Ethernet driver Dan Carpenter
  2013-02-15 11:12 ` Dan Carpenter
  2013-02-18 21:54 ` J. K. Cliburn
@ 2013-02-18 23:39 ` Huang, Xiong
  2 siblings, 0 replies; 4+ messages in thread
From: Huang, Xiong @ 2013-02-18 23:39 UTC (permalink / raw)
  To: kernel-janitors

No, he has left this company.  Can you please replace it with nic-devel@qca.qualcomm.com ? thanks a lot !

-Xiong

> -----Original Message-----
> From: J. K. Cliburn [mailto:jcliburn@gmail.com]
> Sent: Tuesday, February 19, 2013 5:54 AM
> To: Dan Carpenter
> Cc: Chris Snook; kernel-janitors@vger.kernel.org; Huang, Xiong
> Subject: Re: atl1c: Atheros L1C Gigabit Ethernet driver
> 
> Xiong,
> 
> Is Jie still an active maintainer of atl1c?
> 
> Thanks,
> Jay
> 
> On 02/15/2013 05:12 AM, Dan Carpenter wrote:
> > Jie Yang's email is bouncing.  2009 was a long time ago.  Jay, Chris,
> > any ideas?
> >
> > regards,
> > dan carpenter
> >
> > On Fri, Feb 15, 2013 at 01:34:28PM +0300, Dan Carpenter wrote:
> >> Hello Jie Yang,
> >>
> >> The patch 43250ddd75a3: "atl1c: Atheros L1C Gigabit Ethernet driver"
> >> from Feb 18, 2009, leads to the following Smatch warning:
> >> "drivers/net/ethernet/atheros/atl1c/atl1c_hw.c:472
> atl1c_phy_setup_adv()
> >> 	 warn: odd binop '0x300 & 0xfffffffffffffcff'"
> >>
> >> [ This check as too many false positives so I haven't released it ]
> >>
> >> drivers/net/ethernet/atheros/atl1c/atl1c_hw.c
> >>     472          u16 mii_giga_ctrl_data = GIGA_CR_1000T_DEFAULT_CAP &
> >>     473                                  ~GIGA_CR_1000T_SPEED_MASK;
> >>
> >> The defines are set up like this:
> >>
> >> #define GIGA_CR_1000T_SPEED_MASK        0x0300
> >> #define GIGA_CR_1000T_DEFAULT_CAP       0x0300
> >>
> >> So we're just setting mii_giga_ctrl_data to zero.  It seems odd.  Did
> >> you intend to do the bitwise negate of GIGA_CR_1000T_SPEED_MASK?
> >> They're only used one time so I can't tell from the context what was
> >> intented.
> >>
> >> regards,
> >> dan carpenter


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-18 23:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-15 10:34 atl1c: Atheros L1C Gigabit Ethernet driver Dan Carpenter
2013-02-15 11:12 ` Dan Carpenter
2013-02-18 21:54 ` J. K. Cliburn
2013-02-18 23:39 ` Huang, Xiong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox