Commit 3b1d0580 authored by Vinayak Holikatti's avatar Vinayak Holikatti Committed by James Bottomley

[SCSI] ufs: Segregate PCI Specific Code

This patch segregates the PCI specific code in ufshcd.c to make it
ready for splitting into core ufs driver and PCI glue driver. Also
copyright header modification to remove extra warranty disclaim.
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarNamjae Jeon <linkinjeon@gmail.com>
Reviewed-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Tested-by: default avatarMaya Erez <merez@codeaurora.org>
Signed-off-by: default avatarVinayak Holikatti <vinholikatti@gmail.com>
Signed-off-by: default avatarSantosh Yaraganavi <santoshsy@gmail.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent bf07bdea
...@@ -2,45 +2,35 @@ ...@@ -2,45 +2,35 @@
# Kernel configuration file for the UFS Host Controller # Kernel configuration file for the UFS Host Controller
# #
# This code is based on drivers/scsi/ufs/Kconfig # This code is based on drivers/scsi/ufs/Kconfig
# Copyright (C) 2011 Samsung Samsung India Software Operations # Copyright (C) 2011-2013 Samsung India Software Operations
#
# Authors:
# Santosh Yaraganavi <santosh.sy@samsung.com>
# Vinayak Holikatti <h.vinayak@samsung.com>
# #
# Santosh Yaraganavi <santosh.sy@samsung.com>
# Vinayak Holikatti <h.vinayak@samsung.com>
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License # modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 # as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. # of the License, or (at your option) any later version.
# See the COPYING file in the top-level directory or visit
# <http://www.gnu.org/licenses/gpl-2.0.html>
#
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
#
# NO WARRANTY # This program is provided "AS IS" and "WITH ALL FAULTS" and
# THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR # without warranty of any kind. You are solely responsible for
# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT # determining the appropriateness of using and distributing
# LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, # the program and assume all risks associated with your exercise
# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is # of rights with respect to the program, including but not limited
# solely responsible for determining the appropriateness of using and # to infringement of third party rights, the risks and costs of
# distributing the Program and assumes all risks associated with its # program errors, damage to or loss of data, programs or equipment,
# exercise of rights under this Agreement, including but not limited to # and unavailability or interruption of operations. Under no
# the risks and costs of program errors, damage to or loss of data, # circumstances will the contributor of this Program be liable for
# programs or equipment, and unavailability or interruption of operations. # any damages of any kind arising from your use or distribution of
# this program.
# DISCLAIMER OF LIABILITY
# NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
# HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
config SCSI_UFSHCD config SCSI_UFSHCD
tristate "Universal Flash Storage host controller driver" tristate "Universal Flash Storage host controller driver"
......
...@@ -2,45 +2,35 @@ ...@@ -2,45 +2,35 @@
* Universal Flash Storage Host controller driver * Universal Flash Storage Host controller driver
* *
* This code is based on drivers/scsi/ufs/ufs.h * This code is based on drivers/scsi/ufs/ufs.h
* Copyright (C) 2011-2012 Samsung India Software Operations * Copyright (C) 2011-2013 Samsung India Software Operations
* *
* Santosh Yaraganavi <santosh.sy@samsung.com> * Authors:
* Vinayak Holikatti <h.vinayak@samsung.com> * Santosh Yaraganavi <santosh.sy@samsung.com>
* Vinayak Holikatti <h.vinayak@samsung.com>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* See the COPYING file in the top-level directory or visit
* <http://www.gnu.org/licenses/gpl-2.0.html>
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* NO WARRANTY * This program is provided "AS IS" and "WITH ALL FAULTS" and
* THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR * without warranty of any kind. You are solely responsible for
* CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT * determining the appropriateness of using and distributing
* LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, * the program and assume all risks associated with your exercise
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is * of rights with respect to the program, including but not limited
* solely responsible for determining the appropriateness of using and * to infringement of third party rights, the risks and costs of
* distributing the Program and assumes all risks associated with its * program errors, damage to or loss of data, programs or equipment,
* exercise of rights under this Agreement, including but not limited to * and unavailability or interruption of operations. Under no
* the risks and costs of program errors, damage to or loss of data, * circumstances will the contributor of this Program be liable for
* programs or equipment, and unavailability or interruption of operations. * any damages of any kind arising from your use or distribution of
* this program.
* DISCLAIMER OF LIABILITY
* NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
* HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/ */
#ifndef _UFS_H #ifndef _UFS_H
......
This diff is collapsed.
...@@ -2,45 +2,35 @@ ...@@ -2,45 +2,35 @@
* Universal Flash Storage Host controller driver * Universal Flash Storage Host controller driver
* *
* This code is based on drivers/scsi/ufs/ufshci.h * This code is based on drivers/scsi/ufs/ufshci.h
* Copyright (C) 2011-2012 Samsung India Software Operations * Copyright (C) 2011-2013 Samsung India Software Operations
* *
* Santosh Yaraganavi <santosh.sy@samsung.com> * Authors:
* Vinayak Holikatti <h.vinayak@samsung.com> * Santosh Yaraganavi <santosh.sy@samsung.com>
* Vinayak Holikatti <h.vinayak@samsung.com>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* See the COPYING file in the top-level directory or visit
* <http://www.gnu.org/licenses/gpl-2.0.html>
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* NO WARRANTY * This program is provided "AS IS" and "WITH ALL FAULTS" and
* THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR * without warranty of any kind. You are solely responsible for
* CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT * determining the appropriateness of using and distributing
* LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, * the program and assume all risks associated with your exercise
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is * of rights with respect to the program, including but not limited
* solely responsible for determining the appropriateness of using and * to infringement of third party rights, the risks and costs of
* distributing the Program and assumes all risks associated with its * program errors, damage to or loss of data, programs or equipment,
* exercise of rights under this Agreement, including but not limited to * and unavailability or interruption of operations. Under no
* the risks and costs of program errors, damage to or loss of data, * circumstances will the contributor of this Program be liable for
* programs or equipment, and unavailability or interruption of operations. * any damages of any kind arising from your use or distribution of
* this program.
* DISCLAIMER OF LIABILITY
* NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
* HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/ */
#ifndef _UFSHCI_H #ifndef _UFSHCI_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment