linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Smart <james.smart@emulex.com>
To: Anton Blanchard <anton@samba.org>
Cc: Randy Dunlap <rdunlap@infradead.org>,
	linux-scsi@vger.kernel.org, JBottomley@parallels.com,
	sfr@canb.auug.org.au
Subject: Re: [SCSI] lpfc: Don't force CONFIG_GENERIC_CSUM on
Date: Thu, 8 Aug 2013 11:01:23 -0400	[thread overview]
Message-ID: <5203B2C3.4040005@emulex.com> (raw)
In-Reply-To: <20130808174734.3c4fd0cd@kryten>

I'm good with it. You folks understand the config dependencies better 
than I.

-- james

Acked-By:  James Smart  <james.smart@emulex.com>


On 8/8/2013 3:47 AM, Anton Blanchard wrote:
> Hi Randy,
>
>> I reported:
>> """
>> on i386:
>> # CONFIG_CRC_T10DIF is not set
>>
>>
>> drivers/built-in.o: In function `lpfc_bg_crc':
>> (.text+0x3cb3c9): undefined reference to `crc_t10dif'
>> """
>>
>> and then James Bottomley provided the patch.
>> I don't know why he added GENERIC_CSUM to it.
> Thanks for investigating this. How does this patch look?
>
> Anton
> --
>
> [SCSI] lpfc: Don't force CONFIG_GENERIC_CSUM on
>
> We want ppc64 to be able to select between optimised assembly
> checksum routines in big endian and the generic lib/checksum.c
> routines in little endian.
>
> The lpfc driver is forcing CONFIG_GENERIC_CSUM on which means
> we are unable to make the decision to enable it in the arch
> Kconfig. If the option exists it is always forced on.
>
> This got introduced in 3.10 via commit 6a7252fdb0c3 ([SCSI] lpfc:
> fix up Kconfig dependencies). I spoke to Randy about it and
> the original issue was with CRC_T10DIF not being defined.
>
> As such, remove the select of CONFIG_GENERIC_CSUM.
>
> Signed-off-by: Anton Blanchard <anton@samba.org>
> Cc: <stable@vger.kernel.org> # 3.10
> ---
>
> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
> index 48b2918..92ff027 100644
> --- a/drivers/scsi/Kconfig
> +++ b/drivers/scsi/Kconfig
> @@ -1353,7 +1353,6 @@ config SCSI_LPFC
>   	tristate "Emulex LightPulse Fibre Channel Support"
>   	depends on PCI && SCSI
>   	select SCSI_FC_ATTRS
> -	select GENERIC_CSUM
>   	select CRC_T10DIF
>   	help
>             This lpfc driver supports the Emulex LightPulse
>


      reply	other threads:[~2013-08-08 15:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-05 10:20 Why does lpfc select GENERIC_CSUM? Anton Blanchard
2013-08-07 22:25 ` Randy Dunlap
2013-08-08  7:47   ` [SCSI] lpfc: Don't force CONFIG_GENERIC_CSUM on Anton Blanchard
2013-08-08 15:01     ` James Smart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5203B2C3.4040005@emulex.com \
    --to=james.smart@emulex.com \
    --cc=JBottomley@parallels.com \
    --cc=anton@samba.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).