Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755547Ab0KSRJ1 (ORCPT ); Fri, 19 Nov 2010 12:09:27 -0500 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:55917 "EHLO na3sys009aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754965Ab0KSRJZ (ORCPT ); Fri, 19 Nov 2010 12:09:25 -0500 From: "Yang, Bo" To: "Yang, Bo" , "'James.Bottomley@HansenPartnership.com'" , "'James.Bottomley@suse.de'" CC: "'linux-scsi@vger.kernel.org'" , "'akpm@osdl.org'" , "'linux-kernel@vger.kernel.org'" , "Daftardar, Jayant" , Tomas Henzl , "Karlikova, Lenka" , "Nielson, Mike" , "Jablonski, Charles" Date: Fri, 19 Nov 2010 10:08:44 -0700 Subject: [PATCH 4/9] scsi: megaraid_sas - Driver provide the version to FW Thread-Topic: [PATCH 4/9] scsi: megaraid_sas - Driver provide the version to FW Thread-Index: AcsIRXwfwbieNXNUR6GBvdSy0cxVCQskSL/AFMvf1xAAAOfyYAAAMuKQAABVOuA= Message-ID: <4B6A08C587958942AA3002690DD4F8C30106A961F2@cosmail02.lsi.com> References: <4B6A08C587958942AA3002690DD4F8C3D0804533@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C3DBD67F68@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A961BD@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A961D6@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A961E4@cosmail02.lsi.com> In-Reply-To: <4B6A08C587958942AA3002690DD4F8C30106A961E4@cosmail02.lsi.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/mixed; boundary="_002_4B6A08C587958942AA3002690DD4F8C30106A961F2cosmail02lsic_" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4512 Lines: 73 --_002_4B6A08C587958942AA3002690DD4F8C30106A961F2cosmail02lsic_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Driver added the version parmeter to provide the version to megaraid sas FW= during the driver load Signed-off-by Bo Yang --- drivers/scsi/megaraid/megaraid_sas.c | 22 ++++++++++++++++++++++ drivers/scsi/megaraid/megaraid_sas.h | 8 +++++++- 2 files changed, 29 insertions(+), 1 deletion(-) --_002_4B6A08C587958942AA3002690DD4F8C30106A961F2cosmail02lsic_ Content-Type: application/octet-stream; name="megasas-p4-version.patch" Content-Description: megasas-p4-version.patch Content-Disposition: attachment; filename="megasas-p4-version.patch"; size=2466; creation-date="Thu, 18 Nov 2010 20:37:02 GMT"; modification-date="Wed, 17 Nov 2010 13:09:11 GMT" Content-Transfer-Encoding: base64 ZGlmZiAtcnVwTiBvbGQvZHJpdmVycy9zY3NpL21lZ2FyYWlkL21lZ2FyYWlkX3Nhcy5jIG5ldy9k cml2ZXJzL3Njc2kvbWVnYXJhaWQvbWVnYXJhaWRfc2FzLmMKLS0tIG9sZC9kcml2ZXJzL3Njc2kv bWVnYXJhaWQvbWVnYXJhaWRfc2FzLmMJMjAxMC0xMS0xNCAxNTo0MDo1My4wMDAwMDAwMDAgLTA1 MDAKKysrIG5ldy9kcml2ZXJzL3Njc2kvbWVnYXJhaWQvbWVnYXJhaWRfc2FzLmMJMjAxMC0xMS0x NCAxNTo0Nzo0Ny4wMDAwMDAwMDAgLTA1MDAKQEAgLTMxNDYsNiArMzE0NiwxNSBAQCBtZWdhc2Fz X2lzc3VlX2luaXRfbWZpKHN0cnVjdCBtZWdhc2FzX2luCiAKIAlpbml0X2ZyYW1lLT5jbWQgPSBN RklfQ01EX0lOSVQ7CiAJaW5pdF9mcmFtZS0+Y21kX3N0YXR1cyA9IDB4RkY7CisKKwlpZiAoaW5z dGFuY2UtPnZlcmJ1ZikgeworCXNucHJpbnRmKChjaGFyICopa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WUgewogCXUzMiBxdWV1ZV9pbmZv X29sZF9waHlzX2FkZHJfbG87CS8qMjBoICovCiAJdTMyIHF1ZXVlX2luZm9fb2xkX3BoeXNfYWRk cl9oaTsJLyoyNGggKi8KIAotCXUzMiByZXNlcnZlZF80WzZdOwkvKjI4aCAqLworCXUzMiBkcml2 ZXJfdmVyX2xvOworCXUzMiBkcml2ZXJfdmVyX2hpOworCisJdTMyIHJlc2VydmVkXzRbNF07CS8q MjhoICovCiAKIH0gX19hdHRyaWJ1dGVfXyAoKHBhY2tlZCkpOwogCkBAIC0xMjU5LDYgKzEyNjMs OCBAQCBzdHJ1Y3QgbWVnYXNhc19pbnN0YW5jZSB7CiAJZG1hX2FkZHJfdCBwcm9kdWNlcl9oOwog CXUzMiAqY29uc3VtZXI7CiAJZG1hX2FkZHJfdCBjb25zdW1lcl9oOworCXUzMiAqdmVyYnVmOwor CWRtYV9hZGRyX3QgdmVyYnVmX2g7CiAKIAl1MzIgKnJlcGx5X3F1ZXVlOwogCWRtYV9hZGRyX3Qg cmVwbHlfcXVldWVfaDsK --_002_4B6A08C587958942AA3002690DD4F8C30106A961F2cosmail02lsic_-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/