* [PATCH 1/2] iwlwifi: use pci_dev->revision, again
@ 2011-06-23 14:41 Sergei Shtylyov
2011-06-23 15:02 ` Guy, Wey-Yi
0 siblings, 1 reply; 6+ messages in thread
From: Sergei Shtylyov @ 2011-06-23 14:41 UTC (permalink / raw)
To: netdev-u79uwXL29TY76Z2rM5mHXA, linville-2XuSBdqkA4R54TAoqtyWWQ,
linux-wireless-u79uwXL29TY76Z2rM5mHXA
Cc: wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w, ilw-VuQAYsv1563Yd54FQh9/CA
Commit ff938e43d39e926de74b32a3656c190f979ab642 (net: use pci_dev->revision,
again) already converted this driver to using the 'revision' field of 'struct
pci_dev' but commit c2974a1d18832a9fffb2eb389c3878f5c4ed92f1 (iwlagn: remove
rev_id) later reverted that change for no reason. Now restore the change...
Signed-off-by: Sergei Shtylyov <sshtylyov-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
---
The patch is against the recent Linus' tree.
drivers/net/wireless/iwlwifi/iwl-agn.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Index: linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3275,10 +3275,9 @@ struct ieee80211_ops iwlagn_hw_ops = {
static u32 iwl_hw_detect(struct iwl_priv *priv)
{
- u8 rev_id;
+ IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n",
+ priv->pci_dev->revision);
- pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID, &rev_id);
- IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);
return iwl_read32(priv, CSR_HW_REV);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] iwlwifi: use pci_dev->revision, again
2011-06-23 14:41 [PATCH 1/2] iwlwifi: use pci_dev->revision, again Sergei Shtylyov
@ 2011-06-23 15:02 ` Guy, Wey-Yi
2011-06-24 10:44 ` Sergei Shtylyov
0 siblings, 1 reply; 6+ messages in thread
From: Guy, Wey-Yi @ 2011-06-23 15:02 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: netdev@vger.kernel.org, linville@tuxdriver.com,
linux-wireless@vger.kernel.org, ilw@linux.intel.com
On Thu, 2011-06-23 at 07:41 -0700, Sergei Shtylyov wrote:
> Commit ff938e43d39e926de74b32a3656c190f979ab642 (net: use pci_dev->revision,
> again) already converted this driver to using the 'revision' field of 'struct
> pci_dev' but commit c2974a1d18832a9fffb2eb389c3878f5c4ed92f1 (iwlagn: remove
> rev_id) later reverted that change for no reason. Now restore the change...
>
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>
> ---
> The patch is against the recent Linus' tree.
>
> drivers/net/wireless/iwlwifi/iwl-agn.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> Index: linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
> ===================================================================
> --- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-agn.c
> +++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
> @@ -3275,10 +3275,9 @@ struct ieee80211_ops iwlagn_hw_ops = {
>
> static u32 iwl_hw_detect(struct iwl_priv *priv)
> {
> - u8 rev_id;
> + IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n",
> + priv->pci_dev->revision);
>
> - pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID, &rev_id);
> - IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);
> return iwl_read32(priv, CSR_HW_REV);
> }
>
hmm, I believe it is merge sequence issue, the IWL_DEBUG_INFO line has
benn remove all together in later patch. the information is being log in
the calling function, no need to log in "iwl_hw_detect"
Wey
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] iwlwifi: use pci_dev->revision, again
2011-06-23 15:02 ` Guy, Wey-Yi
@ 2011-06-24 10:44 ` Sergei Shtylyov
[not found] ` <4E046A9F.9020909-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Sergei Shtylyov @ 2011-06-24 10:44 UTC (permalink / raw)
To: Guy, Wey-Yi
Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
ilw-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
Hello.
On 23-06-2011 19:02, Guy, Wey-Yi wrote:
>> Commit ff938e43d39e926de74b32a3656c190f979ab642 (net: use pci_dev->revision,
>> again) already converted this driver to using the 'revision' field of 'struct
>> pci_dev' but commit c2974a1d18832a9fffb2eb389c3878f5c4ed92f1 (iwlagn: remove
>> rev_id) later reverted that change for no reason. Now restore the change...
>> Signed-off-by: Sergei Shtylyov<sshtylyov-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
>> ---
>> The patch is against the recent Linus' tree.
>> drivers/net/wireless/iwlwifi/iwl-agn.c | 5 ++---
>> 1 file changed, 2 insertions(+), 3 deletions(-)
>> Index: linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
>> ===================================================================
>> --- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-agn.c
>> +++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
>> @@ -3275,10 +3275,9 @@ struct ieee80211_ops iwlagn_hw_ops = {
>>
>> static u32 iwl_hw_detect(struct iwl_priv *priv)
>> {
>> - u8 rev_id;
>> + IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n",
>> + priv->pci_dev->revision);
>>
>> - pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID,&rev_id);
>> - IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);
>> return iwl_read32(priv, CSR_HW_REV);
>> }
> hmm, I believe it is merge sequence issue, the IWL_DEBUG_INFO line has
> benn remove all together in later patch. the information is being log in
> the calling function, no need to log in "iwl_hw_detect"
Hm, you probably mean this patch in the iwlwifi-2.6.git (of which I wasn't
aware):
author Emmanuel Grumbach <emmanuel.grumbach-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Tue, 31 May 2011 06:58:18 +0000 (09:58 +0300)
committer Wey-Yi Guy <wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Sat, 18 Jun 2011 15:18:01 +0000 (08:18 -0700)
commit 85aed7c48113dfcdc913008481c46346af0db69e
tree 75831a2ec540039470c295a81c2059a24a4531f5
parent 19707bac16129ccebc398dbff9d2b44b17b24fea
iwlagn: don't read the PCI_REVISION_ID from iwl-agn.c
The PCI_REVISION_ID is read and printed in iwl_pci_probe anyway using pr_info
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Since iwl_pci_probe() still reads the PCI config. register, my patch
should be recast to modify iwl-pci.c instead...
> Wey
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] iwlwifi: use pci_dev->revision, again
[not found] ` <4E046A9F.9020909-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
@ 2011-06-24 14:08 ` wwguy
2011-06-24 14:37 ` Sergei Shtylyov
0 siblings, 1 reply; 6+ messages in thread
From: wwguy @ 2011-06-24 14:08 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
ilw-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
On Fri, 2011-06-24 at 03:44 -0700, Sergei Shtylyov wrote:
> Hello.
>
> On 23-06-2011 19:02, Guy, Wey-Yi wrote:
>
> >> Commit ff938e43d39e926de74b32a3656c190f979ab642 (net: use pci_dev->revision,
> >> again) already converted this driver to using the 'revision' field of 'struct
> >> pci_dev' but commit c2974a1d18832a9fffb2eb389c3878f5c4ed92f1 (iwlagn: remove
> >> rev_id) later reverted that change for no reason. Now restore the change...
>
> >> Signed-off-by: Sergei Shtylyov<sshtylyov-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
>
> >> ---
> >> The patch is against the recent Linus' tree.
>
> >> drivers/net/wireless/iwlwifi/iwl-agn.c | 5 ++---
> >> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> >> Index: linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
> >> ===================================================================
> >> --- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-agn.c
> >> +++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
> >> @@ -3275,10 +3275,9 @@ struct ieee80211_ops iwlagn_hw_ops = {
> >>
> >> static u32 iwl_hw_detect(struct iwl_priv *priv)
> >> {
> >> - u8 rev_id;
> >> + IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n",
> >> + priv->pci_dev->revision);
> >>
> >> - pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID,&rev_id);
> >> - IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);
> >> return iwl_read32(priv, CSR_HW_REV);
> >> }
>
> > hmm, I believe it is merge sequence issue, the IWL_DEBUG_INFO line has
> > benn remove all together in later patch. the information is being log in
> > the calling function, no need to log in "iwl_hw_detect"
>
> Hm, you probably mean this patch in the iwlwifi-2.6.git (of which I wasn't
> aware):
>
> author Emmanuel Grumbach <emmanuel.grumbach-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Tue, 31 May 2011 06:58:18 +0000 (09:58 +0300)
> committer Wey-Yi Guy <wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Sat, 18 Jun 2011 15:18:01 +0000 (08:18 -0700)
> commit 85aed7c48113dfcdc913008481c46346af0db69e
> tree 75831a2ec540039470c295a81c2059a24a4531f5
> parent 19707bac16129ccebc398dbff9d2b44b17b24fea
>
> iwlagn: don't read the PCI_REVISION_ID from iwl-agn.c
>
> The PCI_REVISION_ID is read and printed in iwl_pci_probe anyway using pr_info
>
> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> Since iwl_pci_probe() still reads the PCI config. register, my patch
> should be recast to modify iwl-pci.c instead...
>
> >
I don't believe this patch is needed since the "log" statement is move
to outside the function.
Thanks
Wey
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] iwlwifi: use pci_dev->revision, again
2011-06-24 14:08 ` wwguy
@ 2011-06-24 14:37 ` Sergei Shtylyov
[not found] ` <4E04A143.1090204-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Sergei Shtylyov @ 2011-06-24 14:37 UTC (permalink / raw)
To: wwguy
Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
ilw-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
Hello.
wwguy wrote:
>>>> Commit ff938e43d39e926de74b32a3656c190f979ab642 (net: use pci_dev->revision,
>>>> again) already converted this driver to using the 'revision' field of 'struct
>>>> pci_dev' but commit c2974a1d18832a9fffb2eb389c3878f5c4ed92f1 (iwlagn: remove
>>>> rev_id) later reverted that change for no reason. Now restore the change...
>>>> Signed-off-by: Sergei Shtylyov<sshtylyov-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
>>>> ---
>>>> The patch is against the recent Linus' tree.
>>>> drivers/net/wireless/iwlwifi/iwl-agn.c | 5 ++---
>>>> 1 file changed, 2 insertions(+), 3 deletions(-)
>>>> Index: linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
>>>> ===================================================================
>>>> --- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-agn.c
>>>> +++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
>>>> @@ -3275,10 +3275,9 @@ struct ieee80211_ops iwlagn_hw_ops = {
>>>>
>>>> static u32 iwl_hw_detect(struct iwl_priv *priv)
>>>> {
>>>> - u8 rev_id;
>>>> + IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n",
>>>> + priv->pci_dev->revision);
>>>>
>>>> - pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID,&rev_id);
>>>> - IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);
>>>> return iwl_read32(priv, CSR_HW_REV);
>>>> }
>>> hmm, I believe it is merge sequence issue, the IWL_DEBUG_INFO line has
>>> benn remove all together in later patch. the information is being log in
>>> the calling function, no need to log in "iwl_hw_detect"
>> Hm, you probably mean this patch in the iwlwifi-2.6.git (of which I wasn't
>> aware):
>> author Emmanuel Grumbach <emmanuel.grumbach-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>> Tue, 31 May 2011 06:58:18 +0000 (09:58 +0300)
>> committer Wey-Yi Guy <wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>> Sat, 18 Jun 2011 15:18:01 +0000 (08:18 -0700)
>> commit 85aed7c48113dfcdc913008481c46346af0db69e
>> tree 75831a2ec540039470c295a81c2059a24a4531f5
>> parent 19707bac16129ccebc398dbff9d2b44b17b24fea
>> iwlagn: don't read the PCI_REVISION_ID from iwl-agn.c
>> The PCI_REVISION_ID is read and printed in iwl_pci_probe anyway using pr_info
>> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>> Since iwl_pci_probe() still reads the PCI config. register, my patch
>> should be recast to modify iwl-pci.c instead...
> I don't believe this patch is needed since the "log" statement is move
> to outside the function.
That's what I'm talking about -- it's not needed in its current form, but I
will redo the patch to modify iwl-pci,c where iwl_pci_probe() still reads
PCI_REVISION_ID.
> Thanks
> Wey
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] iwlwifi: use pci_dev->revision, again
[not found] ` <4E04A143.1090204-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
@ 2011-06-24 15:21 ` wwguy
0 siblings, 0 replies; 6+ messages in thread
From: wwguy @ 2011-06-24 15:21 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
ilw-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
On Fri, 2011-06-24 at 07:37 -0700, Sergei Shtylyov wrote:
> Hello.
>
> wwguy wrote:
>
> >>>> Commit ff938e43d39e926de74b32a3656c190f979ab642 (net: use pci_dev->revision,
> >>>> again) already converted this driver to using the 'revision' field of 'struct
> >>>> pci_dev' but commit c2974a1d18832a9fffb2eb389c3878f5c4ed92f1 (iwlagn: remove
> >>>> rev_id) later reverted that change for no reason. Now restore the change...
> >>>> Signed-off-by: Sergei Shtylyov<sshtylyov-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
> >>>> ---
> >>>> The patch is against the recent Linus' tree.
> >>>> drivers/net/wireless/iwlwifi/iwl-agn.c | 5 ++---
> >>>> 1 file changed, 2 insertions(+), 3 deletions(-)
> >>>> Index: linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
> >>>> ===================================================================
> >>>> --- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-agn.c
> >>>> +++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c
> >>>> @@ -3275,10 +3275,9 @@ struct ieee80211_ops iwlagn_hw_ops = {
> >>>>
> >>>> static u32 iwl_hw_detect(struct iwl_priv *priv)
> >>>> {
> >>>> - u8 rev_id;
> >>>> + IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n",
> >>>> + priv->pci_dev->revision);
> >>>>
> >>>> - pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID,&rev_id);
> >>>> - IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);
> >>>> return iwl_read32(priv, CSR_HW_REV);
> >>>> }
>
> >>> hmm, I believe it is merge sequence issue, the IWL_DEBUG_INFO line has
> >>> benn remove all together in later patch. the information is being log in
> >>> the calling function, no need to log in "iwl_hw_detect"
>
> >> Hm, you probably mean this patch in the iwlwifi-2.6.git (of which I wasn't
> >> aware):
>
> >> author Emmanuel Grumbach <emmanuel.grumbach-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> >> Tue, 31 May 2011 06:58:18 +0000 (09:58 +0300)
> >> committer Wey-Yi Guy <wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> >> Sat, 18 Jun 2011 15:18:01 +0000 (08:18 -0700)
> >> commit 85aed7c48113dfcdc913008481c46346af0db69e
> >> tree 75831a2ec540039470c295a81c2059a24a4531f5
> >> parent 19707bac16129ccebc398dbff9d2b44b17b24fea
>
> >> iwlagn: don't read the PCI_REVISION_ID from iwl-agn.c
>
> >> The PCI_REVISION_ID is read and printed in iwl_pci_probe anyway using pr_info
>
> >> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> >> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> >> Since iwl_pci_probe() still reads the PCI config. register, my patch
> >> should be recast to modify iwl-pci.c instead...
>
> > I don't believe this patch is needed since the "log" statement is move
> > to outside the function.
>
> That's what I'm talking about -- it's not needed in its current form, but I
> will redo the patch to modify iwl-pci,c where iwl_pci_probe() still reads
> PCI_REVISION_ID.
>
ok, thanks
Wey
>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-06-24 15:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-23 14:41 [PATCH 1/2] iwlwifi: use pci_dev->revision, again Sergei Shtylyov
2011-06-23 15:02 ` Guy, Wey-Yi
2011-06-24 10:44 ` Sergei Shtylyov
[not found] ` <4E046A9F.9020909-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
2011-06-24 14:08 ` wwguy
2011-06-24 14:37 ` Sergei Shtylyov
[not found] ` <4E04A143.1090204-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
2011-06-24 15:21 ` wwguy
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).