mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
for-4.19/post-20180822
-----BEGIN PGP SIGNATURE----- iQJEBAABCAAuFiEEwPw5LcreJtl1+l5K99NY+ylx4KYFAlt9on8QHGF4Ym9lQGtl cm5lbC5kawAKCRD301j7KXHgpj1xEADKBmJlV9aVyxc5w6XggqAGeHqI4afFrl+v 9fW6WUQMAaBUrr7PMIEJQ0Zm4B7KxgBaEWNtuuj4ULkjpgYm2AuGUuTJSyKz41rS Ma+KNyCA2Zmq4SvwGFbcdCuCbUqnoxTycscAgCjuDvIYLW0+nFGNc47ibmu9lZIV 33Ef5LrxuCjhC2zyNxEdWpUxDCjoYzock85LW+wYyIYLU9uKdoExS+YmT8U+ebA/ AkXBcxPztNDxwkcsIwgGVoTjwxiowqGz3uueWfyEmYgaCPiNOsxkoNQAtjX4ykQE hnqnHWyzJkRwbYo7Vd/bRAZXvszKGYE1YcJmu5QrNf0dK5MSq2o5OYJAEJWbucPj m0R2u7O9qbS2JEnxGrm5+oYJwBzwNY5/Lajr15WkljTqobKnqcvn/Hdgz/XdGtek 0S1QHkkBsF7e+cax8sePWK+O3ilY7pl9CzyZKB/tJngl8A45Jv8xVojg0v3O7oS+ zZib0rwWg/bwR/uN6uPCDcEsQusqL5YovB7m6NRVshwz6cV1zVNp2q+iOulk7KuC MprW4Du9CJf8HA19XtyJIG1XLstnuz+Exy+i5BiimUJ5InoEFDuj/6OZa6Qaczbo SrDDvpGtSf4h7czKpE5kV4uZiTOrjuI30TrI+4csdZ7HQIlboxNL72seNTLJs55F nbLjRM8L6g== =FS7e -----END PGP SIGNATURE----- Merge tag 'for-4.19/post-20180822' of git://git.kernel.dk/linux-block Pull more block updates from Jens Axboe: - Set of bcache fixes and changes (Coly) - The flush warn fix (me) - Small series of BFQ fixes (Paolo) - wbt hang fix (Ming) - blktrace fix (Steven) - blk-mq hardware queue count update fix (Jianchao) - Various little fixes * tag 'for-4.19/post-20180822' of git://git.kernel.dk/linux-block: (31 commits) block/DAC960.c: make some arrays static const, shrinks object size blk-mq: sync the update nr_hw_queues with blk_mq_queue_tag_busy_iter blk-mq: init hctx sched after update ctx and hctx mapping block: remove duplicate initialization tracing/blktrace: Fix to allow setting same value pktcdvd: fix setting of 'ret' error return for a few cases block: change return type to bool block, bfq: return nbytes and not zero from struct cftype .write() method block, bfq: improve code of bfq_bfqq_charge_time block, bfq: reduce write overcharge block, bfq: always update the budget of an entity when needed block, bfq: readd missing reset of parent-entity service blk-wbt: fix IO hang in wbt_wait() block: don't warn for flush on read-only device bcache: add the missing comments for smp_mb()/smp_wmb() bcache: remove unnecessary space before ioctl function pointer arguments bcache: add missing SPDX header bcache: move open brace at end of function definitions to next line bcache: add static const prefix to char * array declarations bcache: fix code comments style ...
This commit is contained in:
commit
5bed49adfe
43 changed files with 879 additions and 656 deletions
|
|
@ -2428,16 +2428,20 @@ static bool DAC960_V2_ReportDeviceConfiguration(DAC960_Controller_T
|
|||
{
|
||||
DAC960_V2_LogicalDeviceInfo_T *LogicalDeviceInfo =
|
||||
Controller->V2.LogicalDeviceInformation[LogicalDriveNumber];
|
||||
unsigned char *ReadCacheStatus[] = { "Read Cache Disabled",
|
||||
"Read Cache Enabled",
|
||||
"Read Ahead Enabled",
|
||||
"Intelligent Read Ahead Enabled",
|
||||
"-", "-", "-", "-" };
|
||||
unsigned char *WriteCacheStatus[] = { "Write Cache Disabled",
|
||||
"Logical Device Read Only",
|
||||
"Write Cache Enabled",
|
||||
"Intelligent Write Cache Enabled",
|
||||
"-", "-", "-", "-" };
|
||||
static const unsigned char *ReadCacheStatus[] = {
|
||||
"Read Cache Disabled",
|
||||
"Read Cache Enabled",
|
||||
"Read Ahead Enabled",
|
||||
"Intelligent Read Ahead Enabled",
|
||||
"-", "-", "-", "-"
|
||||
};
|
||||
static const unsigned char *WriteCacheStatus[] = {
|
||||
"Write Cache Disabled",
|
||||
"Logical Device Read Only",
|
||||
"Write Cache Enabled",
|
||||
"Intelligent Write Cache Enabled",
|
||||
"-", "-", "-", "-"
|
||||
};
|
||||
unsigned char *GeometryTranslation;
|
||||
if (LogicalDeviceInfo == NULL) continue;
|
||||
switch (LogicalDeviceInfo->DriveGeometry)
|
||||
|
|
@ -4339,14 +4343,16 @@ static void DAC960_V1_ProcessCompletedCommand(DAC960_Command_T *Command)
|
|||
static void DAC960_V2_ReadWriteError(DAC960_Command_T *Command)
|
||||
{
|
||||
DAC960_Controller_T *Controller = Command->Controller;
|
||||
unsigned char *SenseErrors[] = { "NO SENSE", "RECOVERED ERROR",
|
||||
"NOT READY", "MEDIUM ERROR",
|
||||
"HARDWARE ERROR", "ILLEGAL REQUEST",
|
||||
"UNIT ATTENTION", "DATA PROTECT",
|
||||
"BLANK CHECK", "VENDOR-SPECIFIC",
|
||||
"COPY ABORTED", "ABORTED COMMAND",
|
||||
"EQUAL", "VOLUME OVERFLOW",
|
||||
"MISCOMPARE", "RESERVED" };
|
||||
static const unsigned char *SenseErrors[] = {
|
||||
"NO SENSE", "RECOVERED ERROR",
|
||||
"NOT READY", "MEDIUM ERROR",
|
||||
"HARDWARE ERROR", "ILLEGAL REQUEST",
|
||||
"UNIT ATTENTION", "DATA PROTECT",
|
||||
"BLANK CHECK", "VENDOR-SPECIFIC",
|
||||
"COPY ABORTED", "ABORTED COMMAND",
|
||||
"EQUAL", "VOLUME OVERFLOW",
|
||||
"MISCOMPARE", "RESERVED"
|
||||
};
|
||||
unsigned char *CommandName = "UNKNOWN";
|
||||
switch (Command->CommandType)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2740,6 +2740,7 @@ static int pkt_setup_dev(dev_t dev, dev_t* pkt_dev)
|
|||
pd->write_congestion_on = write_congestion_on;
|
||||
pd->write_congestion_off = write_congestion_off;
|
||||
|
||||
ret = -ENOMEM;
|
||||
disk = alloc_disk(1);
|
||||
if (!disk)
|
||||
goto out_mem;
|
||||
|
|
|
|||
Loading…
Reference in a new issue